Differences From Artifact [adcf4ce2c7]:
- File src/translate.c — part of check-in [ea61f4aa55] at 2010-12-20 01:06:17 on branch trunk — Improvements to the graph layout algorithm yielding a more compact graph in many cases. (user: drh size: 5502) [more...]
To Artifact [107ac675c7]:
- File src/translate.c — part of check-in [331b57b53f] at 2011-10-29 20:06:41 on branch steveb-fixes — Ensure correct file name on compile errors in translated sources. This helps avoid editing the generated file with vim "quickfix". (user: steveb size: 5543) [more...]
| ︙ | |||
163 164 165 166 167 168 169 170 171 172 173 174 175 176 | 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 | + |
int main(int argc, char **argv){
if( argc==2 ){
FILE *in = fopen(argv[1], "r");
if( in==0 ){
fprintf(stderr,"can not open %s\n", argv[1]);
exit(1);
}
printf("#line 1 \"%s\"\n", argv[1]);
trans(in, stdout);
fclose(in);
}else{
trans(stdin, stdout);
}
return 0;
}
|