Changeset 7b937575 for src/main.cc
- Timestamp:
- May 4, 2016, 11:34:11 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 4acc87f, cb4c607
- Parents:
- 7937abf
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main.cc
r7937abf r7b937575 10 10 // Created On : Fri May 15 23:12:02 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Jan 27 22:20:20201613 // Update Count : 19912 // Last Modified On : Wed May 4 23:32:59 2016 13 // Update Count : 203 14 14 // 15 15 … … 97 97 std::ostream *output = &std::cout; 98 98 int long_index; 99 std::list< Declaration* > translationUnit; 99 std::list< Declaration * > translationUnit; 100 const char *filename = NULL;; 100 101 101 102 opterr = 0; // prevent getopt from printing error messages 102 103 103 104 int c; 104 while ( (c = getopt_long( argc, argv, "abefglnpqrstvyzD: ", long_opts, &long_index )) != -1 ) {105 while ( (c = getopt_long( argc, argv, "abefglnpqrstvyzD:F:", long_opts, &long_index )) != -1 ) { 105 106 switch ( c ) { 106 107 case Ast: … … 162 163 break; 163 164 case 'D': // ignore -Dxxx 165 break; 166 case 'F': // source file-name without suffix 167 filename = optarg; 164 168 break; 165 169 case '?':
Note: See TracChangeset
for help on using the changeset viewer.