* vax-opcode.h, expread.y, expprint.c, cplus-dem.c: Declare some
authorJim Kingdon <jkingdon@engr.sgi.com>
Fri, 26 Apr 1991 22:57:07 +0000 (22:57 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Fri, 26 Apr 1991 22:57:07 +0000 (22:57 +0000)
things "const".

gdb/expprint.c
gdb/vax-opcode.h

index 9e1e9d2..e001378 100644 (file)
@@ -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);
index 18a2ffb..e65199d 100755 (executable)
@@ -39,7 +39,7 @@ struct vot                    /* vax opcode text */
 #define vot_detail detail
 #define vot_name name
 
-static struct vot
+const static struct vot
 votstrs[] =
 {
 {    "halt",   {"",                    0x00    } },