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/params.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/params.cpp')
-rw-r--r-- | engines/glk/alan2/params.cpp | 82 |
1 files changed, 41 insertions, 41 deletions
diff --git a/engines/glk/alan2/params.cpp b/engines/glk/alan2/params.cpp index e5414bdf32..8273518522 100644 --- a/engines/glk/alan2/params.cpp +++ b/engines/glk/alan2/params.cpp @@ -28,74 +28,74 @@ namespace Glk { namespace Alan2 { void compact(ParamElem a[]) { - int i, j; - - for (i = 0, j = 0; a[j].code != (Aword)EOF; j++) - if (a[j].code != 0) - a[i++] = a[j]; - a[i].code = (Aword)EOF; + int i, j; + + for (i = 0, j = 0; a[j].code != (Aword)EOF; j++) + if (a[j].code != 0) + a[i++] = a[j]; + a[i].code = (Aword)EOF; } int lstlen(ParamElem a[]) { - int i = 0; + int i = 0; - while (a[i].code != (Aword)EOF) - i++; - return (i); + while (a[i].code != (Aword)EOF) + i++; + return (i); } Boolean inlst(ParamElem l[], Aword e) { - int i; + int i; - for (i = 0; l[i].code != (Aword)EOF && l[i].code != e; i++); - return (l[i].code == e); + for (i = 0; l[i].code != (Aword)EOF && l[i].code != e; i++); + return (l[i].code == e); } void lstcpy(ParamElem a[], ParamElem b[]) { - int i; + int i; - for (i = 0; b[i].code != (Aword)EOF; i++) - a[i] = b[i]; - a[i].code = (Aword)EOF; + for (i = 0; b[i].code != (Aword)EOF; i++) + a[i] = b[i]; + a[i].code = (Aword)EOF; } void sublst(ParamElem a[], ParamElem b[]) { - int i; + int i; - for (i = 0; a[i].code != (Aword)EOF; i++) - if (inlst(b, a[i].code)) - a[i].code = 0; /* Mark empty */ - compact(a); + for (i = 0; a[i].code != (Aword)EOF; i++) + if (inlst(b, a[i].code)) + a[i].code = 0; /* Mark empty */ + compact(a); } void mrglst(ParamElem a[], ParamElem b[]) { - int i,last; - - for (last = 0; a[last].code != (Aword)EOF; last++); /* Find end of list */ - for (i = 0; b[i].code != (Aword)EOF; i++) - if (!inlst(a, b[i].code)) { - a[last++] = b[i]; - a[last].code = (Aword)EOF; - } + int i, last; + + for (last = 0; a[last].code != (Aword)EOF; last++); /* Find end of list */ + for (i = 0; b[i].code != (Aword)EOF; i++) + if (!inlst(a, b[i].code)) { + a[last++] = b[i]; + a[last].code = (Aword)EOF; + } } void isect(ParamElem a[], ParamElem b[]) { - int i, last = 0; + int i, last = 0; - for (i = 0; a[i].code != (Aword)EOF; i++) - if (inlst(b, a[i].code)) - a[last++] = a[i]; - a[last].code = (Aword)EOF; + for (i = 0; a[i].code != (Aword)EOF; i++) + if (inlst(b, a[i].code)) + a[last++] = a[i]; + a[last].code = (Aword)EOF; } void cpyrefs(ParamElem p[], Aword r[]) { - int i; + int i; - for (i = 0; r[i] != (Aword)EOF; i++) { - p[i].code = r[i]; - p[i].firstWord = (Aword)EOF; - } - p[i].code = (Aword)EOF; + for (i = 0; r[i] != (Aword)EOF; i++) { + p[i].code = r[i]; + p[i].firstWord = (Aword)EOF; + } + p[i].code = (Aword)EOF; } } // End of namespace Alan2 |