Changeset d11f789


Ignore:
Timestamp:
Nov 24, 2014, 4:47:21 PM (10 years ago)
Author:
Peter A. Buhr <pabuhr@…>
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
Message:

roll back remove and reorder hoisted aggregate, format adjustment

Location:
translator
Files:
1 added
2 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • translator/SymTab/Validate.cc

    rea3eb06 rd11f789  
    221221        if ( inStruct ) {
    222222            // Add elements in stack order corresponding to nesting structure.
    223             declsToAdd.push_front( aggregateDecl );
     223            declsToAdd.push_back( aggregateDecl );
    224224            Visitor::visit( aggregateDecl );
    225225        } else {
  • translator/examples/iterator.c

    rea3eb06 rd11f789  
    2929        dtype os_type | ostream( os_type ) )
    3030void 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
    3232    i = end;
    3333    do {
  • translator/examples/vector_test.c

    rea3eb06 rd11f789  
    1212    int num;
    1313
     14    sout << "enter N elements and C-d on a separate line:\n";
    1415    for ( ;; ) {
    1516        sin >> &num;
     
    1718        append( &vec, num );
    1819    }
    19 
    2020    // write out the numbers
    2121
     
    2323//    write_all( begin( vec ), end( vec ), sout );
    2424    sout << "\n";
     25#if 0
    2526    write_reverse( begin( vec ), end( vec ), sout );
    2627    sout << "\n";
    2728
     29#endif
    2830    for ( int index = 0; index <= last( vec ); index += 1 ) {
    2931        sout << vec[ index ] << " ";
Note: See TracChangeset for help on using the changeset viewer.