| 1 | #ifndef REMAKE_DBG_SUBCMD_H |
| 2 | #define REMAKE_DBG_SUBCMD_H |
| 3 | |
| 4 | typedef struct { |
| 5 | const char *name; /* name of subcommand command. */ |
| 6 | const char *short_doc; /* short description of subcommand */ |
| 7 | const char *doc; /* full description of subcommand */ |
| 8 | int *var; /* address of variable setting. NULL if no |
| 9 | setting. */ |
| 10 | bool b_onoff; /* True if on/off variable, false if int. |
| 11 | FIXME: generalize into enumeration. |
| 12 | */ |
| 13 | unsigned int min_abbrev; /* Fewest number of characters needed |
| 14 | to match name. */ |
| 15 | } subcommand_var_info_t; |
| 16 | |
| 17 | extern void dbg_help_subcmd_entry(const char *psz_subcmd_name, |
| 18 | const char *psz_fmt, |
| 19 | subcommand_var_info_t *p_subcmd, |
| 20 | bool full_info); |
| 21 | #endif /* DBG_CMD_H*/ |
| 22 | /* |
| 23 | * Local variables: |
| 24 | * c-file-style: "gnu" |
| 25 | * indent-tabs-mode: nil |
| 26 | * End: |
| 27 | */ |