X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?p=YACASL2.git;a=blobdiff_plain;f=include%2Fhash.h;h=361e25123390333301ab6764929af34d81bff141;hp=caac5f181985fe66a757c3892f486720c9ecc5c9;hb=f9ad3a081e1777bb6d892af65d0e4090cb31bbfa;hpb=2b0ff8e75f11c5fb58e16e95d8195d6f1252c97c diff --git a/include/hash.h b/include/hash.h index caac5f1..361e251 100644 --- a/include/hash.h +++ b/include/hash.h @@ -1,29 +1,28 @@ #ifndef YACASL2_HASH_INCLUDED #define YACASL2_HASH_INCLUDED -#ifndef ARRAYSIZE -#define ARRAYSIZE(array) (sizeof(array)/sizeof(array[0])) -#endif - -/* ハッシュ共用体の型 */ +/** + * ハッシュ共用体の型 + */ typedef enum { CHARS = 0, INT = 1, } UTYPE; -/* ハッシュ共用体 */ +/** + * ハッシュ共用体 + */ typedef struct { - UTYPE type; + UTYPE type; /**<ハッシュ値の元データのデータ型 */ union { - char *s; - int i; - } val; + char *s; /**