summaryrefslogtreecommitdiffstats
path: root/backgammon/backgammon/main.c
Commit message (Collapse)AuthorAgeFilesLines
* - avoid multipling a boolean value, use &&.mrg2019-02-031-3/+3
|
* don't declare ospeed; it's in <termcap.h>dholland2014-03-221-3/+2
|
* Remove ifdefs for V7 (as opposed to older) unix.dholland2012-10-131-6/+2
|
* Pass the move info around instead of using it as a global.dholland2012-10-131-22/+25
|
* Crack down on global variables with single-letter names.dholland2012-10-131-11/+12
|
* rename text() to wrtext(), aligning it with most other output routines,mrg2010-03-221-8/+8
| | | | | and avoiding a compile error on powerpc64. XXX: this tries to make a ".text" symbol, which already exists...
* sprinkle staticdholland2009-08-121-4/+4
|
* looks as if "ospeed" here was meant to be extern.dholland2009-08-121-3/+3
|
* Remove the \n and tabs from the __COPYRIGHT() strings.lukem2008-07-211-4/+4
|
* Pedanticism about time_t (not really a bug, but now it won't show up whendholland2008-01-311-3/+3
| | | audited.)
* convert __attribute__s to applicable cdefs.h macrosperry2007-12-151-3/+3
|
* KNF and WARNS=3 fixesjmc2005-07-011-6/+5
|
* Cast last argument of execl to (char *).jsm2005-02-151-3/+4
| | | Reviewed by <hubertf>.
* Mark unused parameters, nonreturning functions and format functions injsm2004-02-081-3/+3
| | | the few cases not already marked.
* Only score as a Gammon or a Backgammon if the opponent hasn't removedjsm2004-01-011-3/+3
| | | | | any pieces, not if the opponent has removed pieces but has had a piece knocked back to the bar afterwards. Fixes Debian bug 185101 from Konstantin Seiler <list@kseiler.de>.
* 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.
* Give initiali[sz]e all the "i"s it deserves.wiz2001-09-181-3/+3
|
* Use setgid(), not setregid().mycroft2000-05-081-3/+3
|
* Fix some uses of NULL as non-pointer and 0 for null pointer.jsm1999-09-171-3/+3
|
* Include <time.h> in various places in the games where time() or time_tjsm1999-09-091-2/+4
| | | are used.
* Adapt to change of "termcap.h".tron1999-08-141-3/+3
|
* This is a trivial fix to backgammon(6): '\a' is cleaner than '\007'.hubertf1999-07-281-3/+3
| | | Submitted in PR 8104 by Joseph Myers <jsm28@cam.ac.uk>
* As in previously sent patches: backgammon(6) does not need setgidhubertf1999-07-191-2/+5
| | | | | games privileges from dm, so should revoke them on startup. Patch submitteed in PR 8024 bye Joseph Myers <jsm28@cam.ac.uk>
* Fix scoring, submitted in PR 7992 by Joseph Myers <jsm28@cam.ac.uk>hubertf1999-07-141-8/+7
|
* The patch below makes the game backgammon(6) use `const' wherehubertf1999-02-101-56/+24
| | | | | | | | | | | | | | appropriate. It also removes some obsolete, unused code to check the number of users on the system (obsoleted by dm); removes a prototype for an unused function that was removed earlier; and removes a control character from one message that was I think intended to clear the screen on some particular terminal (though I can't find the comment to that effect in any of the BSD source trees I have handy) but no longer serves any useful purpose. From PR 6580 by Joseph Myers <jsm28@cam.ac.uk>. Also contains two more patches, one in teachgammon/tutor.h (by Joseph) and one in common_source/fancy.c (by me).
* Fix args processing of backgammon and teachgammon, closes pr 5345 byfrueauf1998-09-151-3/+3
| | | David Brownlee.
* Use symbolic names for signals(!), open(2)-constants, ...hubertf1998-08-291-4/+4
| | | Fix applied as per PR 6058 by Joseph Myers <jsm28@cam.ac.uk>
* - really make extern char's extern.mrg1998-03-291-4/+4
|
* KNF & WARNSify, and only compile common_source once/* (compiles 25% faster)lukem1997-10-101-306/+273
|
* Use POSIX tty semantics.mycroft1995-04-291-16/+14
|
* Various changes to make games compile w/o warnings on the alpha:cgd1995-04-241-3/+3
| | | | Include appropriate includes, delete bogus function declarations, change sizes of variables and casts.
* clean up importcgd1995-03-211-0/+6
|
* from Litecgd1995-03-211-6/+6
|
* initial import of 386bsd-0.1 sourcescgd1993-03-211-0/+591