Made all the tests respect the PSPP_TEST_NO_CLEANUP environment variable.
[pspp-builds.git] / src / libpspp / hash.c
index bc5933a2b5813521dbe51e9cda5eb117590fcc72..627751e16adcdd8d9dacee018a44741de2c17903 100644 (file)
 #include "message.h"
 #include <assert.h>
 #include <ctype.h>
+#include <gsl/gsl_math.h>
 #include <limits.h>
 #include <stdbool.h>
 #include <stdlib.h>
 #include "array.h"
-#include "alloc.h"
 #include "compiler.h"
 #include "misc.h"
 #include "str.h"
 #include "pool.h"
 
+#include "xalloc.h"
 
 #include "gettext.h"
 #define _(msgid) gettext (msgid)
@@ -133,7 +134,7 @@ hsh_hash_int (int i)
 unsigned
 hsh_hash_double (double d)
 {
-  if (!isnan (d))
+  if (!gsl_isnan (d))
     return hsh_hash_bytes (&d, sizeof d);
   else
     return 0;
@@ -449,7 +450,7 @@ hsh_sort_copy (struct hsh_table *h)
    to a pointer to that entry; otherwise returns a pointer to a
    NULL entry which *must* be used to insert a new entry having
    the same key data.  */
-inline void **
+void **
 hsh_probe (struct hsh_table *h, const void *target)
 {
   unsigned i;