aboutsummaryrefslogtreecommitdiff
path: root/gdb/expprint.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1991-04-26 22:57:07 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1991-04-26 22:57:07 +0000
commit81919cc85b6918763a63b3e74a71e0c1aeabbb12 (patch)
tree74e39e89fb0432f1d09b0d01d1a65c610b3fc01b /gdb/expprint.c
parent2d3b42955971bb509dd6ee7287704e4e2db57080 (diff)
downloadgdb-81919cc85b6918763a63b3e74a71e0c1aeabbb12.zip
gdb-81919cc85b6918763a63b3e74a71e0c1aeabbb12.tar.gz
gdb-81919cc85b6918763a63b3e74a71e0c1aeabbb12.tar.bz2
* vax-opcode.h, expread.y, expprint.c, cplus-dem.c: Declare some
things "const".
Diffstat (limited to 'gdb/expprint.c')
-rw-r--r--gdb/expprint.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/expprint.c b/gdb/expprint.c
index 9e1e9d2..e001378 100644
--- a/gdb/expprint.c
+++ b/gdb/expprint.c
@@ -50,7 +50,7 @@ struct op_print
int right_assoc;
};
-static struct op_print op_print_tab[] =
+const static struct op_print op_print_tab[] =
{
{",", BINOP_COMMA, PREC_COMMA, 0},
{"=", BINOP_ASSIGN, PREC_ASSIGN, 1},
@@ -275,6 +275,7 @@ print_subexp (exp, pos, stream, prec)
op_str = op_print_tab[tem].string;
break;
}
+ break;
case OP_THIS:
++(*pos);