Changeset 7917 for trunk/Ohana/src/opihi/cmd.basic/run_if.c
- Timestamp:
- Jul 16, 2006, 10:58:49 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/cmd.basic/run_if.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/cmd.basic/run_if.c
r4689 r7917 12 12 13 13 if ((argc != 2) && (argc != 3)) { 14 fprintf (stderr, "USAGE: if (conditional) [break], end with the word 'END'\n");14 gprint (GP_ERR, "USAGE: if (conditional) [break], end with the word 'END'\n"); 15 15 return (FALSE); 16 16 } 17 17 if ((argc == 3) && strcmp (argv[2], "break")) { 18 fprintf (stderr, "USAGE: if (conditional) [break], end with the word 'END'\n");18 gprint (GP_ERR, "USAGE: if (conditional) [break], end with the word 'END'\n"); 19 19 return (FALSE); 20 20 } … … 55 55 56 56 if ((ThisList == 0) && (input == (char *) NULL)) { 57 fprintf (stderr, "end if-block with 'END'\n");57 gprint (GP_ERR, "end if-block with 'END'\n"); 58 58 continue; 59 59 } 60 60 if ((ThisList > 0) && (input == (char *) NULL)) { 61 fprintf (stderr, "missing 'END' in if-block\n");61 gprint (GP_ERR, "missing 'END' in if-block\n"); 62 62 input = strcreate ("end"); 63 63 }
Note:
See TracChangeset
for help on using the changeset viewer.
