The bugtype enum doesn't need explicit numbers. 171/head
authorJason S. Ninneman <jsn@mbar.us>
Fri, 30 Jun 2017 18:26:11 +0000 (11:26 -0700)
committerJason S. Ninneman <jsn@mbar.us>
Fri, 30 Jun 2017 20:25:12 +0000 (13:25 -0700)
advent.h

index 9d0ea2e0c79e910b11ac8f94f019769e8c374046..7391626e259f08f3954f244c009635122ad9689c 100644 (file)
--- a/advent.h
+++ b/advent.h
@@ -23,16 +23,15 @@ typedef long token_t;  // word token - someday this will be char[TOKLEN+1]
 typedef long vocab_t;  // index into a vocabulary array */
 
 enum bugtype {
-   SPECIAL_TRAVEL_500_GT_L_GT_300_EXCEEDS_GOTO_LIST = 20,   // 20
-   VOCABULARY_TYPE_N_OVER_1000_NOT_BETWEEN_0_AND_3 = 22,    // 22
-   INTRANSITIVE_ACTION_VERB_EXCEEDS_GOTO_LIST,              // 23
-   TRANSITIVE_ACTION_VERB_EXCEEDS_GOTO_LIST,                // 24
-   CONDITIONAL_TRAVEL_ENTRY_WITH_NO_ALTERATION,             // 25
-   LOCATION_HAS_NO_TRAVEL_ENTRIES,                          // 26
-   HINT_NUMBER_EXCEEDS_GOTO_LIST,                           // 27
-   TOO_MANY_PARAMETERS_GIVEN_TO_SETPRM,                     // 28
-   SPEECHPART_NOT_TRANSITIVE_OR_INTRANSITIVE_OR_UNKNOWN=99, // 99
-   ACTION_RETURNED_PHASE_CODE_BEYOND_END_OF_SWITCH,         // 100
+   SPECIAL_TRAVEL_500_GT_L_GT_300_EXCEEDS_GOTO_LIST,
+   VOCABULARY_TYPE_N_OVER_1000_NOT_BETWEEN_0_AND_3,
+   INTRANSITIVE_ACTION_VERB_EXCEEDS_GOTO_LIST,
+   TRANSITIVE_ACTION_VERB_EXCEEDS_GOTO_LIST,
+   CONDITIONAL_TRAVEL_ENTRY_WITH_NO_ALTERATION,
+   LOCATION_HAS_NO_TRAVEL_ENTRIES,
+   HINT_NUMBER_EXCEEDS_GOTO_LIST,
+   SPEECHPART_NOT_TRANSITIVE_OR_INTRANSITIVE_OR_UNKNOWN,
+   ACTION_RETURNED_PHASE_CODE_BEYOND_END_OF_SWITCH,
 };
 
 /* Alas, declaring this static confuses the coverage analyzer */