#ifndef _ht_h #define _ht_h #define HT_SIZE 128 typedef struct { char *k; int v; } HtEntry; typedef struct { int len; HtEntry b[HT_SIZE]; } Ht; typedef Ht Env; Ht ht_new(); void ht_put(Ht *h, char *k, int v); int ht_get(Ht *h, char *k, int *v); #endif