aboutsummaryrefslogtreecommitdiff
path: root/gdb/parse.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-03-24 08:25:58 -0600
committerTom Tromey <tom@tromey.com>2019-04-04 19:55:10 -0600
commite3980ce2a9bf19ade17fdd9817765f2d1e17a0d8 (patch)
tree670f7a0d3055ddf56d4a68449d6e497604bec005 /gdb/parse.c
parentbec858ea4d0cef2d8be47b96669b803f73902014 (diff)
downloadgdb-e3980ce2a9bf19ade17fdd9817765f2d1e17a0d8.zip
gdb-e3980ce2a9bf19ade17fdd9817765f2d1e17a0d8.tar.gz
gdb-e3980ce2a9bf19ade17fdd9817765f2d1e17a0d8.tar.bz2
Make increase_expout_size static
increase_expout_size is only called from parse.c, and probably only should be. This makes it "static". Tested by rebuilding. gdb/ChangeLog 2019-04-04 Tom Tromey <tom@tromey.com> * parser-defs.h (increase_expout_size): Don't declare. * parse.c (increase_expout_size): Now static.
Diffstat (limited to 'gdb/parse.c')
-rw-r--r--gdb/parse.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/gdb/parse.c b/gdb/parse.c
index 63cbc74..6716597 100644
--- a/gdb/parse.c
+++ b/gdb/parse.c
@@ -119,6 +119,9 @@ static expression_up parse_exp_in_context (const char **, CORE_ADDR,
int, int *,
innermost_block_tracker_types);
+static void increase_expout_size (struct parser_state *ps, size_t lenelt);
+
+
/* Documented at it's declaration. */
void
@@ -1822,9 +1825,11 @@ exp_uses_objfile (struct expression *exp, struct objfile *objfile)
return exp_iterate (exp, exp_uses_objfile_iter, objfile);
}
-/* See definition in parser-defs.h. */
+/* Reallocate the `expout' pointer inside PS so that it can accommodate
+ at least LENELT expression elements. This function does nothing if
+ there is enough room for the elements. */
-void
+static void
increase_expout_size (struct parser_state *ps, size_t lenelt)
{
if ((ps->expout_ptr + lenelt) >= ps->expout_size)