From 0581e13edef0280433d5c6d5175c6a7b740bdc4d Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 13 Jun 2012 15:47:13 +0000 Subject: * ada-lang.c (ada_make_symbol_completion_list): Return a VEC. * breakpoint.c (catch_syscall_completer): Return a VEC. * cli/cli-cmds.c (complete_command): Update. * cli/cli-decode.c (complete_on_cmdlist): Return a VEC. (complete_on_enum): Likewise. * command.h: Include gdb_vecs.h. (completer_ftype): Change return type. (complete_on_cmdlist, complete_on_enum): Likewise. * completer.c (noop_completer, filename_completer) (location_completer): Return a VEC. (add_struct_fields): Remove 'nextp' argument. Change 'output' to a VEC. (expression_completer, complete_line_internal, complete_line) (command_completer): Return a VEC. (gdb_completion_word_break_characters, line_completion_function): Update. * completer.h: Include gdb_vecs.h. (complete_line, noop_completer, filename_completer) (expression_completer, location_completer, command_completer): Update. * f-lang.c (f_word_break_characters): Return a VEC. * interps.c (interpreter_completer): Return a VEC. * language.h (struct language_defn) : Return a VEC. * python/py-cmd.c (cmdpy_completer): Return a VEC. * symtab.c (free_completion_list): Take a VEC. (return_val_size, return_val_index): Remove. (return_val): Now a VEC. (completion_list_add_name): Update. (default_make_symbol_completion_list_break_on) (default_make_symbol_completion_list, make_symbol_completion_list) (make_symbol_completion_list_fn, make_file_symbol_completion_list): Return a VEC. (add_filename_to_list): Update. (struct add_partial_filename_data) : Remove. : Now a VEC. (maybe_add_partial_symtab_filename): Update. (make_source_files_completion_list): Return a VEC. * symtab.h (default_make_symbol_completion_list_break_on) (default_make_symbol_completion_list, make_symbol_completion_list) (make_symbol_completion_list_fn, make_file_symbol_completion_list) (make_source_files_completion_list): Update. --- gdb/language.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gdb/language.h') diff --git a/gdb/language.h b/gdb/language.h index d612c70523a..38c48305c2d 100644 --- a/gdb/language.h +++ b/gdb/language.h @@ -306,10 +306,10 @@ struct language_defn /* The list of characters forming word boundaries. */ char *(*la_word_break_characters) (void); - /* Should return a NULL terminated array of all symbols which - are possible completions for TEXT. WORD is the entire command - on which the completion is being made. */ - char **(*la_make_symbol_completion_list) (char *text, char *word); + /* Should return a vector of all symbols which are possible + completions for TEXT. WORD is the entire command on which the + completion is being made. */ + VEC (char_ptr) *(*la_make_symbol_completion_list) (char *text, char *word); /* The per-architecture (OS/ABI) language information. */ void (*la_language_arch_info) (struct gdbarch *, -- cgit v1.2.1