Changeset a87d40b


Ignore:
Timestamp:
Jul 15, 2019, 9:32:21 PM (2 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
arm-eh, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr
Children:
20b461f, 6f15121
Parents:
7dc2e57b
Message:

add aliases stdin, stdout, stderr for sin, sout, serr

Location:
libcfa/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/fstream.cfa

    r7dc2e57b ra87d40b  
    1010// Created On       : Wed May 27 17:56:53 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sun Jul 14 11:51:10 2019
    13 // Update Count     : 347
     12// Last Modified On : Mon Jul 15 18:11:26 2019
     13// Update Count     : 349
    1414//
    1515
     
    165165
    166166static ofstream soutFile = { (FILE *)(&_IO_2_1_stdout_) };
    167 ofstream & sout = soutFile;
     167ofstream & sout = soutFile, & stdout = soutFile;
    168168static ofstream serrFile = { (FILE *)(&_IO_2_1_stderr_) };
    169 ofstream & serr = serrFile;
     169ofstream & serr = serrFile, & stderr = serrFile;
    170170
    171171static ofstream exitFile = { (FILE *)(&_IO_2_1_stdout_) };
     
    267267
    268268static ifstream sinFile = { (FILE *)(&_IO_2_1_stdin_) };
    269 ifstream & sin = sinFile;
     269ifstream & sin = sinFile, & stdin = sinFile;
    270270
    271271// Local Variables: //
  • libcfa/src/fstream.hfa

    r7dc2e57b ra87d40b  
    1010// Created On       : Wed May 27 17:56:53 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Fri Jul 12 12:03:54 2019
    13 // Update Count     : 165
     12// Last Modified On : Mon Jul 15 18:10:23 2019
     13// Update Count     : 167
    1414//
    1515
     
    7373void ?{}( ofstream & os, const char * name );
    7474
    75 extern ofstream & sout, & serr;
     75extern ofstream & sout, & stdout, & serr, & stderr;             // aliases
    7676extern ofstream & exit, & abort;
    7777
     
    102102void ?{}( ifstream & is, const char * name );
    103103
    104 extern ifstream & sin;
     104extern ifstream & sin, & stdin;                                                 // aliases
    105105
    106106// Local Variables: //
Note: See TracChangeset for help on using the changeset viewer.