Give generate constant arrays the const specifier.

Also, move the adventure.txt format documentation to dungeon.c to be
removed when that file is.
This commit is contained in:
Eric S. Raymond 2017-06-24 11:07:07 -04:00
parent c3a2816821
commit 3e19c39f57
3 changed files with 94 additions and 161 deletions

View file

@ -62,13 +62,13 @@ typedef struct {{
const char* hint;
}} hint_t;
extern location_t locations[];
extern object_description_t object_descriptions[];
extern const char* arbitrary_messages[];
extern const class_t classes[];
extern turn_threshold_t turn_thresholds[];
extern obituary_t obituaries[];
extern hint_t hints[];
extern const location_t locations[];
extern const object_description_t object_descriptions[];
extern const const char* arbitrary_messages[];
extern const const class_t classes[];
extern const turn_threshold_t turn_thresholds[];
extern const obituary_t obituaries[];
extern const hint_t hints[];
extern long conditions[];
#define NLOCATIONS {}
@ -109,23 +109,23 @@ const class_t classes[] = {{
{}
}};
turn_threshold_t turn_thresholds[] = {{
const turn_threshold_t turn_thresholds[] = {{
{}
}};
location_t locations[] = {{
const location_t locations[] = {{
{}
}};
object_description_t object_descriptions[] = {{
const object_description_t object_descriptions[] = {{
{}
}};
obituary_t obituaries[] = {{
const obituary_t obituaries[] = {{
{}
}};
hint_t hints[] = {{
const hint_t hints[] = {{
{}
}};