diff options
author | Tom Tromey <tromey@redhat.com> | 2013-04-15 10:22:12 -0600 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-06-18 08:16:58 -0600 |
commit | 1834676b5f9a7f425b68d181da85f96fe246e03b (patch) | |
tree | b394abed93aa63bb954f99993b28f5554abf5900 | |
parent | ac1a991b1c00891d29607a6f97d98d66312af83f (diff) | |
download | gdb-1834676b5f9a7f425b68d181da85f96fe246e03b.zip gdb-1834676b5f9a7f425b68d181da85f96fe246e03b.tar.gz gdb-1834676b5f9a7f425b68d181da85f96fe246e03b.tar.bz2 |
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.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/completer.c | 2 | ||||
-rw-r--r-- | gdb/completer.h | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f34f6dc..64351cb 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 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. 2014-06-18 Tom Tromey <tromey@redhat.com> diff --git a/gdb/completer.c b/gdb/completer.c index 94f70a9..64b146b 100644 --- a/gdb/completer.c +++ b/gdb/completer.c @@ -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); diff --git a/gdb/completer.h b/gdb/completer.h index 5b90773..7aa0f3b 100644 --- a/gdb/completer.h +++ b/gdb/completer.h @@ -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, |