summaryrefslogtreecommitdiff
path: root/gdb/parser-defs.h
diff options
context:
space:
mode:
authorsergiodj <sergiodj>2010-06-04 21:39:46 +0000
committersergiodj <sergiodj>2010-06-04 21:39:46 +0000
commitb0e06c2de17ef3720293e5d9f4c5ea3e2a936a7d (patch)
tree27115dd608073e103093c37fe9b587c33f72fb72 /gdb/parser-defs.h
parent641d6f210aa992b946e63763eb39e6cbc648ba23 (diff)
downloadgdb-b0e06c2de17ef3720293e5d9f4c5ea3e2a936a7d.tar.gz
2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
* ada-lang.c (ada_operator_length): Constify `struct expression'. * parse.c (operator_length): Likewise. (operator_length_standard): Likewise. * parser-defs.h (operator_length): Likewise. (operator_length_standard): Likewise. (struct exp_descriptor <operator_length>): Likewise.
Diffstat (limited to 'gdb/parser-defs.h')
-rw-r--r--gdb/parser-defs.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/parser-defs.h b/gdb/parser-defs.h
index 864f789e397..bb79ae13914 100644
--- a/gdb/parser-defs.h
+++ b/gdb/parser-defs.h
@@ -188,9 +188,10 @@ extern int dump_subexp (struct expression *, struct ui_file *, int);
extern int dump_subexp_body_standard (struct expression *,
struct ui_file *, int);
-extern void operator_length (struct expression *, int, int *, int *);
+extern void operator_length (const struct expression *, int, int *, int *);
-extern void operator_length_standard (struct expression *, int, int *, int *);
+extern void operator_length_standard (const struct expression *, int, int *,
+ int *);
extern int operator_check_standard (struct expression *exp, int pos,
int (*objfile_func)
@@ -273,7 +274,7 @@ struct exp_descriptor
/* Returns number of exp_elements needed to represent an operator and
the number of subexpressions it takes. */
- void (*operator_length) (struct expression*, int, int*, int *);
+ void (*operator_length) (const struct expression*, int, int*, int *);
/* Call TYPE_FUNC and OBJFILE_FUNC for any TYPE and OBJFILE found being
referenced by the single operator of EXP at position POS. Operator