elliott@bunker.UUCP (Elliott Kleinrock) (07/19/90)
I get this error when I try to compile NetHack on a Altos running System V:
cc -O -I../include -c invent.c
"invent.c", line 493: compiler error: eanode: bad argument
*** Error code 1
Stop.
This is line 493:
while(ilet = bp[++foo2] = bp[++foo]){
This is the surrounding code:
bp[foo] = 0;
if(foo == 0 && bp > buf && bp[-1] == ' ') *--bp = 0;
Strcpy(lets, bp); /* necessary since we destroy buf */
if(foo > 5) { /* compactify string */
foo = foo2 = 1;
ilet2 = bp[0];
ilet1 = bp[1];
while(ilet = bp[++foo2] = bp[++foo]){
if(ilet == ilet1+1){
if(ilet1 == ilet2+1)
bp[foo2 - 1] = ilet1 = '-';
else if(ilet2 == '-') {
bp[--foo2] = ++ilet1;
continue;
}
}
ilet2 = ilet1;
ilet1 = ilet;
}
}
I would appriciate it if some one could tell me how to fix this.
--
- Elliott
elliott@bunker.uucp
...!{ philabs | yale | oliveb | decvax | iscuva }!bunker!elliott