diff options
author | dreammaster | 2019-06-22 03:43:17 +0100 |
---|---|---|
committer | Paul Gilbert | 2019-06-22 14:40:50 -0700 |
commit | 2450df501c152249fe1002a7dee70642563d40a3 (patch) | |
tree | 226adf311a755ca71d2c18317199a74b2c130864 /engines/glk/alan2/rules.cpp | |
parent | a3fa9d12a94494f86134f56df6c064d7e48e8580 (diff) | |
download | scummvm-rg350-2450df501c152249fe1002a7dee70642563d40a3.tar.gz scummvm-rg350-2450df501c152249fe1002a7dee70642563d40a3.tar.bz2 scummvm-rg350-2450df501c152249fe1002a7dee70642563d40a3.zip |
GLK: ALAN2: astyle formatting
Diffstat (limited to 'engines/glk/alan2/rules.cpp')
-rw-r--r-- | engines/glk/alan2/rules.cpp | 68 |
1 files changed, 34 insertions, 34 deletions
diff --git a/engines/glk/alan2/rules.cpp b/engines/glk/alan2/rules.cpp index 323f6e72a4..516b0d22fb 100644 --- a/engines/glk/alan2/rules.cpp +++ b/engines/glk/alan2/rules.cpp @@ -33,41 +33,41 @@ namespace Glk { namespace Alan2 { void rules() { - Boolean change = TRUE; - int i; - - for (i = 1; !endOfTable(&ruls[i-1]); i++) - ruls[i-1].run = FALSE; - - while (change) { - change = FALSE; - for (i = 1; !endOfTable(&ruls[i-1]); i++) - if (!ruls[i-1].run) { - if (trcflg) { - printf("\n<RULE %d (at ", i); - debugsay(cur.loc); - if (!stpflg) - printf("), Evaluating"); - else - printf("), Evaluating:>\n"); + Boolean change = TRUE; + int i; + + for (i = 1; !endOfTable(&ruls[i - 1]); i++) + ruls[i - 1].run = FALSE; + + while (change) { + change = FALSE; + for (i = 1; !endOfTable(&ruls[i - 1]); i++) + if (!ruls[i - 1].run) { + if (trcflg) { + printf("\n<RULE %d (at ", i); + debugsay(cur.loc); + if (!stpflg) + printf("), Evaluating"); + else + printf("), Evaluating:>\n"); + } + interpret(ruls[i - 1].exp); + if (pop()) { + change = TRUE; + ruls[i - 1].run = TRUE; + if (trcflg) + if (!stpflg) + printf(", Executing:>\n"); + else { + printf("\nRULE %d (at ", i); + debugsay(cur.loc); + printf("), Executing:>\n"); + } + interpret(ruls[i - 1].stms); + } else if (trcflg && !stpflg) + printf(":>\n"); + } } - interpret(ruls[i-1].exp); - if (pop()) { - change = TRUE; - ruls[i-1].run = TRUE; - if (trcflg) - if (!stpflg) - printf(", Executing:>\n"); - else { - printf("\nRULE %d (at ", i); - debugsay(cur.loc); - printf("), Executing:>\n"); - } - interpret(ruls[i-1].stms); - } else if (trcflg && !stpflg) - printf(":>\n"); - } - } } } // End of namespace Alan2 |