X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flibpspp%2Fhash.h;h=1610a47d79ab5cad7738468aabf878bd4fa518a0;hb=c708736bdd0fea4b79f3ee4a10e00c3abb95d9e3;hp=8ba77a9845cf73a8478b26d7bc5831197403a641;hpb=733a7755a474053cbf3221e1f182012f8ed51720;p=pspp-builds.git diff --git a/src/libpspp/hash.h b/src/libpspp/hash.h index 8ba77a98..1610a47d 100644 --- a/src/libpspp/hash.h +++ b/src/libpspp/hash.h @@ -21,6 +21,7 @@ #define hash_h 1 #include +#include typedef int hsh_compare_func (const void *, const void *, void *aux); typedef unsigned hsh_hash_func (const void *, void *aux); @@ -55,7 +56,7 @@ void **hsh_probe (struct hsh_table *, const void *); void *hsh_insert (struct hsh_table *, void *); void *hsh_replace (struct hsh_table *, void *); void *hsh_find (struct hsh_table *, const void *); -int hsh_delete (struct hsh_table *, const void *); +bool hsh_delete (struct hsh_table *, const void *); /* Iteration. */ void *hsh_first (struct hsh_table *, struct hsh_iterator *);