Changeset c443d1d
- Timestamp:
- Mar 6, 2017, 8:50:16 PM (8 years ago)
- 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:
- 2988eeb
- Parents:
- 8191203
- Location:
- src
- Files:
-
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/iostream
r8191203 rc443d1d 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Feb 24 21:09:09201713 // Update Count : 9 412 // Last Modified On : Mon Mar 6 17:48:01 2017 13 // Update Count : 97 14 14 // 15 15 … … 68 68 forall( dtype ostype | ostream( ostype ) ) ostype * ?|?( ostype *, const void * ); 69 69 70 // tuples 71 forall( dtype ostype, otype T, ttype Params | ostream( ostype ) | writeable( T ) | { ostype * ?|?( ostype *, Params ); } ) ostype * ?|?( ostype * os, T arg, Params rest ); 72 73 // manipulators 70 74 forall( dtype ostype | ostream( ostype ) ) ostype * ?|?( ostype *, ostype * (*)( ostype * ) ); 71 // manipulators72 75 forall( dtype ostype | ostream( ostype ) ) ostype * endl( ostype * ); 73 76 forall( dtype ostype | ostream( ostype ) ) ostype * sepOn( ostype * ); -
src/libcfa/iostream.c
r8191203 rc443d1d 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Feb 24 21:09:59201713 // Update Count : 3 0712 // Last Modified On : Mon Mar 6 17:48:05 2017 13 // Update Count : 312 14 14 // 15 15 … … 155 155 enum { Open = 1, Close, OpenClose }; 156 156 static const unsigned char mask[256] = { 157 // opening delimiters 157 // opening delimiters, no space after 158 158 ['('] : Open, ['['] : Open, ['{'] : Open, 159 ['$'] : Open, [ (unsigned char)'£'] : Open, [(unsigned char)'¥'] : Open,159 ['$'] : Open, ['='] : Open, [(unsigned char)'£'] : Open, [(unsigned char)'¥'] : Open, 160 160 [(unsigned char)'¡'] : Open, [(unsigned char)'¿'] : Open, [(unsigned char)'«'] : Open, 161 // closing delimiters 161 // closing delimiters, no space before 162 162 [','] : Close, ['.'] : Close, [':'] : Close, [';'] : Close, ['!'] : Close, ['?'] : Close, 163 163 [')'] : Close, [']'] : Close, ['}'] : Close, 164 164 ['%'] : Close, [(unsigned char)'¢'] : Close, [(unsigned char)'»'] : Close, 165 // opening-closing delimiters 165 // opening-closing delimiters, no space before or after 166 166 ['\''] : OpenClose, ['`'] : OpenClose, ['"'] : OpenClose, 167 167 [' '] : OpenClose, ['\f'] : OpenClose, ['\n'] : OpenClose, ['\r'] : OpenClose, ['\t'] : OpenClose, ['\v'] : OpenClose, // isspace … … 198 198 199 199 200 // tuples 201 forall( dtype ostype, otype T, ttype Params | ostream( ostype ) | writeable( T ) | { ostype * ?|?( ostype *, Params ); } ) 202 ostype * ?|?( ostype * os, T arg, Params rest ) { 203 os | arg | ", "; 204 os | rest; 205 } // ?|? 206 207 208 // manipulators 200 209 forall( dtype ostype | ostream( ostype ) ) 201 210 ostype * ?|?( ostype * os, ostype * (* manip)( ostype * ) ) {
Note: See TracChangeset
for help on using the changeset viewer.