for ( i = 0; i < csize; ++i )
{
- ec = abs( ecgroup[i] );
+ ec = ABS( ecgroup[i] );
out_char_set[i] = state[ec];
}
{ /* do nothing */
}
- else if ( abs( ecgroup[sym] ) == transsym )
+ else if ( ABS( ecgroup[sym] ) == transsym )
nset[++numstates] = tsp;
bottom: ;
numcl = 0;
- /* Create equivalence class numbers. From now on, abs( bck(x) )
+ /* Create equivalence class numbers. From now on, ABS( bck(x) )
* is the equivalence class number for object x. If bck(x)
* is positive, then x is the representative of its equivalence
* class.
/* Maximum line length we'll have to deal with. */
#define MAXLINE 2048
-#ifndef min
-#define min(x,y) ((x) < (y) ? (x) : (y))
+#ifndef MIN
+#define MIN(x,y) ((x) < (y) ? (x) : (y))
#endif
-#ifndef max
-#define max(x,y) ((x) > (y) ? (x) : (y))
+#ifndef MAX
+#define MAX(x,y) ((x) > (y) ? (x) : (y))
#endif
-#ifndef abs
-#define abs(x) ((x) < 0 ? -(x) : (x))
+#ifndef ABS
+#define ABS(x) ((x) < 0 ? -(x) : (x))
#endif
if ( caseins && (i >= 'A') && (i <= 'Z') )
ecgroup[i] = ecgroup[clower( i )];
- ecgroup[i] = abs( ecgroup[i] );
+ ecgroup[i] = ABS( ecgroup[i] );
mkdata( ecgroup[i] );
}
dfaacc[end_of_buffer_state].dfaacc_set = EOB_accepting_list;
printf( long_align ? C_long_decl : C_short_decl,
- "yy_acclist", max( numas, 1 ) + 1 );
+ "yy_acclist", MAX( numas, 1 ) + 1 );
j = 1; /* index into "yy_acclist" array */
{
if ( trace )
fprintf( stderr, "%d = %d\n",
- i, abs( tecbck[i] ) );
+ i, ABS( tecbck[i] ) );
- mkdata( abs( tecbck[i] ) );
+ mkdata( ABS( tecbck[i] ) );
}
dataend();
/* Now map the equivalence class for NUL to its expected place. */
ecgroup[0] = ecgroup[csize];
- NUL_ec = abs( ecgroup[0] );
+ NUL_ec = ABS( ecgroup[0] );
if ( useecs )
ccl2ecl();
{
mkxtion( finalst[first], last );
finalst[first] = finalst[last];
- lastst[first] = max( lastst[first], lastst[last] );
- firstst[first] = min( firstst[first], firstst[last] );
+ lastst[first] = MAX( lastst[first], lastst[last] );
+ firstst[first] = MIN( firstst[first], firstst[last] );
return first;
}
/* Ensure that the base address we eventually generate is
* non-negative.
*/
- baseaddr = max( tblend + 1, minec );
+ baseaddr = MAX( tblend + 1, minec );
}
tblbase = baseaddr - minec;
for ( ++firstfree; chk[firstfree] != 0; ++firstfree )
;
- tblend = max( tblend, tbllast );
+ tblend = MAX( tblend, tbllast );
}