Changeset bc9020f


Ignore:
Timestamp:
Jul 28, 2009, 9:26:44 PM (8 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, 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)
Message:
commands.c: Add missing initializers for commands_to_init.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • commands.c

    rab225e0 rbc9020f  
    88#define OWLCMD_ARGS(name, fn, ctx, summary, usage, description) \
    99        { name, summary, usage, description, ctx, \
    10           NULL, fn, NULL, NULL, NULL, NULL, NULL }
     10          NULL, fn, NULL, NULL, NULL, NULL, NULL, NULL }
    1111
    1212/* fn is "void foo(void)" */
    1313#define OWLCMD_VOID(name, fn, ctx, summary, usage, description) \
    1414        { name, summary, usage, description, ctx, \
    15           NULL, NULL, fn, NULL, NULL, NULL, NULL }
     15          NULL, NULL, fn, NULL, NULL, NULL, NULL, NULL }
    1616
    1717/* fn is "void foo(int)" */
    1818#define OWLCMD_INT(name, fn, ctx, summary, usage, description) \
    1919        { name, summary, usage, description, ctx, \
    20           NULL, NULL, NULL, fn, NULL, NULL, NULL }
     20          NULL, NULL, NULL, fn, NULL, NULL, NULL, NULL }
    2121
    2222#define OWLCMD_ALIAS(name, actualname) \
    2323        { 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 }
    2525
    2626/* fn is "char *foo(void *ctx, int argc, char **argv, char *buff)" */
    2727#define OWLCMD_ARGS_CTX(name, fn, ctx, summary, usage, description) \
    2828        { 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 }
    3030
    3131/* fn is "void foo(void)" */
    3232#define OWLCMD_VOID_CTX(name, fn, ctx, summary, usage, description) \
    3333        { 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 }
    3535
    3636/* fn is "void foo(int)" */
    3737#define OWLCMD_INT_CTX(name, fn, ctx, summary, usage, description) \
    3838        { 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 }
    4040
    4141
     
    991991
    992992  /* 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 }
    994994
    995995};
Note: See TracChangeset for help on using the changeset viewer.