|
2 | 2 | * |
3 | 3 | * Open Watcom Project |
4 | 4 | * |
5 | | -* Copyright (c) 2002-2021 The Open Watcom Contributors. All Rights Reserved. |
| 5 | +* Copyright (c) 2002-2026 The Open Watcom Contributors. All Rights Reserved. |
6 | 6 | * Portions Copyright (c) 1983-2002 Sybase, Inc. All Rights Reserved. |
7 | 7 | * |
8 | 8 | * ======================================================================== |
@@ -95,31 +95,31 @@ cg_name SCBLength( cg_name scb ) |
95 | 95 | } |
96 | 96 |
|
97 | 97 |
|
98 | | -cg_name Concat( uint num_args, cg_name dest ) |
| 98 | +cg_name Concat( args_num argc, cg_name dest ) |
99 | 99 | //=========================================== |
100 | 100 | // Do concatenation operation. |
101 | 101 | { |
102 | | - uint count; |
| 102 | + args_num i; |
103 | 103 | call_handle call; |
104 | 104 | cg_name dest_1; |
105 | 105 | cg_name dest_2; |
106 | 106 |
|
107 | | - if( num_args & CAT_TEMP ) { |
| 107 | + if( argc & CAT_TEMP ) { |
108 | 108 | call = InitCall( RT_TCAT ); |
109 | | - num_args &= ~CAT_TEMP; |
110 | | - } else if( num_args == 1 ) { |
| 109 | + argc &= ~CAT_TEMP; |
| 110 | + } else if( argc == 1 ) { |
111 | 111 | call = InitCall( RT_MOVE ); |
112 | 112 | } else { |
113 | 113 | call = InitCall( RT_CAT ); |
114 | 114 | } |
115 | | - for( count = num_args; count > 0; --count ) { |
116 | | - CGAddParm( call, StkElement( count ), TY_LOCAL_POINTER ); |
| 115 | + for( i = argc; i > 0; --i ) { |
| 116 | + CGAddParm( call, StkElement( i ), TY_LOCAL_POINTER ); |
117 | 117 | } |
118 | | - PopStkElements( num_args ); |
| 118 | + PopStkElements( argc ); |
119 | 119 | CloneCGName( dest, &dest_1, &dest_2 ); |
120 | 120 | CGAddParm( call, dest_1, TY_LOCAL_POINTER ); |
121 | | - if( num_args != 1 ) { |
122 | | - CGAddParm( call, CGInteger( num_args, TY_UNSIGNED ), TY_UNSIGNED ); |
| 121 | + if( argc != 1 ) { |
| 122 | + CGAddParm( call, CGInteger( argc, TY_UNSIGNED ), TY_UNSIGNED ); |
123 | 123 | } |
124 | 124 | return( CGBinary( O_COMMA, CGCall( call ), dest_2, TY_LOCAL_POINTER ) ); |
125 | 125 | } |
|
0 commit comments