]> granicus.if.org Git - nethack/commit
sp_lev.c update
authorPatR <rankin@nethack.org>
Wed, 2 Dec 2015 10:18:24 +0000 (02:18 -0800)
committerPatR <rankin@nethack.org>
Wed, 2 Dec 2015 10:18:24 +0000 (02:18 -0800)
commitdf415b4c35010dc812ec4e57f91d295cf7b7e451
treeb1e3d79e2a1adf971a391514ca8b0b82eb56d650
parentabf997994c69588d35ff019b7585857b27d2c994
sp_lev.c update

Shorten a function name in sp_lev.c that exceeded 31 characters.
That's a limit imposed by the VMS linker and the compiler complains
that it will be truncated.

Make all sp_lev.c functions which aren't listed in extern.h be static
and give all of them a declaration at the top of the file.  I reordered
the ones already declared there in the same order as they occur in the
source, so the diff is quite a bit bigger than the actual changes.
(Once the one with the long name became static, the length of its name
no longer mattered, but I've shortened it anyway.)

Indent a couple of #pragma directives.  Some pre-ANSI compiler didn't
like '#' in column 1 followed by something it didn't understand, even
when that occurred in a conditional block which was in the midst of
being excluded.  (util/*_comp.y recently reminded me of that.  files.c
should get a fix like this too.)
include/extern.h
src/sp_lev.c