Re: Inform: bug in a box? (patch)


28 Nov 1995 16:02:45 -0800

Oops. Sorry about that. Ok, like I said about the last one: your mileage may
vary. I'm a little more confident about this one, but I still don't know if
it messes with anything outside of the box routine.

In inform.c, at the top:
#include <ctype.h>

at around line 815: (see previous patch for context)

/* Check for character literals. @@?? should count as 1 character. */
for (k=0;k<=strlen(b);k++) {
if (b[k]=='@') {
k++;
if (b[k]=='@') {
i--; i--; k++;
if ( isdigit(b[k+1]) ) {
i--; k++;
if ( isdigit(b[k+1]) ) {
i--; k++;
}
}
}
}
}
/* End kludgy check for literals. */

I still think this is awkward, and if it does anything nasty I disavow
authorship. ;)

Perhaps I should have paid more attention in that C class. *shrug*

-Josh