]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Make length_of_subexp static
authorSimon Marchi <simon.marchi@ericsson.com>
Tue, 14 Mar 2017 14:25:39 +0000 (10:25 -0400)
committerSimon Marchi <simon.marchi@ericsson.com>
Tue, 14 Mar 2017 14:25:53 +0000 (10:25 -0400)
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.

gdb/ChangeLog
gdb/parse.c
gdb/parser-defs.h

index e90fbc0adfd76ce6ec6fbdce529f2c759f7da2f3..63d7441c2d5baa5673508f8cd79aa89d9c422317 100644 (file)
@@ -1,3 +1,8 @@
+2017-03-14  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * parse.c (length_of_subexp): Make static.
+       * parser-defs.h (length_of_subexp): Remove.
+
 2017-03-14  Andreas Arnez  <arnez@linux.vnet.ibm.com>
 
        * linux-nat.c (linux_proc_xfer_partial): Handle write operations
index 9f89b1e9e7f45f7972ead9f9bd5c1d551483bc4d..e6f6805bfa10fbe2dd2371c80ace86818cb3ef4e 100644 (file)
@@ -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;
index 85da6a44678e326e985956dbc27cef178aaf3147..23757d97becc51059476968efd0c4c7795116e83 100644 (file)
@@ -246,8 +246,6 @@ extern void type_stack_cleanup (void *arg);
 
 extern void push_typelist (VEC (type_ptr) *typelist);
 
-extern int length_of_subexp (struct expression *, int);
-
 extern int dump_subexp (struct expression *, struct ui_file *, int);
 
 extern int dump_subexp_body_standard (struct expression *,