1 /* $Id: uint8table_rh.h 218147 2019-01-16 21:28:41Z twu $ */ 2 #ifndef UINT8TABLE_RH_INCLUDED 3 #define UINT8TABLE_RH_INCLUDED 4 #ifdef HAVE_CONFIG_H 5 #include <config.h> 6 #endif 7 8 #include "types.h" /* For HAVE_64_BIT and UINT8 */ 9 10 #ifdef HAVE_64_BIT 11 typedef struct Uint8table_T *Uint8table_T; 12 #endif 13 14 #include "bool.h" 15 16 #ifdef HAVE_64_BIT 17 #define T Uint8table_T 18 19 extern T 20 Uint8table_new (int n, bool save_contents_p); 21 22 extern int 23 Uint8table_length (T this); 24 25 extern void * 26 Uint8table_get (T this, const UINT8 key); 27 28 extern void 29 Uint8table_put (T this, UINT8 key, void *contents); 30 31 extern void 32 Uint8table_put_and_save (T this, UINT8 key, void *contents); 33 34 extern void ** 35 Uint8table_saved_values (int *nvalues, T this); 36 37 extern UINT8 * 38 Uint8table_keys (T this, bool sortp); 39 40 extern void 41 Uint8table_free (T *old); 42 43 #undef T 44 45 #endif /*HAVE_64_BIT */ 46 47 #endif 48 49 50