Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/fstream

    r53ba273 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 : Tue Apr  5 22:37:12 2016
    13 // Update Count     : 82
     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 {
    23         void *file;
    24         _Bool sepDefault;
    25         _Bool sepOnOff;
    26         char separator[separateSize];
    27 }; // ofstream
     21// implement context ostream
     22struct ofstream;
    2823
    29 _Bool sepPrt( ofstream * );
    30 void sepOn( ofstream * );
    31 void sepOff( ofstream * );
    32 void sepReset( ofstream * );
    33 void sepReset( ofstream *, _Bool );
    34 void sepSet( ofstream *, const char * );
    35 const char * sepGet( ofstream * );
    36 _Bool sepDisable( ofstream * );
    37 _Bool sepEnable( ofstream * );
    38 int fail( ofstream * );
    39 int flush( ofstream * );
    40 void open( ofstream *, const char * name, const char * mode );
    41 void close( ofstream * );
    42 ofstream * write( ofstream *, const char * data, unsigned long int size );
    43 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 );
    4429
    4530extern ofstream * sout, * serr;
    4631
    4732// implement context istream
    48 struct ifstream {
    49         void *file;
    50 }; // ifstream
     33struct ifstream;
    5134
    5235int fail( ifstream * is );
    5336int eof( ifstream * is );
    54 void open( ifstream * is, const char * name, const char * mode );
     37void open( ifstream ** is, const char * name, const char * mode );
    5538void close( ifstream * is );
    56 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 );
    5741ifstream * ungetc( ifstream * is, char c );
    58 int scanfmt( ifstream *, const char fmt[], ... );
    5942
    6043extern ifstream *sin;
     
    6649// tab-width: 4 //
    6750// End: //
    68 
Note: See TracChangeset for help on using the changeset viewer.