*** empty log message ***
[deliverable/binutils-gdb.git] / gdb / command.h
index c18e2dd842a5f16b171b43bacba13c37c20327d6..3064ce29a8125f8893126f271a8e9cbd7a8b18ae 100644 (file)
@@ -19,6 +19,8 @@
 #if !defined (COMMAND_H)
 #define COMMAND_H 1
 
+#include "gdb_vecs.h"
+
 /* This file defines the public interface for any code wanting to
    create commands.  */
 
@@ -149,9 +151,10 @@ typedef void cmd_sfunc_ftype (char *args, int from_tty,
 extern void set_cmd_sfunc (struct cmd_list_element *cmd,
                           cmd_sfunc_ftype *sfunc);
 
-extern void set_cmd_completer (struct cmd_list_element *,
-                              char **(*completer) (struct cmd_list_element *,
-                                                   char *, char *));
+typedef VEC (char_ptr) *completer_ftype (struct cmd_list_element *,
+                                        char *, char *);
+
+extern void set_cmd_completer (struct cmd_list_element *, completer_ftype *);
 
 /* HACK: cagney/2002-02-23: Code, mostly in tracepoints.c, grubs
    around in cmd objects to test the value of the commands sfunc().  */
@@ -208,11 +211,11 @@ extern struct cmd_list_element *add_info (char *,
 
 extern struct cmd_list_element *add_info_alias (char *, char *, int);
 
-extern char **complete_on_cmdlist (struct cmd_list_element *,
-                                  char *, char *);
+extern VEC (char_ptr) *complete_on_cmdlist (struct cmd_list_element *,
+                                           char *, char *);
 
-extern char **complete_on_enum (const char *const *enumlist,
-                               char *, char *);
+extern VEC (char_ptr) *complete_on_enum (const char *const *enumlist,
+                                        char *, char *);
 
 /* Functions that implement commands about CLI commands.  */
 
This page took 0.024454 seconds and 4 git commands to generate.