diff options
author | Andrew Cagney <cagney@redhat.com> | 2000-05-16 03:03:13 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2000-05-16 03:03:13 +0000 |
commit | 1ed2a1352d4af2d840b285a741bc02d4584c24f1 (patch) | |
tree | 9020ef74aa86fd491e1932344e76a0a6f429769d /gdb/command.h | |
parent | dfb0df6c344642319f4301abb78ac015a0e558f0 (diff) | |
download | gdb-1ed2a1352d4af2d840b285a741bc02d4584c24f1.zip gdb-1ed2a1352d4af2d840b285a741bc02d4584c24f1.tar.gz gdb-1ed2a1352d4af2d840b285a741bc02d4584c24f1.tar.bz2 |
Fix signature of add_set_enum_cmd. Change VAR parameter to char**.
Cleanup signature of add_set_cmd. Change VAR parameter to void*.
Diffstat (limited to 'gdb/command.h')
-rw-r--r-- | gdb/command.h | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/gdb/command.h b/gdb/command.h index 20e4fd5..4cff582 100644 --- a/gdb/command.h +++ b/gdb/command.h @@ -194,7 +194,7 @@ struct cmd_list_element /* Pointer to variable affected by "set" and "show". Doesn't matter if type is not_set. */ - char *var; + void *var; /* What kind of variable is *VAR? */ var_types var_type; @@ -284,13 +284,18 @@ extern void help_list (struct cmd_list_element *, char *, extern void help_cmd_list (struct cmd_list_element *, enum command_class, char *, int, struct ui_file *); -extern struct cmd_list_element * - add_set_cmd PARAMS ((char *, enum command_class, var_types, char *, char *, - struct cmd_list_element **)); - -extern struct cmd_list_element * - add_set_enum_cmd PARAMS ((char *name, enum command_class, char *list[], - char *var, char *doc, struct cmd_list_element ** c)); +extern struct cmd_list_element *add_set_cmd (char *name, enum + command_class class, + var_types var_type, void *var, + char *doc, + struct cmd_list_element **list); + +extern struct cmd_list_element *add_set_enum_cmd (char *name, + enum command_class class, + char *enumlist[], + char **var, + char *doc, + struct cmd_list_element **list); extern struct cmd_list_element * add_show_from_set PARAMS ((struct cmd_list_element *, |