Changeset bc9020f
- Timestamp:
- Jul 28, 2009, 9:26:44 PM (15 years ago)
- Branches:
- master, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- c1d9441
- Parents:
- 5227de4
- git-author:
- Anders Kaseorg <andersk@mit.edu> (07/27/09 23:37:16)
- git-committer:
- Anders Kaseorg <andersk@mit.edu> (07/28/09 21:26:44)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
commands.c
rab225e0 rbc9020f 8 8 #define OWLCMD_ARGS(name, fn, ctx, summary, usage, description) \ 9 9 { name, summary, usage, description, ctx, \ 10 NULL, fn, NULL, NULL, NULL, NULL, NULL }10 NULL, fn, NULL, NULL, NULL, NULL, NULL, NULL } 11 11 12 12 /* fn is "void foo(void)" */ 13 13 #define OWLCMD_VOID(name, fn, ctx, summary, usage, description) \ 14 14 { name, summary, usage, description, ctx, \ 15 NULL, NULL, fn, NULL, NULL, NULL, NULL }15 NULL, NULL, fn, NULL, NULL, NULL, NULL, NULL } 16 16 17 17 /* fn is "void foo(int)" */ 18 18 #define OWLCMD_INT(name, fn, ctx, summary, usage, description) \ 19 19 { name, summary, usage, description, ctx, \ 20 NULL, NULL, NULL, fn, NULL, NULL, NULL }20 NULL, NULL, NULL, fn, NULL, NULL, NULL, NULL } 21 21 22 22 #define OWLCMD_ALIAS(name, actualname) \ 23 23 { name, OWL_CMD_ALIAS_SUMMARY_PREFIX actualname, "", "", OWL_CTX_ANY, \ 24 actualname, NULL, NULL, NULL, NULL, NULL, NULL }24 actualname, NULL, NULL, NULL, NULL, NULL, NULL, NULL } 25 25 26 26 /* fn is "char *foo(void *ctx, int argc, char **argv, char *buff)" */ 27 27 #define OWLCMD_ARGS_CTX(name, fn, ctx, summary, usage, description) \ 28 28 { name, summary, usage, description, ctx, \ 29 NULL, NULL, NULL, NULL, ((char*(*)(void*,int,char**,char*))fn), NULL, NULL }29 NULL, NULL, NULL, NULL, ((char*(*)(void*,int,char**,char*))fn), NULL, NULL, NULL } 30 30 31 31 /* fn is "void foo(void)" */ 32 32 #define OWLCMD_VOID_CTX(name, fn, ctx, summary, usage, description) \ 33 33 { name, summary, usage, description, ctx, \ 34 NULL, NULL, NULL, NULL, NULL, ((void(*)(void*))(fn)), NULL }34 NULL, NULL, NULL, NULL, NULL, ((void(*)(void*))(fn)), NULL, NULL } 35 35 36 36 /* fn is "void foo(int)" */ 37 37 #define OWLCMD_INT_CTX(name, fn, ctx, summary, usage, description) \ 38 38 { name, summary, usage, description, ctx, \ 39 NULL, NULL, NULL, NULL, NULL, NULL, ((void(*)(void*,int))fn) }39 NULL, NULL, NULL, NULL, NULL, NULL, ((void(*)(void*,int))fn), NULL } 40 40 41 41 … … 991 991 992 992 /* This line MUST be last! */ 993 { NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL }993 { NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL } 994 994 995 995 };
Note: See TracChangeset
for help on using the changeset viewer.