diff options
author | Paul Gilbert | 2019-06-22 09:02:06 -0700 |
---|---|---|
committer | Paul Gilbert | 2019-06-22 14:40:50 -0700 |
commit | 1249c335392d7cc2d5492a5bc8718b9a034fbb11 (patch) | |
tree | bd1475e7304db33f04c3914c8e49c2bd299f6faa /engines/glk/alan2/params.cpp | |
parent | 2cf0320569c80c8e389e44d1b0463792ddf8e7cd (diff) | |
download | scummvm-rg350-1249c335392d7cc2d5492a5bc8718b9a034fbb11.tar.gz scummvm-rg350-1249c335392d7cc2d5492a5bc8718b9a034fbb11.tar.bz2 scummvm-rg350-1249c335392d7cc2d5492a5bc8718b9a034fbb11.zip |
GLK: ALAN2: Change all EOF to EOD that is case to uint
Diffstat (limited to 'engines/glk/alan2/params.cpp')
-rw-r--r-- | engines/glk/alan2/params.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/engines/glk/alan2/params.cpp b/engines/glk/alan2/params.cpp index 8273518522..1d5da8ece8 100644 --- a/engines/glk/alan2/params.cpp +++ b/engines/glk/alan2/params.cpp @@ -30,16 +30,16 @@ namespace Alan2 { void compact(ParamElem a[]) { int i, j; - for (i = 0, j = 0; a[j].code != (Aword)EOF; j++) + for (i = 0, j = 0; a[j].code != (Aword)EOD; j++) if (a[j].code != 0) a[i++] = a[j]; - a[i].code = (Aword)EOF; + a[i].code = (Aword)EOD; } int lstlen(ParamElem a[]) { int i = 0; - while (a[i].code != (Aword)EOF) + while (a[i].code != (Aword)EOD) i++; return (i); } @@ -47,22 +47,22 @@ int lstlen(ParamElem a[]) { Boolean inlst(ParamElem l[], Aword e) { int i; - for (i = 0; l[i].code != (Aword)EOF && l[i].code != e; i++); + for (i = 0; l[i].code != (Aword)EOD && l[i].code != e; i++); return (l[i].code == e); } void lstcpy(ParamElem a[], ParamElem b[]) { int i; - for (i = 0; b[i].code != (Aword)EOF; i++) + for (i = 0; b[i].code != (Aword)EOD; i++) a[i] = b[i]; - a[i].code = (Aword)EOF; + a[i].code = (Aword)EOD; } void sublst(ParamElem a[], ParamElem b[]) { int i; - for (i = 0; a[i].code != (Aword)EOF; i++) + for (i = 0; a[i].code != (Aword)EOD; i++) if (inlst(b, a[i].code)) a[i].code = 0; /* Mark empty */ compact(a); @@ -71,31 +71,31 @@ void sublst(ParamElem a[], ParamElem b[]) { 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++) + for (last = 0; a[last].code != (Aword)EOD; last++); /* Find end of list */ + for (i = 0; b[i].code != (Aword)EOD; i++) if (!inlst(a, b[i].code)) { a[last++] = b[i]; - a[last].code = (Aword)EOF; + a[last].code = (Aword)EOD; } } void isect(ParamElem a[], ParamElem b[]) { int i, last = 0; - for (i = 0; a[i].code != (Aword)EOF; i++) + for (i = 0; a[i].code != (Aword)EOD; i++) if (inlst(b, a[i].code)) a[last++] = a[i]; - a[last].code = (Aword)EOF; + a[last].code = (Aword)EOD; } void cpyrefs(ParamElem p[], Aword r[]) { int i; - for (i = 0; r[i] != (Aword)EOF; i++) { + for (i = 0; r[i] != (Aword)EOD; i++) { p[i].code = r[i]; - p[i].firstWord = (Aword)EOF; + p[i].firstWord = (Aword)EOD; } - p[i].code = (Aword)EOF; + p[i].code = (Aword)EOD; } } // End of namespace Alan2 |