diff options
author | Paul Gilbert | 2019-06-26 19:37:00 -0700 |
---|---|---|
committer | Paul Gilbert | 2019-07-06 15:27:07 -0700 |
commit | 2de068a98aaeb8a1e9e8f2e719b5ff6ebf858b44 (patch) | |
tree | 8b3d3f2a5839adfbac135682de9966913463ff9f /engines/glk/alan3/inter.cpp | |
parent | 305330bda7e755f141805a4e0e45f74820e980e1 (diff) | |
download | scummvm-rg350-2de068a98aaeb8a1e9e8f2e719b5ff6ebf858b44.tar.gz scummvm-rg350-2de068a98aaeb8a1e9e8f2e719b5ff6ebf858b44.tar.bz2 scummvm-rg350-2de068a98aaeb8a1e9e8f2e719b5ff6ebf858b44.zip |
GLK: ALAN3: Further warning fixes
Diffstat (limited to 'engines/glk/alan3/inter.cpp')
-rw-r--r-- | engines/glk/alan3/inter.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/engines/glk/alan3/inter.cpp b/engines/glk/alan3/inter.cpp index e4e98fd81c..457f75dc71 100644 --- a/engines/glk/alan3/inter.cpp +++ b/engines/glk/alan3/inter.cpp @@ -71,7 +71,7 @@ void setInterpreterStack(Stack theStack) /*----------------------------------------------------------------------*/ -static void traceInstruction(char *str, ...) { +static void traceInstruction(const char *str, ...) { va_list args; if (traceInstructionOption) { @@ -236,7 +236,7 @@ static void depexec(Aword v) { int lev = 1; Aword i; - char *instructionString = "DEPELSE"; + const char *instructionString = "DEPELSE"; if (!v) { /* The expression was not true, skip to next CASE on the same @@ -306,13 +306,13 @@ static void depcase(void) /*----------------------------------------------------------------------*/ -static char *booleanValue(Abool value) { +static const char *booleanValue(Abool value) { if (value) return " TRUE"; else return " FALSE"; } /*----------------------------------------------------------------------*/ -static char *stringValue(Aptr address) { +static const char *stringValue(Aptr address) { static char string[1000]; sprintf(string, "0x%lx (\"%s\")\t\t", (unsigned long) address, (char *)fromAptr(address)); @@ -320,7 +320,7 @@ static char *stringValue(Aptr address) { } /*----------------------------------------------------------------------*/ -static char *pointerValue(Aptr address) { +static const char *pointerValue(Aptr address) { static char string[100]; sprintf(string, "@%6lx",(unsigned long) address); @@ -365,7 +365,7 @@ static void traceInstanceTopValue() { } /*----------------------------------------------------------------------*/ -static char *transitivityFlag(ATrans value) { +static const char *transitivityFlag(ATrans value) { switch (value) { case TRANSITIVE: return "Transitive"; @@ -379,7 +379,7 @@ static char *transitivityFlag(ATrans value) { } /*----------------------------------------------------------------------*/ -static char *printForm(SayForm form) { +static const char *printForm(SayForm form) { switch (form) { case SAY_SIMPLE: return "-"; case SAY_INDEFINITE: return "An"; |