diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | awk.h | 3 | ||||
-rw-r--r-- | node.c | 1 |
3 files changed, 7 insertions, 3 deletions
@@ -1,3 +1,9 @@ +2017-01-26 Andrew J. Schorr <aschorr@telemetry-investments.com> + + * awk.h (enum block_id): Remove BLOCK_INVALID, since it serves no + useful purpose and seems to slow things down a bit. + * node.c (nextfree): Remove first invalid entry. + 2017-01-25 Andrew J. Schorr <aschorr@telemetry-investments.com> * awk.h (BLOCK): Remove typedef. BLOCK was used for 2 different @@ -1060,8 +1060,7 @@ struct block_header { }; enum block_id { - BLOCK_INVALID = 0, /* not legal */ - BLOCK_NODE, + BLOCK_NODE = 0, BLOCK_BUCKET, BLOCK_MAX /* count */ }; @@ -1002,7 +1002,6 @@ void init_btowc_cache() #define BLOCKCHUNK 100 struct block_header nextfree[BLOCK_MAX] = { - { NULL, 0}, /* invalid */ { NULL, sizeof(NODE) }, { NULL, sizeof(BUCKET) }, }; |