Home | History | Annotate | Download | only in tetris
History log of /src/games/tetris/tetris.h
RevisionDateAuthorComments
 1.16  21-Jul-2020  nia tetris: Use arc4random_uniform instead of modulo for better randomness
 1.15  03-Mar-2016  nat Center game board on screen. OK from christos@.
 1.14  13-Jul-2014  pgoyette Provide an option to restore traditional black-and-white mode.
 1.13  11-Jun-2014  christos Add a little color. In order to minimize logic differences, keep 0 as the
empty board value, and since 7 is white, turn white into black (0) when
painting.
 1.12  12-Aug-2009  dholland branches: 1.12.12; 1.12.22;
sprinkle static
 1.11  25-May-2009  dholland ANSIfy function declarations.

Some object file diffs, but they are harmless. (Mostly they seem to
come from internal counters in gcc... and in one case the order of two
instructions was harmlessly swapped, which is odd and annoying.)
 1.10  27-Jan-2004  jsm Remove uses of __P.
 1.9  07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22269, verified by myself.
 1.8  01-Jan-2000  jsm Declare variables as extern in headers rather than using linker commons.
 1.7  12-Sep-1999  jsm Security improvements for games (largely from or inspired by OpenBSD).

Games which run setgid from dm, but don't need to, should drop their
privileges at startup.

Games which have a scorefile should open it at startup, then drop all
privileges leaving just the open writable file descriptor. If the
game can invoke subprocesses, this should be made close-on-exec.

Games with scorefiles should make sure they do not get a file
descriptor < 3. (Otherwise, they could get confused and corrupt the
scorefile when using stdin, stdout or stderr.)

Some old setuid revokes from the days of setuid games change into gid
revokes.
 1.6  08-Sep-1999  jsm Add use of `const' where appropriate to 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).

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.
 1.5  03-Jan-1999  hubertf only show preview if the -p option is given
 1.4  03-Jan-1999  hubertf Add previewing of next shape. Old (previous) behaviour can be
restored by compiling with NO_PREVIEW defined.
 1.3  13-Sep-1998  hubertf mark non-returning functions (PR#6144 by Joseph Myers <jsm28@cam.ac.uk>)
 1.2  22-Apr-1995  cgd NetBSD RCS Ids
 1.1  06-May-1994  cgd branches: 1.1.1;
Initial revision
 1.1.1.1  06-May-1994  cgd ascii tetris!
 1.12.22.1  10-Aug-2014  tls Rebase.
 1.12.12.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.

RSS XML Feed