aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorK. Richard Pixley <rich@cygnus>1991-08-06 07:20:27 +0000
committerK. Richard Pixley <rich@cygnus>1991-08-06 07:20:27 +0000
commit9ec1ce8ab53bfeb4c7119e056793fd695b14c83b (patch)
treedef31d48eaf42d8100775450e71c062685b8462f /include
parent3a668184f2e66695f2741a2b17bac6105378e1d2 (diff)
downloadgdb-9ec1ce8ab53bfeb4c7119e056793fd695b14c83b.zip
gdb-9ec1ce8ab53bfeb4c7119e056793fd695b14c83b.tar.gz
gdb-9ec1ce8ab53bfeb4c7119e056793fd695b14c83b.tar.bz2
Fixing CONST declarations.
Diffstat (limited to 'include')
-rwxr-xr-xinclude/a29k-opcode.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/include/a29k-opcode.h b/include/a29k-opcode.h
index c455462..da87dbd 100755
--- a/include/a29k-opcode.h
+++ b/include/a29k-opcode.h
@@ -63,7 +63,11 @@ struct a29k_opcode {
char *args;
};
-static const struct a29k_opcode a29k_opcodes[] =
+#ifndef CONST
+#define CONST
+#endif /* CONST */
+
+static CONST struct a29k_opcode a29k_opcodes[] =
{
{ "add", 0x14000000, "c,a,b" },
@@ -279,11 +283,14 @@ static const struct a29k_opcode a29k_opcodes[] =
if we've run off the end of the table. */
};
-const unsigned int num_opcodes = (((sizeof a29k_opcodes) / (sizeof a29k_opcodes[0])) - 1);
+CONST unsigned int num_opcodes = (((sizeof a29k_opcodes) / (sizeof a29k_opcodes[0])) - 1);
/*
* $Log$
- * Revision 1.3 1991/08/05 22:31:05 rich
+ * Revision 1.4 1991/08/06 07:20:27 rich
+ * Fixing CONST declarations.
+ *
+ * Revision 1.3 1991/08/05 22:31:05 rich
* *** empty log message ***
*
* Revision 1.2 1991/07/15 23:34:04 steve