1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-27 07:41:28 -08:00
emacs/lib-src
Paul Eggert 60fc70a8e0 Remove dependencies on getdelim and getline.
Also, remove update-game-scores's limits on game scores and
simplify its file-locking code.
* configure.ac (getdelim, getline): Remove.
* lib-src/update-game-score.c (struct score_entry): Unify the username and
data members to a single user_data member, since they don't need to be
changed independently and getdelim and getline aren't helpful.
Make the score member char *, not intmax_t, so that scores are not
limited to intmax_t.  All uses changed.
(lose_syserr): A zero errno stands for invalid data in score file.
(normalize_integer): New function.
(main): Use it.  Check for invalid scores.  Omit redundant stat check.
(read_score): First arg is now a string, not a FILE *.  All uses
changed.  Do not use getdelim or getline; that's way simpler.
(read_scores): Read the whole file, and let read_score handle each
line.
(score_compare): Compare strings representing integers, not integers.
(write_scores) [DOS_NT]: Eliminate unnecessary chmod.
(lock_file): Simplify locking code, eliminating goto.
Check for unlink failure.
2014-05-18 21:56:03 -07:00
..
.gitignore Don't ignore files that are no longer generated 2011-02-13 19:35:05 +01:00
ChangeLog Remove dependencies on getdelim and getline. 2014-05-18 21:56:03 -07:00
COPYING Change to GPLv3. 2007-07-25 07:00:38 +00:00
ctags.c Port ctags+etags build to Sun C 5.12. 2014-05-18 11:57:04 -07:00
ebrowse.c Update copyright year to 2014 by running admin/update-copyright. 2014-01-01 07:43:34 +00:00
emacsclient.c Handle systems without WCONTINUED consistently. 2014-05-03 13:13:10 -07:00
etags.c Update copyright year to 2014 by running admin/update-copyright. 2014-01-01 07:43:34 +00:00
grep-changelog Update copyright year to 2014 by running admin/update-copyright. 2014-01-01 07:43:34 +00:00
hexl.c Update copyright year to 2014 by running admin/update-copyright. 2014-01-01 07:43:34 +00:00
make-docfile.c Update copyright year to 2014 by running admin/update-copyright. 2014-01-01 07:43:34 +00:00
Makefile.in Port ctags+etags build to Sun C 5.12. 2014-05-18 11:57:04 -07:00
makefile.w32-in Update copyright year to 2014 by running admin/update-copyright. 2014-01-01 07:43:34 +00:00
movemail.c Update copyright year to 2014 by running admin/update-copyright. 2014-01-01 07:43:34 +00:00
ntlib.c Update copyright year to 2014 by running admin/update-copyright. 2014-01-01 07:43:34 +00:00
ntlib.h Update copyright year to 2014 by running admin/update-copyright. 2014-01-01 07:43:34 +00:00
pop.c Update copyright year to 2014 by running admin/update-copyright. 2014-01-01 07:43:34 +00:00
pop.h Update copyright year to 2014 by running admin/update-copyright. 2014-01-01 07:43:34 +00:00
profile.c Update copyright year to 2014 by running admin/update-copyright. 2014-01-01 07:43:34 +00:00
rcs2log Fix copyright years by hand. 2014-01-01 00:31:29 -08:00
README changed Emacs' to GNU Emacs' 2006-03-31 07:25:44 +00:00
update-game-score.c Remove dependencies on getdelim and getline. 2014-05-18 21:56:03 -07:00
update-game-score.exe.manifest Provide a Windows manifest for update-game-score.exe. 2013-08-10 10:43:41 +03:00

This directory contains the source code for the architecture-dependent
files that go in ${archlibdir}.  At present, these are mostly utility
programs used by GNU Emacs.