mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
constify complete_line
This changes complete_line to take a const parameter. 2014-06-18 Tom Tromey <tromey@redhat.com> * completer.c (complete_line): Make "line_buffer" const. * completer.h (complete_line): Update.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2014-06-18 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* completer.c (complete_line): Make "line_buffer" const.
|
||||
* completer.h (complete_line): Update.
|
||||
|
||||
2014-06-18 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* symtab.c (add_macro_name): Remove unneeded cast.
|
||||
|
||||
@@ -772,7 +772,7 @@ complete_line_internal (const char *text,
|
||||
should pretend that the line ends at POINT. */
|
||||
|
||||
VEC (char_ptr) *
|
||||
complete_line (const char *text, char *line_buffer, int point)
|
||||
complete_line (const char *text, const char *line_buffer, int point)
|
||||
{
|
||||
return complete_line_internal (text, line_buffer,
|
||||
point, handle_completions);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#include "gdb_vecs.h"
|
||||
|
||||
extern VEC (char_ptr) *complete_line (const char *text,
|
||||
char *line_buffer,
|
||||
const char *line_buffer,
|
||||
int point);
|
||||
|
||||
extern char *readline_line_completion_function (const char *text,
|
||||
|
||||
Reference in New Issue
Block a user