Changeset 4689 for trunk/Ohana/src/opihi/include/shell.h
- Timestamp:
- Jul 31, 2005, 1:04:22 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/include/shell.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/include/shell.h
r4462 r4689 1 1 /*** shell.h ***/ 2 # include "external.h" 2 3 3 4 # ifndef SHELL_H … … 8 9 # define ISNUM(c) (isdigit(c) || (c == '-') || (c == '.')) 9 10 11 # define MACRO_STRING(s) #s 12 # define MACRO_NAME(s) MACRO_STRING(s) 13 14 typedef int CommandF (); 15 10 16 /*** typedef structs used by shell functions ***/ 11 17 typedef struct { /* basic opihi command structure */ 12 18 char *name; 13 Function*func;19 CommandF *func; 14 20 char *help; 15 21 } Command; … … 67 73 char *GetMacroName PROTO((void)); 68 74 int GetMacroDepth PROTO((void)); 75 void ListMacro PROTO((Macro *macro)); 76 void ListMacros PROTO(()); 77 void FreeMacro PROTO((Macro *macro)); 69 78 70 79 int exec_loop PROTO((Macro *loop)); … … 104 113 int macro_write PROTO((int, char **)); 105 114 115 char *memstr (char *m1, char *m2, int n); 116 106 117 # endif
Note:
See TracChangeset
for help on using the changeset viewer.
