Changeset d11f789
- Timestamp:
- Nov 24, 2014, 4:47:21 PM (10 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, string, with_gc
- Children:
- 42dcae7
- Parents:
- ea3eb06
- Location:
- translator
- Files:
-
- 1 added
- 2 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
translator/SymTab/Validate.cc
rea3eb06 rd11f789 221 221 if ( inStruct ) { 222 222 // Add elements in stack order corresponding to nesting structure. 223 declsToAdd.push_ front( aggregateDecl );223 declsToAdd.push_back( aggregateDecl ); 224 224 Visitor::visit( aggregateDecl ); 225 225 } else { -
translator/examples/iterator.c
rea3eb06 rd11f789 29 29 dtype os_type | ostream( os_type ) ) 30 30 void write_reverse( iterator_type begin, iterator_type end, os_type *os ) { 31 iterator_type i; / * = end; do not work */31 iterator_type i; // "= end;" does not work 32 32 i = end; 33 33 do { -
translator/examples/vector_test.c
rea3eb06 rd11f789 12 12 int num; 13 13 14 sout << "enter N elements and C-d on a separate line:\n"; 14 15 for ( ;; ) { 15 16 sin >> # … … 17 18 append( &vec, num ); 18 19 } 19 20 20 // write out the numbers 21 21 … … 23 23 // write_all( begin( vec ), end( vec ), sout ); 24 24 sout << "\n"; 25 #if 0 25 26 write_reverse( begin( vec ), end( vec ), sout ); 26 27 sout << "\n"; 27 28 29 #endif 28 30 for ( int index = 0; index <= last( vec ); index += 1 ) { 29 31 sout << vec[ index ] << " ";
Note: See TracChangeset
for help on using the changeset viewer.