--- hatari/src/uae-cpu/build68k.c 2019/04/01 07:10:42 1.1.1.2 +++ hatari/src/uae-cpu/build68k.c 2019/04/01 07:13:48 1.1.1.5 @@ -10,16 +10,19 @@ * This file is distributed under the GNU Public License, version 2 or at * your option any later version. Read the file gpl.txt for details. */ -static char rcsid[] = "Hatari $Id: build68k.c,v 1.1.1.2 2019/04/01 07:10:42 root Exp $"; +const char Build68k_rcsid[] = "Hatari $Id: build68k.c,v 1.1.1.5 2019/04/01 07:13:48 root Exp $"; #include #include +#include #include "readcpu.h" + static FILE *tablef; static int nextch = 0; + static void getnextch(void) { do { @@ -62,7 +65,7 @@ int main(int argc, char **argv) /*printf ("#include \"sysconfig.h\"\n");*/ printf ("#include \"sysdeps.h\"\n"); printf ("#include \"readcpu.h\"\n"); - printf ("struct instr_def defs68k[] = {\n"); + printf ("const struct instr_def defs68k[] = {\n"); #if 0 tablef = fopen("table68k","r"); if (tablef == NULL) { @@ -215,12 +218,12 @@ int main(int argc, char **argv) char *opstrp = opcstr, *osendp; int slen = 0; - while (isspace(*opstrp)) + while (isspace((unsigned)(*opstrp))) opstrp++; osendp = opstrp; while (*osendp) { - if (!isspace (*osendp)) + if (!isspace ((unsigned)(*osendp))) slen = osendp - opstrp + 1; osendp++; }