Changeset 6976 for trunk/ippTools/src/pzgetexp.c
- Timestamp:
- Apr 24, 2006, 5:06:56 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/pzgetexp.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/pzgetexp.c
r6974 r6976 43 43 } 44 44 45 // XXX debugging 45 46 fprintf(stderr, "cmd is: %s\n", cmd); 46 47 … … 107 108 PS_ASSERT_PTR_NON_NULL(str, NULL); 108 109 109 psList * lines= psStringSplit(str, "\n");110 psList *doc = psStringSplit(str, "\n"); 110 111 111 psListIterator *lineCursor = psListIteratorAlloc( lines, 0, false);112 psListIterator *lineCursor = psListIteratorAlloc(doc, 0, false); 112 113 113 psArray *summitExps = psArrayAlloc(psListLength(lines)); 114 psString item; 115 while ((item = psListGetAndIncrement(lineCursor))) { 116 printf("-> %s\n", item); 114 psArray *summitExps = psArrayAlloc(psListLength(doc)); 115 psString line; 116 while ((line = psListGetAndIncrement(lineCursor))) { 117 // XXX debugging 118 printf("-> %s\n", line); 117 119 118 120 // split line into tokens 119 psList *tokens = psStringSplit( item, " ");121 psList *tokens = psStringSplit(line, " "); 120 122 121 123 // check to see if this line is a comment (or if the first token is … … 160 162 161 163 psFree(lineCursor); 162 psFree( lines);164 psFree(doc); 163 165 164 166 return summitExps;
Note:
See TracChangeset
for help on using the changeset viewer.
