Ignore:
Timestamp:
May 17, 2015, 1:19:35 PM (11 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:
0dd3a2f
Parents:
b87a5ed
Message:

licencing: second groups of files

Location:
translator/examples
Files:
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • translator/examples/iostream.c

    rb87a5ed ra32b204  
    5050    do {
    5151        is >> &cur;
    52         if( fail( is ) || eof( is ) ) return is;
    53     } while( !( cur >= '0' && cur <= '9' ) );
     52        if ( fail( is ) || eof( is ) ) return is;
     53    } while ( !( cur >= '0' && cur <= '9' ) );
    5454 
    5555    // accumulate digits
    5656    *ip = 0;
    57     while( cur >= '0' && cur <= '9' ) {
     57    while ( cur >= '0' && cur <= '9' ) {
    5858        *ip = *ip * 10 + ( cur - '0' );
    5959        is >> &cur;
    60         if( fail( is ) || eof( is ) ) return is;
     60        if ( fail( is ) || eof( is ) ) return is;
    6161    }
    6262 
  • translator/examples/iterator.c

    rb87a5ed ra32b204  
    1010/// {
    1111///   iterator_type i;
    12 ///   for( i = begin; i != end; ++i ) {
     12///   for ( i = begin; i != end; ++i ) {
    1313///     func( *i );
    1414///   }
  • translator/examples/iterator.h

    rb87a5ed ra32b204  
    1919};
    2020
    21 context iterator_for( type iterator_type, type collection_type, type elt_type | iterator( iterator_type, elt_type ) ) {
     21context iterator_for ( type iterator_type, type collection_type, type elt_type | iterator( iterator_type, elt_type ) ) {
    2222//    [ iterator_type begin, iterator_type end ] get_iterators( collection_type );
    2323    iterator_type begin( collection_type );
  • translator/examples/simplePoly.c

    rb87a5ed ra32b204  
    1313    int y;
    1414    double x;
    15 //  if( y )
     15//  if ( y )
    1616    q( 3, &x );
    1717}
Note: See TracChangeset for help on using the changeset viewer.