[comp.sources.bugs] Nethack 1.4 problems

ghoti@killer.UUCP (Alan Perry) (08/22/87)

Hi,

I just recently applied the 1.4 fixes to all the files mentioned, but somehow
the zap.c file got completely destroyed (errors flying out of it like the
bats out of Carlsbad Caverns).  I went back to the old version, but could
someone either post or email a set of diffs to fix the file or tell me what
to do to the fix to fix it....

Thanks in advance,
   - Alan

daniel@csd4.milw.wisc.edu (Daniel D Arndt) (08/25/87)

In article <1376@killer.UUCP> ghoti@killer.UUCP (Alan Perry) writes:
>..I just recently applied the 1.4 fixes to all the files mentioned, but somehow
>the zap.c file got completely destroyed (errors flying out of it like the
>bats out of Carlsbad Caverns).  I went back to the old version, but could
>someone either post or email a set of diffs to fix the file or tell me what
>to do to the fix to fix it....
All those errors are caused by ONE typo.  There is a newline in a string
that is throwing the compiler off("\").  It should be escaped("\\").
Here is the line:

        (dx == dy) ? `\` : (dx && dy) ? `/` : dx ? HWALL_SYM : VWALL_SYM
Make this change:     ^
        (dx == dy) ? `\\` : (dx && dy) ? `/` : dx ? HWALL_SYM : VWALL_SYM
		      ^^

That will get rid of all those error messages.
BTW, did you look at the first error you got?  It should have been something
like "newline in string"  Very often, many error messages are caused by one 
error(usually the first or second).
 
daniel@csd4.milw.wisc.edu

ghoti@killer.UUCP (Alan Perry) (08/27/87)

Thanks for the help on the zap.c fix.  I recompiled without a hitch!  I should
have been able to figure out the problem, but alas, I missed it...

Ah, well, dems de breaks...

- Ghoti (that's pronounced "fish"
            GH as in lauGH
             O as in wOmen
        and TI as in moTIon)