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.
This commit is contained in:
parent
c799a79d66
commit
cf81cf6081
3 changed files with 6 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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 *,
|
||||
|
|
Loading…
Add table
Reference in a new issue