Changes in / [2988eeb:3f80888]
- Location:
- src
- Files:
-
- 1 added
- 2 edited
-
examples/rational.cc (added)
-
libcfa/iostream (modified) (2 diffs)
-
libcfa/iostream.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/iostream
r2988eeb r3f80888 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Mar 6 20:51:35201713 // Update Count : 9 812 // Last Modified On : Sat Mar 4 22:04:33 2017 13 // Update Count : 95 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 70 forall( dtype ostype | ostream( ostype ) ) ostype * ?|?( ostype *, ostype * (*)( ostype * ) ); 73 71 // manipulators 74 forall( dtype ostype | ostream( ostype ) ) ostype * ?|?( ostype *, ostype * (*)( ostype * ) );75 72 forall( dtype ostype | ostream( ostype ) ) ostype * endl( ostype * ); 76 73 forall( dtype ostype | ostream( ostype ) ) ostype * sepOn( ostype * ); -
src/libcfa/iostream.c
r2988eeb r3f80888 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Mar 6 20:52:02201713 // Update Count : 3 1312 // Last Modified On : Sat Mar 4 22:04:16 2017 13 // Update Count : 308 14 14 // 15 15 … … 155 155 enum { Open = 1, Close, OpenClose }; 156 156 static const unsigned char mask[256] = { 157 // opening delimiters , no space after157 // opening delimiters 158 158 ['('] : Open, ['['] : Open, ['{'] : Open, 159 ['$'] : Open, [ '='] : Open, [(unsigned char)'£'] : Open, [(unsigned char)'¥'] : Open,159 ['$'] : Open, [(unsigned char)'£'] : Open, [(unsigned char)'¥'] : Open, 160 160 [(unsigned char)'¡'] : Open, [(unsigned char)'¿'] : Open, [(unsigned char)'«'] : Open, 161 // closing delimiters , no space before161 // closing delimiters 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 , no space before or after165 // opening-closing delimiters 166 166 ['\''] : OpenClose, ['`'] : OpenClose, ['"'] : OpenClose, 167 167 [' '] : OpenClose, ['\f'] : OpenClose, ['\n'] : OpenClose, ['\r'] : OpenClose, ['\t'] : OpenClose, ['\v'] : OpenClose, // isspace … … 198 198 199 199 200 // tuples201 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 // manipulators209 200 forall( dtype ostype | ostream( ostype ) ) 210 201 ostype * ?|?( ostype * os, ostype * (* manip)( ostype * ) ) {
Note:
See TracChangeset
for help on using the changeset viewer.