summaryrefslogtreecommitdiffstats
path: root/cribbage/io.c
Commit message (Collapse)AuthorAgeFilesLines
* Pass -Wstrict-overflow, and while here, don't read from index -1 ofdholland2012-10-131-16/+16
| | | an array.
* Don't use variables as format strings.joerg2011-05-231-7/+7
|
* ANSIfyjoerg2011-05-231-5/+3
|
* sprinkle staticdholland2009-08-121-15/+23
|
* Rename internal getline() function to get_line() so it doesroy2009-07-131-6/+6
| | | conflict with the soon to be added getline(3) libc function.
* sprintf -> snprintfdholland2009-06-041-4/+4
|
* convert __attribute__s to applicable cdefs.h macrosperry2007-12-151-3/+3
|
* KNF and WARNS=3jmc2005-07-021-40/+17
|
* Fixed wrong use of datatypes. In wait_for(), a char was used togetherrillig2005-04-191-8/+5
| | | | | | with getchar(), in readchar(), a char was used to read input, which in getuchar() is used as an argument to islower() and toupper(). Also removed a condition which terminated the process if the user typed in character 255. Approved by christos.
* Add (unsigned char) cast to ctype functionsdsl2004-11-051-6/+6
|
* Rename rint to receive_intr to avoid conflict with GCC 3.4 built-in C99jsm2004-01-261-3/+3
| | | function.
* Move UCB-licensed code from 4-clause to 3-clause licence.agc2003-08-071-7/+3
| | | Patches provided by Joel Baker in PR 22269, verified by myself.
* __STDC__ is always defined on NetBSD.wiz2002-05-261-28/+3
|
* Fix uses of namespaces reserved by ISO C or POSIX.1.jsm1999-09-301-4/+4
|
* Fix -Wsign-compare warnings.jsm1999-09-181-3/+3
|
* Add `__noreturn__' and `__unused__' attributes where appropriate tojsm1999-09-081-3/+3
| | | | | | | | | | | | the games. This merges in all such remaining changes from the Linux port of the NetBSD games, except in hunt (where substantial changes from OpenBSD need to be looked at). Most noreturn attributes were previously added in bin/6144, with some others that were missed then in bin/8082. Previous `unused' attributes were covered in bin/6557, bin/8058 and other PRs (all these PRs have already been handled and closed).
* Add use of `const' where appropriate to the games.jsm1999-09-081-12/+12
| | | | | | | | | This merges in all such remaining changes from the Linux port of the NetBSD games, except in hunt (where substantial changes from OpenBSD need to be looked at). Some such changes were previously covered in PRs bin/6041, bin/6146, bin/6148, bin/6150, bin/6151, bin/6580, bin/6660, bin/7993, bin/7994, bin/8039, bin/8057 and bin/8093.
* WARNSifylukem1997-10-101-17/+18
|
* Clean up play, let player see play more often, improve display timing.phil1997-07-091-2/+4
| | | Preliminary work from PR 2055 (as reverse patches).
* NULL => 0 (Arne Juul; PR#3629)pk1997-05-171-13/+13
|
* clean up importcgd1995-03-211-372/+391
|
* Eliminate two compiler warnings.mycroft1993-12-081-85/+85
|
* #include <termios.h>.mycroft1993-08-101-1/+2
|
* Add RCS identifiers.mycroft1993-08-011-1/+2
|
* Fix bug I introduced.mycroft1993-04-191-4/+4
|
* Cleanup for GCC 2.mycroft1993-04-181-10/+4
|
* initial import of 386bsd-0.1 sourcescgd1993-03-211-0/+615