Changes in tests/coroutine/fmtLines.cfa [f8cd310:107b01a]
- File:
-
- 1 edited
-
tests/coroutine/fmtLines.cfa (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/coroutine/fmtLines.cfa
rf8cd310 r107b01a 10 10 // Created On : Sun Sep 17 21:56:15 2017 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Mar 22 13:41:16 201913 // Update Count : 5812 // Last Modified On : Wed Dec 12 22:45:36 2018 13 // Update Count : 48 14 14 // 15 15 … … 24 24 void main( Format & fmt ) with( fmt ) { 25 25 for () { // for as many characters 26 for ( g = 0; g < 5; g += 1 ) {// groups of 5 blocks27 for ( b = 0; b < 4; b += 1 ) {// blocks of 4 characters26 for ( g; 5 ) { // groups of 5 blocks 27 for ( b; 4 ) { // blocks of 4 characters 28 28 for () { // for newline characters 29 29 suspend(); 30 if ( ch != '\n' ) break;// ignore newline30 if ( ch != '\n' ) break; // ignore newline 31 31 } // for 32 32 sout | ch; // print character … … 63 63 // Local Variables: // 64 64 // tab-width: 4 // 65 // compile-command: "cfa fmtLines.c fa" //65 // compile-command: "cfa fmtLines.c" // 66 66 // End: //
Note:
See TracChangeset
for help on using the changeset viewer.