Changeset 7917 for trunk/Ohana/src/opihi/lib.shell/macro_create.c
- Timestamp:
- Jul 16, 2006, 10:58:49 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/lib.shell/macro_create.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/lib.shell/macro_create.c
r3907 r7917 21 21 22 22 if (argc != 2) { 23 fprintf (stderr, "USAGE: macro <name> [-c \"comment line\"]\n");24 fprintf (stderr, " (enter commands, end with the word 'END')\n");23 gprint (GP_ERR, "USAGE: macro <name> [-c \"comment line\"]\n"); 24 gprint (GP_ERR, " (enter commands, end with the word 'END')\n"); 25 25 return (FALSE); 26 26 } … … 31 31 32 32 if ((macro == NULL) && (cmd != NULL)) { 33 fprintf (stderr, "cannot redefine inherent command %s\n", argv[1]);33 gprint (GP_ERR, "cannot redefine inherent command %s\n", argv[1]); 34 34 return (FALSE); 35 35 } 36 36 if ((macro != NULL) && (cmd == NULL)) { 37 fprintf (stderr, "programming error: macro not in command list (%s)\n", argv[1]);37 gprint (GP_ERR, "programming error: macro not in command list (%s)\n", argv[1]); 38 38 return (FALSE); 39 39 } … … 75 75 76 76 if ((ThisList == 0) && (input == (char *) NULL)) { 77 fprintf (stderr, "end macro with 'END'\n");77 gprint (GP_ERR, "end macro with 'END'\n"); 78 78 continue; 79 79 } … … 81 81 82 82 if ((ThisList > 0) && (input == (char *) NULL)) { 83 fprintf (stderr, "missing 'END' in macro definition\n");83 gprint (GP_ERR, "missing 'END' in macro definition\n"); 84 84 input = strcreate ("end"); 85 85 }
Note:
See TracChangeset
for help on using the changeset viewer.
