Mercurial > hg > early-roguelike
diff xrogue/rogue.h @ 236:7c1cb43f346e
XRogue: get rid of VOID as an alias for long.
Maybe some compilers in 1986 didn't handle void pointers well, but they
are no longer a concern.
author | John "Elwin" Edwards |
---|---|
date | Mon, 07 Mar 2016 20:44:01 -0500 |
parents | b67b99f6c92b |
children | e1cd27c5464f |
line wrap: on
line diff
--- a/xrogue/rogue.h Mon Mar 07 19:26:08 2016 -0500 +++ b/xrogue/rogue.h Mon Mar 07 20:44:01 2016 -0500 @@ -20,12 +20,8 @@ #include "config.h" #endif -/* - * some compiler don't handle void pointers well so - */ #include <assert.h> #define reg register -#define VOID long #undef lines #define ENCREAD encread #define ENCWRITE encwrite @@ -935,7 +931,7 @@ int d_type; void (*d_func)(); union { - VOID *vp; + void *vp; int i; } d_arg; int d_time; @@ -1322,7 +1318,7 @@ void fix_stick(struct object *cur); void fright(struct thing *th); void fumble(void); -void fuse(void (*dfunc)(), VOID *arg, int time, int type); +void fuse(void (*dfunc)(), void *arg, int time, int type); void genmonsters(int least, bool treas); coord get_coordinates(void); bool get_dir(coord *direction); @@ -1452,7 +1448,7 @@ bool thrown); struct linked_list *spec_item(int type, int which, int hit, int damage); void spell_recovery(void); -void start_daemon(void (*dfunc)(), VOID *arg, int type); +void start_daemon(void (*dfunc)(), void *arg, int type); void status(bool display); void steal(void); bool step_ok(int y, int x, int can_on_monst, struct thing *flgptr);