Changes in / [224e52f:8a34677]


Ignore:
Location:
src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/examples/rational.c

    r224e52f r8a34677  
    1111// Created On       : Mon Mar 28 08:43:12 2016
    1212// Last Modified By : Peter A. Buhr
    13 // Last Modified On : Thu Apr  7 17:25:44 2016
    14 // Update Count     : 20
     13// Last Modified On : Wed Apr  6 18:02:02 2016
     14// Update Count     : 19
    1515//
    1616
    1717#include <limits>
    1818#include <rational>
    19 #include <fstream>
    2019
    2120int main() {
  • src/libcfa/limits.c

    r224e52f r8a34677  
    1010// Created On       : Wed Apr  6 18:06:52 2016
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Apr  7 17:18:45 2016
    13 // Update Count     : 11
     12// Last Modified On : Wed Apr  6 21:12:17 2016
     13// Update Count     : 10
    1414//
    1515
    16 #include "limits"
     16#include <limits>
    1717
    1818// Integral Constants
  • src/libcfa/rational

    r224e52f r8a34677  
    1010// Created On       : Wed Apr  6 17:56:25 2016
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Apr  7 17:23:36 2016
    13 // Update Count     : 9
     12// Last Modified On : Wed Apr  6 21:51:42 2016
     13// Update Count     : 8
    1414//
    1515
    16 #include "iostream"
     16#include <fstream>
    1717
    1818struct Rational {
     
    4444double widen( Rational r );
    4545Rational narrow( double f, long int md );
    46 forall( dtype istype | istream( istype ) ) istype * ?|?( istype *, Rational * );
    47 forall( dtype ostype | ostream( ostype ) ) ostype * ?|?( ostype *, Rational );
     46ifstream * ?|?( ifstream *is, Rational *r );
     47ofstream * ?|?( ofstream *os, Rational r );
    4848
    4949// Local Variables: //
  • src/libcfa/rational.c

    r224e52f r8a34677  
    1111// Created On       : Wed Apr  6 17:54:28 2016
    1212// Last Modified By : Peter A. Buhr
    13 // Last Modified On : Thu Apr  7 17:28:03 2016
    14 // Update Count     : 12
     13// Last Modified On : Wed Apr  6 21:52:16 2016
     14// Update Count     : 7
    1515//
    1616
    1717#include "rational"
    18 #include "fstream"
    19 #include "stdlib"
     18#include <fstream>
     19#include <stdlib>
    2020
    2121extern "C" {
     
    188188} // narrow
    189189
    190 forall( dtype istype | istream( istype ) )
    191 istype * ?|?( istype *is, Rational *r ) {
     190ifstream * ?|?( ifstream *is, Rational *r ) {
    192191        long int t;
    193192    is | &(r->numerator) | &(r->denominator);
     
    198197} // ?|?
    199198
    200 forall( dtype ostype | ostream( ostype ) )
    201 ostype * ?|?( ostype *os, Rational r ) {
     199ofstream * ?|?( ofstream *os, Rational r ) {
    202200    return os | r.numerator | '/' | r.denominator;
    203201} // ?|?
Note: See TracChangeset for help on using the changeset viewer.