diff options
author | Keith Seitz <keiths@redhat.com> | 2013-10-02 00:46:07 +0000 |
---|---|---|
committer | Keith Seitz <keiths@redhat.com> | 2013-10-02 00:46:07 +0000 |
commit | d7561cbbf27a8ff771f85baf6696aa7645250484 (patch) | |
tree | eb81d452fe456e9a043cc453bf8b65617b40e915 /gdb/parser-defs.h | |
parent | 62574b938f80a485874b85a770d03bf0f21eece5 (diff) | |
download | binutils-d7561cbbf27a8ff771f85baf6696aa7645250484.zip binutils-d7561cbbf27a8ff771f85baf6696aa7645250484.tar.gz binutils-d7561cbbf27a8ff771f85baf6696aa7645250484.tar.bz2 |
Constification of parse_linespec and fallout:
https://sourceware.org/ml/gdb-patches/2013-09/msg01017.html
https://sourceware.org/ml/gdb-patches/2013-09/msg01018.html
https://sourceware.org/ml/gdb-patches/2013-09/msg01019.html
https://sourceware.org/ml/gdb-patches/2013-09/msg01020.html
Diffstat (limited to 'gdb/parser-defs.h')
-rw-r--r-- | gdb/parser-defs.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/parser-defs.h b/gdb/parser-defs.h index 92daca9..ed022ad 100644 --- a/gdb/parser-defs.h +++ b/gdb/parser-defs.h @@ -67,7 +67,7 @@ extern int arglist_len; struct stoken { /* Pointer to first byte of char-string or first bit of bit-string. */ - char *ptr; + const char *ptr; /* Length of string in bytes for char-string or bits for bit-string. */ int length; }; @@ -201,7 +201,7 @@ extern void write_dollar_variable (struct stoken str); extern void mark_struct_expression (void); -extern char *find_template_name_end (char *); +extern const char *find_template_name_end (const char *); extern void start_arglist (void); @@ -264,11 +264,11 @@ extern int parse_c_float (struct gdbarch *gdbarch, const char *p, int len, /* During parsing of a C expression, the pointer to the next character is in this variable. */ -extern char *lexptr; +extern const char *lexptr; /* After a token has been recognized, this variable points to it. Currently used only for error reporting. */ -extern char *prev_lexptr; +extern const char *prev_lexptr; /* Current depth in parentheses within the expression. */ |