Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/fstream

    r90c3b1c r6ba0659  
    77// fstream --
    88//
    9 // Author           : Peter A. Buhr
     9// Author           : Richard C. Bilson
    1010// Created On       : Wed May 27 17:56:53 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Wed Mar  2 15:08:14 2016
    13 // Update Count     : 78
     12// Last Modified On : Wed Feb 17 14:02:01 2016
     13// Update Count     : 22
    1414//
    1515
     
    1919#include "iostream"
    2020
    21 enum { separateSize = 16 };
    22 struct ofstream { void *file; int separate; char separator[separateSize]; };
     21// implement context ostream
     22struct ofstream;
    2323
    24 _Bool sepPrt( ofstream * );
    25 void sepOn( ofstream * );
    26 void sepOff( ofstream * );
    27 void sepSet( ofstream *, const char * );
    28 const char * sepGet( ofstream * );
    29 void sepDisable( ofstream * );
    30 void sepEnable( ofstream * );
    31 int fail( ofstream * );
    32 int flush( ofstream * );
    33 void open( ofstream *, const char * name, const char * mode );
    34 void close( ofstream * );
    35 ofstream * write( ofstream *, const char * data, unsigned long int size );
    36 int prtfmt( ofstream *, const char fmt[], ... );
     24int fail( ofstream * os );
     25int flush( ofstream * os );
     26void open( ofstream ** os, const char * name, const char * mode );
     27void close( ofstream * os );
     28ofstream * write( ofstream * os, const char * data, streamsize_type size );
    3729
    3830extern ofstream * sout, * serr;
    3931
    4032// implement context istream
    41 struct ifstream { void *file; };
     33struct ifstream;
    4234
    4335int fail( ifstream * is );
    4436int eof( ifstream * is );
    45 void open( ifstream * is, const char * name, const char * mode );
     37void open( ifstream ** is, const char * name, const char * mode );
    4638void close( ifstream * is );
    47 ifstream * read( ifstream * is, char * data, unsigned long int size );
     39ifstream * get( ifstream * is, int * data );
     40ifstream * read( ifstream * is, char * data, streamsize_type size );
    4841ifstream * ungetc( ifstream * is, char c );
    49 int scanfmt( ifstream *, const char fmt[], ... );
    5042
    5143extern ifstream *sin;
     
    5749// tab-width: 4 //
    5850// End: //
    59 
Note: See TracChangeset for help on using the changeset viewer.