diff options
Diffstat (limited to 'engines/glk/alan3/utils.cpp')
-rw-r--r-- | engines/glk/alan3/utils.cpp | 55 |
1 files changed, 27 insertions, 28 deletions
diff --git a/engines/glk/alan3/utils.cpp b/engines/glk/alan3/utils.cpp index 4b01b46d68..402cbe6a21 100644 --- a/engines/glk/alan3/utils.cpp +++ b/engines/glk/alan3/utils.cpp @@ -43,48 +43,47 @@ namespace Alan3 { */ void terminate(int code) { - newline(); + newline(); - terminateStateStack(); + terminateStateStack(); - stopTranscript(); + stopTranscript(); - if (memory) - deallocate(memory); + if (memory) + deallocate(memory); - g_vm->glk_exit(); + g_vm->glk_exit(); } /*======================================================================*/ void printVersion(int buildNumber) { - printf("Arun - Adventure Language Interpreter version %s", alan.version.string); - if (buildNumber != 0) printf("-%d", buildNumber); - printf(" (%s %s)", alan.date, alan.time); + printf("Arun - Adventure Language Interpreter version %s", alan.version.string); + if (buildNumber != 0) printf("-%d", buildNumber); + printf(" (%s %s)", alan.date, alan.time); } /*======================================================================*/ -void usage(const char *programName) -{ +void usage(const char *programName) { #if (BUILD+0) != 0 - printVersion(BUILD); + printVersion(BUILD); #else - printVersion(0); + printVersion(0); #endif - printf("\n\nUsage:\n\n"); - printf(" %s [<switches>] <adventure>\n\n", programName); - printf("where the possible optional switches are:\n"); - - g_vm->glk_set_style(style_Preformatted); - printf(" -v verbose mode\n"); - printf(" -l log transcript to a file\n"); - printf(" -c log player commands to a file\n"); - printf(" -n no Status Line\n"); - printf(" -d enter debug mode\n"); - printf(" -t[<n>] trace game execution, higher <n> gives more trace\n"); - printf(" -i ignore version and checksum errors\n"); - printf(" -r make regression test easier (don't timestamp, page break, randomize...)\n"); - g_vm->glk_set_style(style_Normal); + printf("\n\nUsage:\n\n"); + printf(" %s [<switches>] <adventure>\n\n", programName); + printf("where the possible optional switches are:\n"); + + g_vm->glk_set_style(style_Preformatted); + printf(" -v verbose mode\n"); + printf(" -l log transcript to a file\n"); + printf(" -c log player commands to a file\n"); + printf(" -n no Status Line\n"); + printf(" -d enter debug mode\n"); + printf(" -t[<n>] trace game execution, higher <n> gives more trace\n"); + printf(" -i ignore version and checksum errors\n"); + printf(" -r make regression test easier (don't timestamp, page break, randomize...)\n"); + g_vm->glk_set_style(style_Normal); } @@ -93,7 +92,7 @@ void usage(const char *programName) #endif /*======================================================================*/ bool match(const char *pattern, char *input) { - return fnmatch(pattern, input, FNM_CASEFOLD) == 0; + return fnmatch(pattern, input, FNM_CASEFOLD) == 0; } } // End of namespace Alan3 |