forward declarations for struct monst, struct obj
This should eliminate the 'onefile' complaint for objects.c without breaking anything with any standard conforming compiler. (Fingers crossed.)
This commit is contained in:
@@ -9,6 +9,11 @@
|
||||
/* #define obj obj_nh */ /* uncomment for SCO UNIX, which has a conflicting
|
||||
* typedef for "obj" in <sys/types.h> */
|
||||
|
||||
/* start with incomplete types in case these aren't defined yet;
|
||||
basic pointers to them don't need to know their details */
|
||||
struct obj;
|
||||
struct monst;
|
||||
|
||||
union vptrs {
|
||||
struct obj *v_nexthere; /* floor location lists */
|
||||
struct obj *v_ocontainer; /* point back to container */
|
||||
|
||||
Reference in New Issue
Block a user