Initial version
[pspp] / src / case.h
index af5fc049c2ef68605328c14c1e4efcb3613c47c1..541a3e2ebdc9c2c677a67fdfcc301e2e4f9f61ce 100644 (file)
@@ -21,7 +21,7 @@
 #define HEADER_CASE
 
 #include <stddef.h>
-#include "bool.h"
+#include <stdbool.h>
 #include "val.h"
 
 /* Opaque structure that represents a case.  Use accessor
@@ -73,7 +73,7 @@ CASE_INLINE void case_from_values (struct ccase *,
 
 CASE_INLINE const union value *case_data (const struct ccase *, size_t idx);
 CASE_INLINE double case_num (const struct ccase *, size_t idx);
-CASE_INLINE const char *case_str (const struct ccase *, size_t idx);
+CASE_INLINE const unsigned char *case_str (const struct ccase *, size_t idx);
 
 CASE_INLINE union value *case_data_rw (struct ccase *, size_t idx);
 
@@ -170,7 +170,7 @@ case_num (const struct ccase *c, size_t idx)
   return c->case_data->values[idx].f;
 }
 
-static inline const char *
+static inline const unsigned char *
 case_str (const struct ccase *c, size_t idx)
 {
   return c->case_data->values[idx].s;