Changeset 829c907 for src/libcfa/fstream


Ignore:
Timestamp:
Mar 21, 2017, 10:04:47 PM (5 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
aaron-thesis, arm-eh, 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, resolv-new, with_gc
Children:
87d13cd
Parents:
89d129c
Message:

add tuple separator to sout

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/fstream

    r89d129c r829c907  
    1010// Created On       : Wed May 27 17:56:53 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Tue Mar  7 14:48:08 2017
    13 // Update Count     : 91
     12// Last Modified On : Tue Mar 21 15:57:24 2017
     13// Update Count     : 102
    1414//
    1515
     
    2121enum { separateSize = 16 };
    2222struct ofstream {
    23         void *file;
     23        void * file;
    2424        _Bool sepDefault;
    2525        _Bool sepOnOff;
     26        const char * sepCur;
    2627        char separator[separateSize];
     28        char tupleSeparator[separateSize];
    2729}; // ofstream
    2830
     
    3234void sepReset( ofstream * );
    3335void sepReset( ofstream *, _Bool );
     36const char * sepGetCur( ofstream * );
     37void sepSetCur( ofstream *, const char * );
    3438const char * sepGet( ofstream * );
    3539void sepSet( ofstream *, const char * );
     40const char * sepGetTuple( ofstream * );
     41void sepSetTuple( ofstream *, const char * );
    3642_Bool sepDisable( ofstream * );
    3743_Bool sepEnable( ofstream * );
     
    4248void close( ofstream * );
    4349ofstream * write( ofstream *, const char * data, unsigned long int size );
    44 int prtfmt( ofstream *, const char fmt[], ... );
     50int fmt( ofstream *, const char fmt[], ... );
     51
     52void ?{}( ofstream * );
    4553
    4654extern ofstream * sout, * serr;
     
    4856// implement context istream
    4957struct ifstream {
    50         void *file;
     58        void * file;
    5159}; // ifstream
    5260
     
    5765ifstream * read( ifstream * is, char * data, unsigned long int size );
    5866ifstream * ungetc( ifstream * is, char c );
    59 int scanfmt( ifstream *, const char fmt[], ... );
     67int fmt( ifstream *, const char fmt[], ... );
    6068
    61 extern ifstream *sin;
     69extern ifstream * sin;
    6270
    6371#endif // __FSTREAM_H__
Note: See TracChangeset for help on using the changeset viewer.