(toplevel): Include stdarg.h.
authorColin Walters <walters@gnu.org>
Wed, 10 Apr 2002 19:10:23 +0000 (19:10 +0000)
committerColin Walters <walters@gnu.org>
Wed, 10 Apr 2002 19:10:23 +0000 (19:10 +0000)
commit8eec804f6efd3023e00a8b3f3f22103c2aabe9a9
tree570fb1d10763b35e6aec1cb0c14d4c8185605f59
parent1ba1fb11c0d8516249894ac08396152c3e1cd009
(toplevel): Include stdarg.h.
(MAX_DATA_LEN, MAX_SCORES): New.
(SCORE_FILE_PREFIX): If HAVE_SHARED_GAME_DIR is not defined,
default to ~/.emacs.d/games.
(get_user_id): Don't zero uid in the case where we can't get the
username.
(lose): New function.
(main): Actually use `max', and default it to MAX_SCORES.
Correctly handle new default for SCORE_FILE_PREFIX.  Use `lose'
function.
(read_score): Handle the case of reading unamelen characters, then
finishing.  Use mktemp if mkstemp isn't available.
(lock_file, unlock_file): Delete unused versions.
(lock_file): Always sleep, even if we unlinked the lock file.
lib-src/update-game-score.c