X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fval.h;h=96523de28bf5abdab08ddaf9bbdecdc9c0269ed4;hb=dbb0228a4c98cbf4756ba651fda158c1565b3b55;hp=3b42a83bb79476b9749fa4a637962b95e2372052;hpb=ccf2f45c091ce1555b4e2a36186c501675c18a59;p=pspp diff --git a/src/val.h b/src/val.h index 3b42a83bb7..96523de28b 100644 --- a/src/val.h +++ b/src/val.h @@ -14,12 +14,14 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - 02111-1307, USA. */ + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301, USA. */ #if !val_h #define val_h 1 +#include +#include "config.h" /* Values. */ @@ -34,8 +36,8 @@ then short string missing values can be truncated in system files because there's only room for as many characters as can fit in a flt64. */ -#if MAX_SHORT_STRING > 8 -#error MAX_SHORT_STRING must be less than 8. +#if MAX_SHORT_STRING > SHORT_NAME_LEN +#error MAX_SHORT_STRING must be less than or equal to SHORT_NAME_LEN. #endif /* Special values. */ @@ -68,5 +70,8 @@ union value int compare_values (const union value *a, const union value *b, int width); +unsigned hash_value(const union value *v, int width); + + #endif /* !val_h */