Remove some hard-coded array dimensions. Generate CLSSES at compile time.
(How did this ever even work without 'extern'?)
This commit is contained in:
parent
90b9b84797
commit
6b75d87797
3 changed files with 10 additions and 7 deletions
14
newdb.h
14
newdb.h
|
@ -3,9 +3,11 @@ typedef struct {
|
|||
char** longs;
|
||||
} object_description_s;
|
||||
|
||||
char* long_location_descriptions[186];
|
||||
char* short_location_descriptions[186];
|
||||
object_description_s object_descriptions[101];
|
||||
char* arbitrary_messages[278];
|
||||
char* class_messages[13];
|
||||
char* turn_threshold_messages[6];
|
||||
extern char* long_location_descriptions[];
|
||||
extern char* short_location_descriptions[];
|
||||
extern object_description_s object_descriptions[];
|
||||
extern char* arbitrary_messages[];
|
||||
extern char* class_messages[];
|
||||
extern char* turn_threshold_messages[];
|
||||
|
||||
extern size_t CLSSES;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue