00001
00002
00003 #ifdef NPS_VOC_T
00004 #ifndef NPS_VOC_HTAB32
00005 #error "NPS_VOC is already defined"
00006 #endif
00007 #else
00008 #define NPS_VOC_HTAB32 1
00009 #define NPS_VOC_T nps_HTAB
00010 #include <stdlib.h>
00011 #include "htab32.c"
00012
00013 #define NPS_VOC_NEW(size) nps_htab_new((size))
00014 #define NPS_VOC_DEL(h) nps_htab_del((h))
00015 #define NPS_VOC_SET(h,k,v) nps_htab_set((h),NULL,(k),(v))
00016 #define NPS_VOC_GET(h,k) nps_htab_get((h),(k))
00017 #define NPS_VOC_SIZE(h) nps_htab_len((h))
00018
00019 #define NPS_VOC_SAVE(h,f) nps_voc_htab32_save((h),(f))
00020 #define NPS_VOC_LOAD(h,f) nps_voc_htab32_load((h),(f))
00021 #define NPS_VOC_INVERT(h) nps_voc_htab32_invert((h))
00022
00023
00024 #endif
00025
00026