static int lock(token_t verb, token_t obj)
/* Lock, unlock, no object given. Assume various things if present. */
{
- int k;
int spk = ACTSPK[verb];
if (obj == INTRANSITIVE) {
spk=28;
* unless verb is "say", which snarfs arbitrary second word.
*/
{
- int kk;
token_t spk=ACTSPK[verb];
if (part == unknown)
static long LNPOSN;
static char INLINE[LINESIZE+1];
static long OLDLOC;
-static long MAXDIE;
// Storage for what comes out of the database
long LINUSE;
static bool do_command(FILE *cmdin)
/* Get and execute a command */
{
- long KQ, VERB, KK, V1, V2;
+ long KQ, VERB, V1, V2;
long i, k, KMOD;
static long igo = 0;
static long obj = 0;
for (int i = 0; i < 5; ++i)
{
char advent = (packed >> i * 6) & 63;
- token[4 - i] = advent_to_ascii[advent];
+ token[4 - i] = advent_to_ascii[(int) advent];
}
// Ensure the last character is \0.
}
for (i=1; i<=LNLENG; i++) {
- INLINE[i]=advent_to_ascii[INLINE[i]];
+ INLINE[i]=advent_to_ascii[(int) INLINE[i]];
}
INLINE[LNLENG+1]=0;
printf("%s\n", INLINE+1);
},
{
.inventory = "Water in the bottle",
- .longs = (char* []) {
- },
+ .longs = NULL,
},
{
.inventory = "Oil in the bottle",
- .longs = (char* []) {
- },
+ .longs = NULL,
},
{
.inventory = "*mirror",