* 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.
+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.
+
2010-06-04 Doug Evans <dje@google.com>
Add support for enabling/disabling individual pretty-printers.
OP_DEFN (OP_DISCRETE_RANGE, 1, 2, 0)
static void
-ada_operator_length (struct expression *exp, int pc, int *oplenp, int *argsp)
+ada_operator_length (const struct expression *exp, int pc, int *oplenp,
+ int *argsp)
{
switch (exp->elts[pc - 1].opcode)
{
operator takes. */
void
-operator_length (struct expression *expr, int endpos, int *oplenp, int *argsp)
+operator_length (const struct expression *expr, int endpos, int *oplenp,
+ int *argsp)
{
expr->language_defn->la_exp_desc->operator_length (expr, endpos,
oplenp, argsp);
/* Default value for operator_length in exp_descriptor vectors. */
void
-operator_length_standard (struct expression *expr, int endpos,
+operator_length_standard (const struct expression *expr, int endpos,
int *oplenp, int *argsp)
{
int oplen = 1;
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)
/* 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