History log of /openbsd-current/games/phantasia/main.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.23 21-May-2024 jsg

remove prototypes with no matching function and externs with no var
partly checked by millert@


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE OPENBSD_7_2_BASE OPENBSD_7_3_BASE OPENBSD_7_4_BASE OPENBSD_7_5_BASE
# 1.22 27-Aug-2016 guenther

Pull in <time.h> for time() and perhaps other functions

ok deraadt@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.21 10-Jan-2016 mestre

As per style(9), remove remaining lint-style comments from games/

OK tb@


# 1.20 08-Jan-2016 tb

add missing 'void'

ok mestre@


# 1.19 06-Jan-2016 mestre

Remove unnecessary header files from phantasia(6)

Lesson learnt: don't include an header sorted alphabetically just because. The
external definition of variables was done on phantglobs.h but their declaration
was on phantstruct.h and therefore the latter must be included before the
former. It's easier to just include phantstruct.h inside phantglobs.h since it
always need it.

With help and OK from tb@


# 1.18 06-Jan-2016 tb

Ansify the bulk of phantasia. No binary change on amd64. Based
on an older diff by mestre.

ok mestre@


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.17 16-Nov-2014 guenther

Eliminate pointless use of <sys/param.h>, <sys/file.h>, <sys/sockio.h>,
and <sys/ttydefaults.h>
Replace MAXPATHLEN with PATH_MAX and MAXLOGNAME with LOGIN_NAME_MAX
Pull in <limits.h> where needed
Prefer sizeof(var) over MAXFOO or FOO_MAX

ok deraadt@


Revision tags: OPENBSD_5_6_BASE
# 1.16 12-Jul-2014 deraadt

Remove a pile of (obviously unused) #ifdef SYSV and BSD41 and BSD42
code that catches lots of signals, and then re-enters curses... before
exiting.


Revision tags: OPENBSD_5_5_BASE
# 1.15 29-Aug-2013 naddy

replace srandomdev()+random() with the arc4random*() family
tweaks and ok millert@, ok deraadt@


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.14 15-Dec-2010 tedu

as of 1989, fread/fwrite take void *, so there's no need to cast to char *.


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE
# 1.13 25-Apr-2003 deraadt

comment repair


# 1.12 06-Apr-2003 deraadt

2451 lines of strdup/sprintf/strcpy whacking. mostly ok'd by pjanzen
already, but he may have later changes to make still.


Revision tags: OPENBSD_3_3_BASE
# 1.11 06-Dec-2002 millert

Replace things like srandom(time(NULL)) with srandomdev(3). random(3)
good enough for games but we should at least use a decent seed.
pjanzen@ OK


Revision tags: OPENBSD_3_2_BASE
# 1.10 31-May-2002 pjanzen

crmode -> cbreak


# 1.9 06-May-2002 millert

do not install a SIGSEGV handler


Revision tags: OPENBSD_2_9_BASE OPENBSD_3_0_BASE OPENBSD_3_1_BASE
# 1.8 04-Feb-2001 pjanzen

Tidy, avoid segfaults on unknown users, and deal with long usernames


Revision tags: OPENBSD_2_8_BASE
# 1.7 29-Jun-2000 pjanzen

use SEEK_SET; improve an error message.


Revision tags: OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE
# 1.6 29-Nov-1998 pjanzen

NetBSD merge (mainly -Wall related)


# 1.5 28-Nov-1998 pjanzen

Clear up a warning: printw doesn't take a const char, printf does


Revision tags: OPENBSD_2_4_BASE
# 1.4 10-Jul-1998 downsj

Ok, so I was bored and couldn't sleep...

Make this sucker work with decent terminal settings.


Revision tags: OPENBSD_2_3_BASE
# 1.3 08-Dec-1997 deraadt

avoid fclose(NULL)


Revision tags: OPENBSD_2_0_BASE OPENBSD_2_1_BASE OPENBSD_2_2_BASE
# 1.2 26-May-1996 fn

fixed the "/* in comments" problem.


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.22 27-Aug-2016 guenther

Pull in <time.h> for time() and perhaps other functions

ok deraadt@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.21 10-Jan-2016 mestre

As per style(9), remove remaining lint-style comments from games/

OK tb@


# 1.20 08-Jan-2016 tb

add missing 'void'

ok mestre@


# 1.19 06-Jan-2016 mestre

Remove unnecessary header files from phantasia(6)

Lesson learnt: don't include an header sorted alphabetically just because. The
external definition of variables was done on phantglobs.h but their declaration
was on phantstruct.h and therefore the latter must be included before the
former. It's easier to just include phantstruct.h inside phantglobs.h since it
always need it.

With help and OK from tb@


# 1.18 06-Jan-2016 tb

Ansify the bulk of phantasia. No binary change on amd64. Based
on an older diff by mestre.

ok mestre@


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.17 16-Nov-2014 guenther

Eliminate pointless use of <sys/param.h>, <sys/file.h>, <sys/sockio.h>,
and <sys/ttydefaults.h>
Replace MAXPATHLEN with PATH_MAX and MAXLOGNAME with LOGIN_NAME_MAX
Pull in <limits.h> where needed
Prefer sizeof(var) over MAXFOO or FOO_MAX

ok deraadt@


Revision tags: OPENBSD_5_6_BASE
# 1.16 12-Jul-2014 deraadt

Remove a pile of (obviously unused) #ifdef SYSV and BSD41 and BSD42
code that catches lots of signals, and then re-enters curses... before
exiting.


Revision tags: OPENBSD_5_5_BASE
# 1.15 29-Aug-2013 naddy

replace srandomdev()+random() with the arc4random*() family
tweaks and ok millert@, ok deraadt@


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.14 15-Dec-2010 tedu

as of 1989, fread/fwrite take void *, so there's no need to cast to char *.


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE
# 1.13 25-Apr-2003 deraadt

comment repair


# 1.12 06-Apr-2003 deraadt

2451 lines of strdup/sprintf/strcpy whacking. mostly ok'd by pjanzen
already, but he may have later changes to make still.


Revision tags: OPENBSD_3_3_BASE
# 1.11 06-Dec-2002 millert

Replace things like srandom(time(NULL)) with srandomdev(3). random(3)
good enough for games but we should at least use a decent seed.
pjanzen@ OK


Revision tags: OPENBSD_3_2_BASE
# 1.10 31-May-2002 pjanzen

crmode -> cbreak


# 1.9 06-May-2002 millert

do not install a SIGSEGV handler


Revision tags: OPENBSD_2_9_BASE OPENBSD_3_0_BASE OPENBSD_3_1_BASE
# 1.8 04-Feb-2001 pjanzen

Tidy, avoid segfaults on unknown users, and deal with long usernames


Revision tags: OPENBSD_2_8_BASE
# 1.7 29-Jun-2000 pjanzen

use SEEK_SET; improve an error message.


Revision tags: OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE
# 1.6 29-Nov-1998 pjanzen

NetBSD merge (mainly -Wall related)


# 1.5 28-Nov-1998 pjanzen

Clear up a warning: printw doesn't take a const char, printf does


Revision tags: OPENBSD_2_4_BASE
# 1.4 10-Jul-1998 downsj

Ok, so I was bored and couldn't sleep...

Make this sucker work with decent terminal settings.


Revision tags: OPENBSD_2_3_BASE
# 1.3 08-Dec-1997 deraadt

avoid fclose(NULL)


Revision tags: OPENBSD_2_0_BASE OPENBSD_2_1_BASE OPENBSD_2_2_BASE
# 1.2 26-May-1996 fn

fixed the "/* in comments" problem.


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision