https://github.com/teuben/nemo
Tip revision: 4057e8c3e1b75075e432c428bc931074302e1ef7 authored by Peter Teuben on 12 April 2004, 02:17:20 UTC
updated install instructions
updated install instructions
Tip revision: 4057e8c
command.h
/*
* command.h
*
*
*
*/
#define MAXCMD 1024
typedef struct _command {
string name; /* name of the command parser */
int ncmd; /* number of commands stored so far */
string cmd[MAXCMD]; /* name of the valid commands */
char *type[MAXCMD]; /* i=int d=double s=string .=optional */
int nargs[MAXCMD]; /* number of required arguments of each command (0=void) */
string help[MAXCMD]; /* help string */
} command;
/* command.c */
command *command_init(string name);
void command_register(command *c, string cmd, string argtypes, string help);
string *command_get(command *c);
void command_read(string filename);
void command_close(command *c);