Changeset 7917 for trunk/Ohana/src/opihi/lib.shell/parse.c
- Timestamp:
- Jul 16, 2006, 10:58:49 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/lib.shell/parse.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/lib.shell/parse.c
r3317 r7917 74 74 free (B); 75 75 76 if (status) fprintf (stderr, "warning: exit status of command %d\n", status);76 if (status) gprint (GP_ERR, "warning: exit status of command %d\n", status); 77 77 78 78 /* convert all but last return to ' '. drop last return */ … … 131 131 free (V0); V0 = (char *) NULL; 132 132 if (Nval >= vec[0].Nelements) { 133 fprintf (stderr, "no element %d\n", Nval);133 gprint (GP_ERR, "no element %d\n", Nval); 134 134 goto escape; 135 135 } … … 170 170 c1 = strchr (L, '}'); 171 171 if (c1 == NULL) { 172 fprintf (stderr, "no close brackets!\n");172 gprint (GP_ERR, "no close brackets!\n"); 173 173 goto escape; 174 174 } 175 175 c2 = strchr (L, '{'); 176 176 if ((c2 != NULL) && (c2 < c1)) { 177 fprintf (stderr, "can't nest brackets!\n");177 gprint (GP_ERR, "can't nest brackets!\n"); 178 178 goto escape; 179 179 } … … 205 205 206 206 error: 207 fprintf (stderr, "syntax error\n");207 gprint (GP_ERR, "syntax error\n"); 208 208 209 209 escape:
Note:
See TracChangeset
for help on using the changeset viewer.
