aboutsummaryrefslogtreecommitdiff
path: root/gdb/parse.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@ericsson.com>2017-03-14 10:25:39 -0400
committerSimon Marchi <simon.marchi@ericsson.com>2017-03-14 10:25:53 -0400
commitcf81cf6081d1a8c15c477f903d15d7b88f31b686 (patch)
tree354070a0a0ed09edfb17cb97c03986d23f66602b /gdb/parse.c
parentc799a79d66d09c442d85467986c2e8873f09297c (diff)
downloadgdb-cf81cf6081d1a8c15c477f903d15d7b88f31b686.zip
gdb-cf81cf6081d1a8c15c477f903d15d7b88f31b686.tar.gz
gdb-cf81cf6081d1a8c15c477f903d15d7b88f31b686.tar.bz2
Make length_of_subexp static
It isn't used anywhere else than the file it's defined in. gdb/ChangeLog: * parse.c (length_of_subexp): Make static. * parser-defs.h (length_of_subexp): Remove.
Diffstat (limited to 'gdb/parse.c')
-rw-r--r--gdb/parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/parse.c b/gdb/parse.c
index 9f89b1e..e6f6805 100644
--- a/gdb/parse.c
+++ b/gdb/parse.c
@@ -827,7 +827,7 @@ prefixify_expression (struct expression *expr)
/* Return the number of exp_elements in the postfix subexpression
of EXPR whose operator is at index ENDPOS - 1 in EXPR. */
-int
+static int
length_of_subexp (struct expression *expr, int endpos)
{
int oplen, args;