Add 'extern' to arrays that are declared and initialised elsewhere.
This commit is contained in:
parent
d2d7262333
commit
19b47e9a95
@ -231,8 +231,8 @@ struct room {
|
||||
char *desc;
|
||||
int objects[NUMOFWORDS];
|
||||
};
|
||||
struct room dayfile[];
|
||||
struct room nightfile[];
|
||||
extern struct room dayfile[];
|
||||
extern struct room nightfile[];
|
||||
struct room *location;
|
||||
|
||||
/* object characteristics */
|
||||
@ -292,13 +292,13 @@ struct wlist {
|
||||
#define HASHMUL 81
|
||||
#define HASHMASK (HASHSIZE - 1)
|
||||
struct wlist *hashtab[HASHSIZE];
|
||||
struct wlist wlist[];
|
||||
extern struct wlist wlist[];
|
||||
|
||||
struct objs {
|
||||
short room;
|
||||
short obj;
|
||||
};
|
||||
struct objs dayobjs[];
|
||||
struct objs nightobjs[];
|
||||
extern struct objs dayobjs[];
|
||||
extern struct objs nightobjs[];
|
||||
|
||||
gid_t egid;
|
||||
|
Loading…
Reference in New Issue
Block a user