Skip to content
Snippets Groups Projects
Commit c9426940 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Oops, missed adding them here...

Rev: src/opcodes.c:1.169
parent 5ea1146e
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
|| This file is part of Pike. For copyright information see COPYRIGHT. || This file is part of Pike. For copyright information see COPYRIGHT.
|| Pike is distributed under GPL, LGPL and MPL. See the file COPYING || Pike is distributed under GPL, LGPL and MPL. See the file COPYING
|| for more information. || for more information.
|| $Id: opcodes.c,v 1.168 2007/01/10 17:15:30 grubba Exp $ || $Id: opcodes.c,v 1.169 2008/01/28 18:06:16 grubba Exp $
*/ */
#include "global.h" #include "global.h"
...@@ -284,6 +284,9 @@ const struct keyword instr_names[]= ...@@ -284,6 +284,9 @@ const struct keyword instr_names[]=
{ "align", F_ALIGN, I_HASARG NULLADDR }, { "align", F_ALIGN, I_HASARG NULLADDR },
{ "nop", F_NOP,0 NULLADDR }, { "nop", F_NOP,0 NULLADDR },
{ "entry", F_ENTRY,0 NULLADDR }, { "entry", F_ENTRY,0 NULLADDR },
{ "filename", F_FILENAME, 0 NULLADDR },
{ "line", F_LINE, 0 NULLADDR },
{ "get/set", F_GET_SET, 0 NULLADDR },
{ "function start", F_START_FUNCTION,0 NULLADDR }, { "function start", F_START_FUNCTION,0 NULLADDR },
{ "notreached!", F_NOTREACHED, 0 NULLADDR }, { "notreached!", F_NOTREACHED, 0 NULLADDR },
}; };
...@@ -299,7 +302,7 @@ const char *low_get_f_name(int n, struct program *p) ...@@ -299,7 +302,7 @@ const char *low_get_f_name(int n, struct program *p)
if (n<F_MAX_OPCODE) if (n<F_MAX_OPCODE)
{ {
if ((n >= 0) && instrs[n-F_OFFSET].name) if ((n >= F_OFFSET) && instrs[n-F_OFFSET].name)
return instrs[n-F_OFFSET].name; return instrs[n-F_OFFSET].name;
sprintf(buf, "<OTHER %d>", n); sprintf(buf, "<OTHER %d>", n);
return buf; return buf;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment