X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fvalue.h;h=299187285ad5843cd9fc9b549e053a9ebcfde769;hb=c8765cd7639e64d5dcd8f494aee23babb3b3f179;hp=9205bc1a031feec0bee4d6858ca5af3b2e3d0b2e;hpb=1a2c9f9cff3917a6aac038dd805c6c0380b79c6e;p=pspp diff --git a/src/data/value.h b/src/data/value.h index 9205bc1a03..299187285a 100644 --- a/src/data/value.h +++ b/src/data/value.h @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 1997-9, 2000, 2007, 2009, 2010 Free Software Foundation, Inc. + Copyright (C) 1997-9, 2000, 2007, 2009, 2010, 2012 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -17,6 +17,7 @@ #ifndef DATA_VALUE_H #define DATA_VALUE_H 1 +#include "libpspp/compiler.h" #include #include #include @@ -71,12 +72,14 @@ void value_copy_buf_rpad (union value *dst, int dst_width, void value_set_missing (union value *, int width); int value_compare_3way (const union value *, const union value *, int width); bool value_equal (const union value *, const union value *, int width); -unsigned int value_hash (const union value *, int width, unsigned int basis); +unsigned int value_hash (const union value *, int width, unsigned int basis) WARN_UNUSED_RESULT; bool value_is_resizable (const union value *, int old_width, int new_width); bool value_needs_resize (int old_width, int new_width); void value_resize (union value *, int old_width, int new_width); +bool value_is_spaces (const union value *, int width); + static inline void value_swap (union value *, union value *); struct pool;