/* opc2c.c --- generate C opcode decoder code from from .opc file
- Copyright (C) 2005-2015 Free Software Foundation, Inc.
+ Copyright (C) 2005-2018 Free Software Foundation, Inc.
Contributed by Red Hat, Inc.
This file is part of the GNU opcode library.
unsigned char cur_bits[MAX_BYTES + 1];
-char * orig_filename;
+const char * orig_filename;
FILE * sim_log = NULL;
#define lprintf if (sim_log) fprintf
printf ("#line %d \"%s\"\n", op->lineno + 1, orig_filename);
for (i = 0; i < op->nlines; i++)
- printf ("%*s%s", level, "", op->lines[i]);
+ if (op->lines[i][0] == '\n')
+ printf ("%s", op->lines[i]);
+ else
+ printf ("%*s%s", level, "", op->lines[i]);
if (op->comment)
printf ("%*s}\n", level, "");