]> mj.ucw.cz Git - libucw.git/commit
conf2: add basic type CT_LOOKUP that maps strings to integers
authorRobert Spalek <robert@ucw.cz>
Tue, 25 Apr 2006 20:25:27 +0000 (22:25 +0200)
committerRobert Spalek <robert@ucw.cz>
Tue, 25 Apr 2006 20:25:27 +0000 (22:25 +0200)
commit5b470214ced0b72f173d55504552a4be24819abe
tree0243643276a684c69fafea5ce01d5d222109342d
parentb1fbf9e3292eab73fa448dd6c937e70eb66dc4a7
conf2: add basic type CT_LOOKUP that maps strings to integers

Since I need to store both type==CT_LOOKUP and a pointer to the lookup
table, I moved the type out the union.  However, I have not blown up the
size of struct cf_item, because I have compressed class and type to 16
bits.
lib/conf2-test.c
lib/conf2.c
lib/conf2.h
lib/conf2.t