Changeset 7917 for trunk/Ohana/src/opihi/lib.shell/MacroOps.c
- Timestamp:
- Jul 16, 2006, 10:58:49 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/lib.shell/MacroOps.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/lib.shell/MacroOps.c
r4705 r7917 49 49 50 50 if ((macro == NULL) || (macro[0].Nlines == 0)) { 51 fprintf (stderr, " macro not defined\n");51 gprint (GP_ERR, " macro not defined\n"); 52 52 return; 53 53 } 54 54 for (i = 0; i < macro[0].Nlines; i++) { 55 fprintf (stderr, " %s\n", macro[0].line[i]);55 gprint (GP_ERR, " %s\n", macro[0].line[i]); 56 56 } 57 57 return; … … 61 61 int i; 62 62 for (i = 0; i < Nmacros; i++) { 63 fprintf (stderr, "%s\n", macros[i].name);63 gprint (GP_ERR, "%s\n", macros[i].name); 64 64 } 65 65 } … … 91 91 } 92 92 if (Nm == -1) { 93 fprintf (stderr, "programming error: macro not found\n");93 gprint (GP_ERR, "programming error: macro not found\n"); 94 94 return (FALSE); 95 95 } … … 114 114 } 115 115 if (EXACT) { 116 if (VERBOSE) fprintf (stderr, "no exact match to %s\n", name);116 if (VERBOSE) gprint (GP_ERR, "no exact match to %s\n", name); 117 117 return (NULL); 118 118 } … … 130 130 if (Nmatch > 1) { 131 131 if (VERBOSE) { 132 fprintf (stderr, "ambiguous macro: %s ( ", name);132 gprint (GP_ERR, "ambiguous macro: %s ( ", name); 133 133 for (i = 0; i < Nmatch; i++) { 134 fprintf (stderr, "%s ", macros[match[i]].name);134 gprint (GP_ERR, "%s ", macros[match[i]].name); 135 135 } 136 fprintf (stderr, ")\n");136 gprint (GP_ERR, ")\n"); 137 137 } 138 138 return (NULL); 139 139 } 140 if (VERBOSE) fprintf (stderr, "%s: Macro not found.\n", name);140 if (VERBOSE) gprint (GP_ERR, "%s: Macro not found.\n", name); 141 141 return (NULL); 142 142 }
Note:
See TracChangeset
for help on using the changeset viewer.
