Remove some hard-coded array dimensions. Generate CLSSES at compile time.

(How did this ever even work without 'extern'?)
This commit is contained in:
Jason S. Ninneman 2017-06-12 11:02:16 -07:00 committed by Eric S. Raymond
parent 90b9b84797
commit 6b75d87797
3 changed files with 10 additions and 7 deletions

View file

@ -1298,3 +1298,5 @@ char* turn_threshold_messages[] = {
"Are you still at it? Five points off for exceeding 1000 turns!",
"Good grief, don\'t you *EVER* give up? Do you realize you\'ve spent\nover 2500 turns at this? That\'s another ten points off, a total of\ntwenty points lost for taking so long.",
};
size_t CLSSES = sizeof(class_messages) / sizeof(class_messages[0]);