diff options
Diffstat (limited to 'engines/glk/alan3/syserr.cpp')
-rw-r--r-- | engines/glk/alan3/syserr.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/engines/glk/alan3/syserr.cpp b/engines/glk/alan3/syserr.cpp index 2fceba6059..9ebd397380 100644 --- a/engines/glk/alan3/syserr.cpp +++ b/engines/glk/alan3/syserr.cpp @@ -30,10 +30,10 @@ namespace Glk { namespace Alan3 { -static void (*handler)(char *) = NULL; +static void (*handler)(const char *); /*----------------------------------------------------------------------*/ -static void runtimeError(char *errorClassification, char *errorDescription, char *blurb) { +static void runtimeError(const char *errorClassification, const char *errorDescription, const char *blurb) { output("$n$nAs you enter the twilight zone of Adventures, you stumble \ and fall to your knees. In front of you, you can vaguely see the outlines \ of an Adventure that never was.$n$n"); @@ -54,7 +54,7 @@ of an Adventure that never was.$n$n"); /*======================================================================*/ -void setSyserrHandler(void (*f)(char *)) +void setSyserrHandler(void (*f)(const char *)) { handler = f; } @@ -62,11 +62,11 @@ void setSyserrHandler(void (*f)(char *)) /*======================================================================*/ // TODO Make syserr() use ... as printf() -void syserr(char *description) +void syserr(const char *description) { lin = 0; if (handler == NULL) { - char *blurb = "<If you are the creator of this piece of Interactive Fiction, \ + const char *blurb = "<If you are the creator of this piece of Interactive Fiction, \ please help debug this Alan system error. Collect *all* the sources, and, if possible, an \ exact transcript of the commands that led to this error, in a zip-file and send \ it to support@alanif.se. Thank you!>"; @@ -77,10 +77,10 @@ it to support@alanif.se. Thank you!>"; /*======================================================================*/ -void apperr(char *description) +void apperr(const char *description) { if (handler == NULL) { - char *blurb = "<If you are playing this piece of Interactive Fiction, \ + const char *blurb = "<If you are playing this piece of Interactive Fiction, \ please help the author to debug this programming error. Send an exact \ transcript of the commands that led to this error to the author. Thank you! \ If you *are* the author, then you have to figure this out before releasing the game.>"; @@ -90,10 +90,10 @@ If you *are* the author, then you have to figure this out before releasing the g } /*======================================================================*/ -void playererr(char *description) +void playererr(const char *description) { if (handler == NULL) { - char *blurb = "<You have probably done something that is not exactly right.>"; + const char *blurb = "<You have probably done something that is not exactly right.>"; runtimeError("PLAYER ERROR: ", description, blurb); } else handler(description); |