Changeset 09687aa for src/libcfa/gmp


Ignore:
Timestamp:
Dec 7, 2017, 1:10:51 PM (6 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, 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, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
5e1adb5
Parents:
92494fd
Message:

complete conversion of iostream/fstream to use references

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/gmp

    r92494fd r09687aa  
    1010// Created On       : Tue Apr 19 08:43:43 2016
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon Sep  4 09:54:33 2017
    13 // Update Count     : 20
     12// Last Modified On : Thu Dec  7 09:10:41 2017
     13// Update Count     : 21
    1414//
    1515
     
    257257// I/O
    258258static inline forall( dtype istype | istream( istype ) )
    259 istype * ?|?( istype * is, Int & mp ) {
     259istype & ?|?( istype & is, Int & mp ) {
    260260        gmp_scanf( "%Zd", &mp );
    261261        return is;
     
    263263
    264264static inline forall( dtype ostype | ostream( ostype ) )
    265 ostype * ?|?( ostype * os, Int mp ) {
     265ostype & ?|?( ostype & os, Int mp ) {
    266266        if ( sepPrt( os ) ) fmt( os, "%s", sepGetCur( os ) );
    267267        gmp_printf( "%Zd", mp.mpz );
Note: See TracChangeset for help on using the changeset viewer.