Changes in src/main.cc [c59bde6:af98d27]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main.cc
rc59bde6 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 … … 81 81 expraltp = false, 82 82 libcfap = false, 83 preludep = false,84 83 nopreludep = false, 85 84 noprotop = false, … … 379 378 380 379 void parse_cmdline( int argc, char * argv[], const char *& filename ) { 381 enum { Ast, Bbox, Bresolver, CtorInitFix, DeclStats, Expr, ExprAlt, Grammar, LibCFA, Preamble,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, }; 382 381 383 382 static struct option long_opts[] = { … … 391 390 { "grammar", no_argument, 0, Grammar }, 392 391 { "libcfa", no_argument, 0, LibCFA }, 393 { "preamble", no_argument, 0, Preamble },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: … … 453 451 case 'n': // do not read preamble 454 452 nopreludep = true; 455 break;456 case Preamble:457 case 'N': // read preamble458 preludep = true;459 453 break; 460 454 case Prototypes:
Note: See TracChangeset
for help on using the changeset viewer.