Tue Oct 19 11:07:18 MST 2004 port from irix to macosx no problem for awk script, scrunchAwk problem for scrunchLex: yylineno not an (internal) lex variable, updated with each newline replaced by xxlineno, defined locally in scrunchLex.l updating incorparated into scrunchLex.l jar@pbg4 [11:20:30] /Rupley/Code/Contests/scrunch (2:1118)$ diff sc*L*.*[lx] 33c33 < char f[2048]; int x; int xxlineno; --- > char f[80]; int x; 36,39c36,39 < #.+\n {sscanf(yytext,"#%d%s",&xxlineno,f); x++;} < {W}/{W}|# x++; xxlineno++; < {W} if(!x) ECHO; xxlineno++; < .+\n {if(x) printf("# %d %s\n",xxlineno,f); ECHO; xxlineno++; x=0;} --- > #.+\n {sscanf(yytext,"#%d%s",&yylineno,f); x++;} > {W}/{W}|# x++; > {W} if(!x) ECHO; > .+\n {if(x) printf("# %d %s\n",yylineno-1,f); ECHO; x=0;} Makefile: CFLAGS respecified /usr/bin/cpp not used to generate preprocessor file, scrunch.cpp replaced by cc=gcc-3.3 -E ..... other changes minor = names of files