cvs commit: src/games/hangman Makefile endgame.c extern.c getguess.c getword.c hangman.h main.c playgame.c prdata.c prman.c prword.c setup.c
Chris Pressey
cpressey at crater.dragonflybsd.org
Sun Feb 13 10:58:32 PST 2005
cpressey 2005/02/13 10:57:30 PST
DragonFly src repository
Modified files:
games/hangman Makefile endgame.c extern.c getguess.c
getword.c hangman.h main.c playgame.c
prdata.c prman.c prword.c setup.c
Log:
Clean up:
- ANSIfy function definitions.
- Constify where appropriate and remove `auto' declarations.
- Normalize whitespace and placement of braces.
- Parentheses around arguments to sizeof.
- Explicitly test against NUL character.
- Use curses functions instead of accessing internal members of the
WINDOW structure.
- Eliminate a convoluted and unnecessary goto.
- Raise WARNS to 6.
Brought-to-my-attention-by: my CPSC 213 lab assignment
Revision Changes Path
1.3 +2 -1 src/games/hangman/Makefile
1.3 +3 -13 src/games/hangman/endgame.c
1.3 +5 -4 src/games/hangman/extern.c
1.3 +13 -13 src/games/hangman/getguess.c
1.3 +9 -9 src/games/hangman/getword.c
1.4 +39 -36 src/games/hangman/hangman.h
1.3 +4 -6 src/games/hangman/main.c
1.3 +3 -3 src/games/hangman/playgame.c
1.3 +11 -9 src/games/hangman/prdata.c
1.3 +3 -3 src/games/hangman/prman.c
1.3 +3 -3 src/games/hangman/prword.c
1.3 +4 -4 src/games/hangman/setup.c
http://www.dragonflybsd.org/cvsweb/src/games/hangman/Makefile.diff?r1=1.2&r2=1.3&f=u
http://www.dragonflybsd.org/cvsweb/src/games/hangman/endgame.c.diff?r1=1.2&r2=1.3&f=u
http://www.dragonflybsd.org/cvsweb/src/games/hangman/extern.c.diff?r1=1.2&r2=1.3&f=u
http://www.dragonflybsd.org/cvsweb/src/games/hangman/getguess.c.diff?r1=1.2&r2=1.3&f=u
http://www.dragonflybsd.org/cvsweb/src/games/hangman/getword.c.diff?r1=1.2&r2=1.3&f=u
http://www.dragonflybsd.org/cvsweb/src/games/hangman/hangman.h.diff?r1=1.3&r2=1.4&f=u
http://www.dragonflybsd.org/cvsweb/src/games/hangman/main.c.diff?r1=1.2&r2=1.3&f=u
http://www.dragonflybsd.org/cvsweb/src/games/hangman/playgame.c.diff?r1=1.2&r2=1.3&f=u
http://www.dragonflybsd.org/cvsweb/src/games/hangman/prdata.c.diff?r1=1.2&r2=1.3&f=u
http://www.dragonflybsd.org/cvsweb/src/games/hangman/prman.c.diff?r1=1.2&r2=1.3&f=u
http://www.dragonflybsd.org/cvsweb/src/games/hangman/prword.c.diff?r1=1.2&r2=1.3&f=u
http://www.dragonflybsd.org/cvsweb/src/games/hangman/setup.c.diff?r1=1.2&r2=1.3&f=u
More information about the Commits
mailing list