Changeset 809813d in mainline for uspace/app/bdsh/cmds/cmds.h


Ignore:
Timestamp:
2008-09-14T15:43:22Z (16 years ago)
Author:
Tim Post <echo@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6279151
Parents:
211b0c13
Message:

Simplify entry types (and return values) for commands

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/cmds/cmds.h

    r211b0c13 r809813d  
    2020
    2121/* Return macros for int type entry points */
    22 #define CMD_FAILURE (int*)1
     22#define CMD_FAILURE 1
    2323#define CMD_SUCCESS 0
    24 #define CMD_VOID (void *)NULL
    2524
    2625/* Types for module command entry and help */
    27 typedef int * (* mod_entry_t)(char **);
    28 typedef void * (* mod_help_t)(unsigned int);
     26typedef int (* mod_entry_t)(char **);
     27typedef void (* mod_help_t)(unsigned int);
    2928
    3029/* Built-in commands need to be able to modify cliuser_t */
    31 typedef int * (* builtin_entry_t)(char **, cliuser_t *);
    32 typedef void * (* builtin_help_t)(unsigned int);
     30typedef int (* builtin_entry_t)(char **, cliuser_t *);
     31typedef void (* builtin_help_t)(unsigned int);
    3332
    3433/* Module structure */
Note: See TracChangeset for help on using the changeset viewer.