aboutsummaryrefslogtreecommitdiff
path: root/games
Commit message (Collapse)AuthorAgeFilesLines
* Minor adjustments to prior commits:Warner Losh1999-01-071-5/+7
| | | | | | | | | | | o break at end of sentences o add $id$ o change date Noticed by: the ever watchful bde Notes: svn path=/head/; revision=42380
* Fix printf errors in the hflag case.Warner Losh1999-01-063-13/+13
| | | | | | | | | | Fix old bug with bogus casing to (long). Document the true limits of factor on 64-bit architectures. Submitted by: bde Notes: svn path=/head/; revision=42357
* added -h flag to allow for hexidecimal output.Warner Losh1999-01-063-18/+33
| | | | | | | | | | | | | Use '0' for base rather than 10 to allow for more flexible input bases. Inspired by changes in PR 7402, but mostly redone by me to get past bde filter. Submitted by: Timo J. Rinne PR: 7402 Notes: svn path=/head/; revision=42338
* Fixed CLEANFILES.Bruce Evans1998-12-272-2/+2
| | | | Notes: svn path=/head/; revision=42087
* Fix typo (if it's not a typo, then it doesn't make sense IMHO)Peter Wemm1998-11-092-2/+2
| | | | Notes: svn path=/head/; revision=41024
* Allow building games w/o an existing /usr/games.David E. O'Brien1998-10-181-3/+6
| | | | Notes: svn path=/head/; revision=40508
* Allow ``make BINDIR=/foo/games'' to work.David E. O'Brien1998-10-182-3/+7
| | | | Notes: svn path=/head/; revision=40506
* Fixed building without /usr/games in $PATH. Just add /usr/gamesBruce Evans1998-10-171-11/+13
| | | | | | | | | | | | | | | | | | | | | | | to the _end_ of $PATH before using tools that are normally in /usr/games. I broke this in rev.1.9 by assuming that these tools are in $PATH (as they are for `make world' unless NOTOOLS is set). Revs.1.10-1.13 of this file had various wrong fixes. Rev.1.18 of src/Makefile.inc1 has an incomplete fix. PR: 7936 Fixed comments about what to comment out to [not] install the potentially offensive fortunes. This should be configured using an ifdef. Fixed missing dependencies of fortunes.dat on fortunes, etc. Removed bogus dependency of `all' on source files. Fixed some style bugs. Notes: svn path=/head/; revision=40478
* Back out the last two hacks. I've added games to the (correct) buildJohn Birrell1998-09-211-16/+3
| | | | | | | | | | path in src/Makefile.inc. The code that I'm backing out didn't work anyway since exists() checks for a file in .PATH (and /usr/games/strfile doesn't exist there), so the test was always defaulting to ../strfile/strfile which breaks cross-compiled builds. Notes: svn path=/head/; revision=39543
* Remove bogus dependencies.Poul-Henning Kamp1998-09-191-3/+3
| | | | | | | Submitted by: bde Notes: svn path=/head/; revision=39479
* Reverse the sense of the test looking for caesar & strfile.Poul-Henning Kamp1998-09-191-6/+6
| | | | Notes: svn path=/head/; revision=39478
* Don't expect /usr/games in the path.Poul-Henning Kamp1998-09-171-6/+19
| | | | | | | | | | | Avoid using /usr/games versions if we can find what we need (caesar & strfile) in the buildtree. PR: 7936 Submitted by: Achim Patzner <ap@noses.com> Notes: svn path=/head/; revision=39409
* Don't do anything special to prevent access to created files - honourBruce Evans1998-09-051-1/+3
| | | | | | | the default umask. World unreadable files broke installing over nfs. Notes: svn path=/head/; revision=38867
* Keep build-tools objects separate from `all' objects so that myBruce Evans1998-09-021-3/+6
| | | | | | | cross-builds work. Notes: svn path=/head/; revision=38755
* Split lines into one subdir per line.Gary Palmer1998-08-301-5/+39
| | | | Notes: svn path=/head/; revision=38658
* Make the build tools static to avoid trying to use the shared loaderJohn Birrell1998-08-201-2/+2
| | | | | | | | | | | | before it is installed. This upsets Bruce because the host boostrap build forces tools to be static anyway. He says I'm abusing NOTOOLS in src/Makefile by using it to do a aout->elf transition build. One day I'll find a place to install host tools like these to allow a true cross build. Notes: svn path=/head/; revision=38462
* Build the makedefs program static to avoid trying to use the sharedJohn Birrell1998-08-151-1/+1
| | | | | | | loader before it has been installed in an aout to elf transition build. Notes: svn path=/head/; revision=38325
* Build the setup program static so that we don't try to use the sharedJohn Birrell1998-08-151-1/+1
| | | | | | | loader before it has been installed in a transition build from aout to elf. Notes: svn path=/head/; revision=38324
* Revert the last commit, it made the Bruce filter flip:Poul-Henning Kamp1998-08-091-18/+13
| | | | | | | | | | | | | | | | | | | PR7402 was even less suitable for committing almost verbatim than at first appearance. Rev.1.9 of primes.c has at least the following defects. - no update for man page. - no update for usage string. - blowing away of a previous commit to change EOF to -1 in getopt() test. - blowing away of a previous commit to fix printf format errors. - new printf format errors. - one gratuitous ANSIism. - two style bugs. - ... and a partition in a pear tree. PR: 7402 Notes: svn path=/head/; revision=38199
* Games primes and factor don't understand hexadecimals.Poul-Henning Kamp1998-08-071-13/+18
| | | | | | | | | | | This would make these `games' somewhat useful tools. PR: 7402 Reviewed by: phk Submitted by: Timo J. Rinne <tri@iki.fi> Notes: svn path=/head/; revision=38153
* Wrong filename for dictionary in manpage.Poul-Henning Kamp1998-08-041-1/+1
| | | | | | | | | PR: 7467 Reviewed by: phk Submitted by: Ben Walter <bwalter@itachi.swcp.com> Notes: svn path=/head/; revision=38069
* Remove comment relevant to 16bit integers only.Warner Losh1998-07-261-2/+0
| | | | Notes: svn path=/head/; revision=37871
* o Fix Y2K buffer overflow.Warner Losh1998-07-261-4/+2
| | | | | | | o Fix zero filling bug in all years % 100 < 10. Notes: svn path=/head/; revision=37869
* Y2K fix. Fix by jsm28@cam.ac.uk via OpenBSDWarner Losh1998-07-261-1/+1
| | | | Notes: svn path=/head/; revision=37868
* Fix discrepancy between sources and manual page for the 'c' command.Joseph Koshy1998-07-201-11/+1
| | | | | | | PR: docs/6003 Notes: svn path=/head/; revision=37764
* Buffer overflow.Poul-Henning Kamp1998-07-091-1/+1
| | | | | | | | | PR: 7195 Reviewed by: phk Submitted by: Anders Thulin <Anders.x.thulin@telia.se> Notes: svn path=/head/; revision=37527
* Use the installed versions of caesar and strfile. They are nowBruce Evans1998-07-071-19/+3
| | | | | | | | | bootstrapped by `make world', and the installed versions are just as likely to work as the installed version of cc if `make' is run directly. Notes: svn path=/head/; revision=37474
* Added a `build-tools' target for internal tools.Bruce Evans1998-07-071-1/+3
| | | | | | | Honor LDFLAGS for building internal tools. Notes: svn path=/head/; revision=37459
* Added a `build-tools' target for internal tools.Bruce Evans1998-07-071-5/+7
| | | | | | | | | | | | Honor LDFLAGS for building internal tools. Always build intermediate object files explicitly so that binaries don't change when they are rebuilt. Fixed some style bugs. Notes: svn path=/head/; revision=37458
* Added a `build-tools' target for internal tools.Bruce Evans1998-07-071-0/+5
| | | | | | | | | Restored a variant of explicit rule for `setup', with modifications to always build setup.o so that `setup' doesn't change every time it is rebuilt because it has a temporary file name in it. Notes: svn path=/head/; revision=37457
* Fixed printf format errors.Bruce Evans1998-06-308-21/+22
| | | | Notes: svn path=/head/; revision=37309
* Fixed (1970's style) missing declaration of a function that doesn'tBruce Evans1998-06-301-0/+2
| | | | | | | return int. Notes: svn path=/head/; revision=37308
* Fixed printf format errors. Didn't fix gross homemade varargs functionBruce Evans1998-06-301-1/+1
| | | | | | | | Write(). Pointers are passed to it as longs, but it expects them to be passed as ints. The alpha non-fixes made this worse. Notes: svn path=/head/; revision=37307
* Fixed the type of yyerror() (1970's style).Bruce Evans1998-06-301-0/+1
| | | | Notes: svn path=/head/; revision=37306
* Cast pointers to longs, not ints.John Birrell1998-05-091-3/+3
| | | | | | | | Hopefully that's the last of the 64-bit cleaning of src/games. That is, without adding -Wall to the compiler flags. That's not a pretty sight. Notes: svn path=/head/; revision=35892
* Change long variable to time_t where it is passed to time() by reference.John Birrell1998-05-091-1/+1
| | | | Notes: svn path=/head/; revision=35890
* Add #include string.h to get prototypes.John Birrell1998-05-092-0/+2
| | | | Notes: svn path=/head/; revision=35889
* Add #include string.h to get prototypes and change variables from longJohn Birrell1998-05-092-3/+5
| | | | | | | to time_t where they are passed to time() and localtime() by reference. Notes: svn path=/head/; revision=35888
* Remove bogus time() prototype and let the one in time.h rule.John Birrell1998-05-091-1/+0
| | | | Notes: svn path=/head/; revision=35887
* Add #include string.h to get prototypes.John Birrell1998-05-093-0/+3
| | | | Notes: svn path=/head/; revision=35886
* Cast pointers to long instead of int.John Birrell1998-05-094-9/+9
| | | | Notes: svn path=/head/; revision=35885
* Add #include string.h to get prototypes.John Birrell1998-05-093-0/+3
| | | | Notes: svn path=/head/; revision=35884
* Change casts of function pointers from int to long. This makes theJohn Birrell1998-05-096-7/+7
| | | | | | | | | compiler warnings go away, but the compiler is throwing away 32-bits as the long value is silently truncated to an int on alpha. But the program works, so that must not matter. Notes: svn path=/head/; revision=35883
* Add #include string.h to get prototypes.John Birrell1998-05-093-0/+3
| | | | Notes: svn path=/head/; revision=35882
* Change long variable to time_t because it passed to time() and ctime().John Birrell1998-05-091-1/+1
| | | | Notes: svn path=/head/; revision=35881
* Change long variables to time_t if they are passed to time() or localtime()John Birrell1998-05-091-3/+3
| | | | | | | be reference. Notes: svn path=/head/; revision=35880
* Add #include string.h to get prototypes.John Birrell1998-05-092-0/+2
| | | | Notes: svn path=/head/; revision=35879
* Change variable types from long to time_t if they are passed to time()John Birrell1998-05-094-6/+7
| | | | | | | by reference. Notes: svn path=/head/; revision=35878
* Remove #define NULL because stdio.h does that.John Birrell1998-05-091-1/+0
| | | | Notes: svn path=/head/; revision=35877
* Add #include string.h to get prototypes.John Birrell1998-05-091-0/+1
| | | | Notes: svn path=/head/; revision=35876