Changeset 1630f18 for src/libcfa


Ignore:
Timestamp:
Feb 24, 2017, 9:26:44 PM (8 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:
bf26fa5
Parents:
167a9c8
Message:

print signed and unsigned char

Location:
src/libcfa
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/iostream

    r167a9c8 r1630f18  
    1010// Created On       : Wed May 27 17:56:53 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Tue Jul 12 18:01:09 2016
    13 // Update Count     : 93
     12// Last Modified On : Fri Feb 24 21:09:09 2017
     13// Update Count     : 94
    1414//
    1515
     
    4545
    4646forall( dtype ostype | ostream( ostype ) ) ostype * ?|?( ostype *, char );
     47forall( dtype ostype | ostream( ostype ) ) ostype * ?|?( ostype *, signed char );
     48forall( dtype ostype | ostream( ostype ) ) ostype * ?|?( ostype *, unsigned char );
    4749
    4850forall( dtype ostype | ostream( ostype ) ) ostype * ?|?( ostype *, short int );
  • src/libcfa/iostream.c

    r167a9c8 r1630f18  
    1010// Created On       : Wed May 27 17:56:53 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Tue Jul 12 18:01:39 2016
    13 // Update Count     : 306
     12// Last Modified On : Fri Feb 24 21:09:59 2017
     13// Update Count     : 307
    1414//
    1515
     
    2626ostype * ?|?( ostype *os, char c ) {
    2727        prtfmt( os, "%c", c );
     28        sepOff( os );
     29        return os;
     30} // ?|?
     31
     32forall( dtype ostype | ostream( ostype ) )
     33ostype * ?|?( ostype *os, signed char c ) {
     34        prtfmt( os, "%hhd", c );
     35        sepOff( os );
     36        return os;
     37} // ?|?
     38
     39forall( dtype ostype | ostream( ostype ) )
     40ostype * ?|?( ostype *os, unsigned char c ) {
     41        prtfmt( os, "%hhu", c );
    2842        sepOff( os );
    2943        return os;
Note: See TracChangeset for help on using the changeset viewer.