From 497acdd8860d629ba24ed9976fd47eeb743b74ab Mon Sep 17 00:00:00 2001 From: rodri Date: Thu, 21 Sep 2023 16:49:11 +0000 Subject: add parsecmd to the server. modified it to allow for commands with the same name but different nargs. now each match list entry is preceded by an 'm', to simplify its processing. note that this breaks the client. the next commit will fix that. --- fns.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'fns.h') diff --git a/fns.h b/fns.h index 4e5656f..5940cb0 100644 --- a/fns.h +++ b/fns.h @@ -22,9 +22,16 @@ int shiplen(int); char *shipname(int); char *statename(int); int max(int, int); +int min(int, int); /* * menulist */ Menulist *newmenulist(int, char*); void delmenulist(Menulist*); + +/* + * parse + */ +Cmdbuf *parsecmd(char*, int); +Cmdtab *lookupcmd(Cmdbuf*, Cmdtab*, int); -- cgit v1.2.3