Ignore:
Timestamp:
Mar 22, 2017, 5:39:46 PM (7 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
22854f8, 37f9860
Parents:
87d13cd
Message:

additions to tuple separator for sout

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/iostream.c

    r87d13cd rcb91437  
    1010// Created On       : Wed May 27 17:56:53 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Tue Mar 21 22:05:57 2017
    13 // Update Count     : 348
     12// Last Modified On : Wed Mar 22 17:21:23 2017
     13// Update Count     : 358
    1414//
    1515
     
    157157                // opening delimiters, no space after
    158158                ['('] : Open, ['['] : Open, ['{'] : Open,
    159                 ['$'] : Open, ['='] : Open, [(unsigned char)'£'] : Open, [(unsigned char)'¥'] : Open,
     159                ['='] : Open, ['$'] : Open, [(unsigned char)'£'] : Open, [(unsigned char)'¥'] : Open,
    160160                [(unsigned char)'¡'] : Open, [(unsigned char)'¿'] : Open, [(unsigned char)'«'] : Open,
    161161                // closing delimiters, no space before
     
    201201forall( dtype ostype, otype T, ttype Params | ostream( ostype ) | writeable( T ) | { ostype * ?|?( ostype *, Params ); } )
    202202ostype * ?|?( ostype * os, T arg, Params rest ) {
     203        forall( ttype Params ) ostype * prtTuple( ostype * os, T arg, Params rest ) {
     204                os | arg;                                                                               // print first argument
     205                os | rest;                                                                              // print remaining arguments
     206                return os;
     207        } // prtTuple
    203208        sepSetCur( os, sepGetTuple( os ) );                                     // switch to tuple separator
    204         os | arg;                                                                                       // print first argument
    205         os | rest;                                                                                      // print remaining arguments
     209        prtTuple( os, arg, rest );                                                      // recursively print tuple
    206210        sepSetCur( os, sepGet( os ) );                                          // switch to regular separator
     211        return os;
    207212} // ?|?
    208213
Note: See TracChangeset for help on using the changeset viewer.