Changes in src/main.cc [6de43b6:af98d27]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main.cc
r6de43b6 raf98d27 10 10 // Author : Richard C. Bilson 11 11 // Created On : Fri May 15 23:12:02 2015 12 // Last Modified By : Peter A. Buhr13 // Last Modified On : Tue Oct 31 12:22:40 201714 // Update Count : 44 512 // Last Modified By : Andrew Beach 13 // Last Modified On : Wed Jul 26 14:38:00 2017 14 // Update Count : 443 15 15 // 16 16 … … 93 93 codegenp = false, 94 94 prettycodegenp = false, 95 linemarks = false;95 nolinemarks = false; 96 96 97 97 static void parse_cmdline( int argc, char *argv[], const char *& filename ); … … 340 340 341 341 CodeTools::fillLocations( translationUnit ); 342 CodeGen::generate( translationUnit, *output, ! noprotop, prettycodegenp, true, linemarks );342 CodeGen::generate( translationUnit, *output, ! noprotop, prettycodegenp, true, ! nolinemarks ); 343 343 344 344 CodeGen::FixMain::fix( *output, treep ? "../prelude/bootloader.c" : CFA_LIBDIR "/bootloader.c" ); … … 378 378 379 379 void parse_cmdline( int argc, char * argv[], const char *& filename ) { 380 enum { Ast, Bbox, Bresolver, CtorInitFix, DeclStats, Expr, ExprAlt, Grammar, LibCFA, Linemarks, Nolinemarks,Nopreamble, Parse, Prototypes, Resolver, Symbol, Tree, TupleExpansion, Validate, };380 enum { Ast, Bbox, Bresolver, CtorInitFix, DeclStats, Expr, ExprAlt, Grammar, LibCFA, Nopreamble, Parse, Prototypes, Resolver, Symbol, Tree, TupleExpansion, Validate, }; 381 381 382 382 static struct option long_opts[] = { … … 390 390 { "grammar", no_argument, 0, Grammar }, 391 391 { "libcfa", no_argument, 0, LibCFA }, 392 { "line-marks", no_argument, 0, Linemarks },393 { "no-line-marks", no_argument, 0, Nolinemarks },394 392 { "no-preamble", no_argument, 0, Nopreamble }, 395 393 { "parse", no_argument, 0, Parse }, … … 407 405 408 406 int c; 409 while ( (c = getopt_long( argc, argv, "abBcCdefglLmn NpqrstTvyzZD:F:", long_opts, &long_index )) != -1 ) {407 while ( (c = getopt_long( argc, argv, "abBcCdefglLmnpqrstTvyzZD:F:", long_opts, &long_index )) != -1 ) { 410 408 switch ( c ) { 411 409 case Ast: … … 447 445 libcfap = true; 448 446 break; 449 case Linemarks: 450 case 'L': // print lines marks 451 linemarks = true; 447 case 'L': // surpress lines marks 448 nolinemarks = true; 452 449 break; 453 450 case Nopreamble: 454 451 case 'n': // do not read preamble 455 452 nopreludep = true; 456 break;457 case Nolinemarks:458 case 'N': // suppress line marks459 linemarks = false;460 453 break; 461 454 case Prototypes:
Note:
See TracChangeset
for help on using the changeset viewer.