#include "misc.h"
#include "funcs.h"
-#define TRUE (0==0)
-#define FALSE (0!=0)
-
/* hack to ignore GCC Unused Result */
#define IGNORE(r) do{if(r){}}while(0)
goto L32;
L40: if(BLANK)TYPE0();
- BLANK=FALSE;
+ BLANK=false;
TYPE();
K=L+1;
if(LINES[K] >= 0) goto L10;
L10: if(BLKLIN)TYPE0();
- MAPLIN(FALSE);
- WORD1=GETTXT(TRUE,TRUE,TRUE,0);
+ MAPLIN(false);
+ WORD1=GETTXT(true,true,true,0);
if(BLKLIN && WORD1 < 0) goto L10;
- WORD1X=GETTXT(FALSE,TRUE,TRUE,0);
-L12: JUNK=GETTXT(FALSE,TRUE,TRUE,0);
+ WORD1X=GETTXT(false,true,true,0);
+L12: JUNK=GETTXT(false,true,true,0);
if(JUNK > 0) goto L12;
- WORD2=GETTXT(TRUE,TRUE,TRUE,0);
- WORD2X=GETTXT(FALSE,TRUE,TRUE,0);
-L22: JUNK=GETTXT(FALSE,TRUE,TRUE,0);
+ WORD2=GETTXT(true,true,true,0);
+ WORD2X=GETTXT(false,true,true,0);
+L22: JUNK=GETTXT(false,true,true,0);
if(JUNK > 0) goto L22;
- if(GETTXT(TRUE,TRUE,TRUE,0) <= 0)return;
+ if(GETTXT(true,true,true,0) <= 0)return;
RSPEAK(53);
goto L10;
}
if(REPLY == MAKEWD(1415) || REPLY == MAKEWD(14)) goto L20;
RSPEAK(185);
goto L1;
-L10: YES=TRUE;
+L10: YES=true;
RSPEAK(Y);
return(YES);
-L20: YES=FALSE;
+L20: YES=false;
RSPEAK(Z);
return(YES);
}
L13: CKSUM=BUF[0];
return;
-L15: SAVEIO(1,TRUE,BUF);
+L15: SAVEIO(1,true,BUF);
HASH=MOD(1234L*5678L-BUF[0],1048576L);
goto L13;
N=MOD(N,250)+1;
if(STATE > 0) goto L32;
N--; BUF[N]=CKSUM; N++;
- SAVEIO(1,FALSE,BUF);
+ SAVEIO(1,false,BUF);
L32: N--; WORD=BUF[N]-CKSUM; N++;
SAVEIO(-1,STATE > 0,BUF);
STATE=0;
printf("Fatal error %ld. See source code for interpretation.\n",
NUM);
- exit(FALSE);
+ exit(0);
}
goto L20;
L15: if(!OPENED){
-#ifdef AMIGA
- OPENED=fopen("ram:adventure.text","r" /* NOT binary */);
- if(!OPENED)
-#endif
OPENED=fopen("adventure.text","r" /* NOT binary */);
- if(!OPENED){printf("Can't read adventure.text!\n"); exit(FALSE);}
+ if(!OPENED){printf("Can't read adventure.text!\n"); exit(0);}
}
IGNORE(fgets(INLINE+1,100,OPENED));