Subject: CVS commit: basesrc
To: None <source-changes@netbsd.org>
From: Joseph Myers <jsm@netbsd.org>
List: source-changes
Date: 03/25/2001 23:44:05
Module Name:	basesrc
Committed By:	jsm
Date:		Sun Mar 25 20:44:04 UTC 2001

Modified Files:
	basesrc/games/hack: date.h def.func_tab.h def.monst.h def.objclass.h
	    def.objects.h def.permonst.h extern.h hack.Decl.c hack.apply.c
	    hack.bones.c hack.c hack.cmd.c hack.do.c hack.do_name.c hack.dog.c
	    hack.eat.c hack.end.c hack.engrave.c hack.fight.c hack.h
	    hack.invent.c hack.lev.c hack.main.c hack.makemon.c hack.mhitu.c
	    hack.mklev.c hack.mkmaze.c hack.mkobj.c hack.mkshop.c hack.mon.c
	    hack.monst.c hack.o_init.c hack.objnam.c hack.pager.c hack.potion.c
	    hack.pri.c hack.read.c hack.rip.c hack.save.c hack.shk.c
	    hack.shknam.c hack.timeout.c hack.topl.c hack.trap.c hack.tty.c
	    hack.u_init.c hack.unix.c hack.vault.c hack.wield.c hack.wizard.c
	    hack.zap.c makedefs.c

Log Message:
Make mostly gcc -W clean, and other cleanup:
Use const.
Add __noreturn__ attributes.
Add a __format__ attribute.
Add __unused__ attributes.
Use symbolic constants for open() and lseek().
Declare types of all function parameters; convert some function
definitions to ISO C form.
Ensure standard file descriptors are open on startup.
Check for errors writing output of makedefs.
Avoid duplicate definitions of variables.


To generate a diff of this commit:
cvs rdiff -r1.3 -r1.4 basesrc/games/hack/date.h basesrc/games/hack/extern.h
cvs rdiff -r1.4 -r1.5 basesrc/games/hack/def.func_tab.h \
    basesrc/games/hack/def.objclass.h basesrc/games/hack/def.objects.h \
    basesrc/games/hack/def.permonst.h basesrc/games/hack/hack.Decl.c \
    basesrc/games/hack/hack.bones.c basesrc/games/hack/hack.c \
    basesrc/games/hack/hack.do.c basesrc/games/hack/hack.do_name.c \
    basesrc/games/hack/hack.dog.c basesrc/games/hack/hack.eat.c \
    basesrc/games/hack/hack.end.c basesrc/games/hack/hack.engrave.c \
    basesrc/games/hack/hack.fight.c basesrc/games/hack/hack.lev.c \
    basesrc/games/hack/hack.makemon.c basesrc/games/hack/hack.mhitu.c \
    basesrc/games/hack/hack.mklev.c basesrc/games/hack/hack.mkmaze.c \
    basesrc/games/hack/hack.mkobj.c basesrc/games/hack/hack.mon.c \
    basesrc/games/hack/hack.monst.c basesrc/games/hack/hack.objnam.c \
    basesrc/games/hack/hack.potion.c basesrc/games/hack/hack.shk.c \
    basesrc/games/hack/hack.shknam.c basesrc/games/hack/hack.timeout.c \
    basesrc/games/hack/hack.topl.c basesrc/games/hack/hack.vault.c \
    basesrc/games/hack/hack.wield.c basesrc/games/hack/hack.wizard.c \
    basesrc/games/hack/hack.zap.c
cvs rdiff -r1.5 -r1.6 basesrc/games/hack/def.monst.h \
    basesrc/games/hack/hack.apply.c basesrc/games/hack/hack.cmd.c \
    basesrc/games/hack/hack.main.c basesrc/games/hack/hack.mkshop.c \
    basesrc/games/hack/hack.o_init.c basesrc/games/hack/hack.pager.c \
    basesrc/games/hack/hack.pri.c basesrc/games/hack/hack.rip.c \
    basesrc/games/hack/hack.trap.c basesrc/games/hack/hack.u_init.c
cvs rdiff -r1.7 -r1.8 basesrc/games/hack/hack.h \
    basesrc/games/hack/hack.unix.c
cvs rdiff -r1.6 -r1.7 basesrc/games/hack/hack.invent.c \
    basesrc/games/hack/hack.read.c basesrc/games/hack/hack.save.c \
    basesrc/games/hack/makedefs.c
cvs rdiff -r1.8 -r1.9 basesrc/games/hack/hack.tty.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.