X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fvalue.h;h=97c24050ef6264712e05c2dd8b98ea069a0ccd89;hb=90f346cc015bb89d28c93e35ba2e23d6671e14f2;hp=cb66cb0836c7b00eeb7e992199650c192b15f780;hpb=a9acce47d67e0ab35ce1690e4f1b1ac0121c2d78;p=pspp diff --git a/src/data/value.h b/src/data/value.h index cb66cb0836..97c24050ef 100644 --- a/src/data/value.h +++ b/src/data/value.h @@ -19,6 +19,7 @@ #include #include +#include #include "minmax.h" /* "Short" strings, which are generally those no more than 8 @@ -38,14 +39,18 @@ union value union value *value_dup (const union value *, int width); union value *value_create (int width); -int compare_values (const union value *, const union value *, int width); -unsigned hash_value (const union value *, int width); +int compare_values (const void *, const void *, const void *var); +unsigned hash_value (const void *, const void *var); + +int compare_values_short (const void *, const void *, const void *var); +unsigned hash_value_short (const void *, const void *var); static inline size_t value_cnt_from_width (int width); void value_copy (union value *, const union value *, int width); void value_set_missing (union value *, int width); bool value_is_resizable (const union value *, int old_width, int new_width); void value_resize (union value *, int old_width, int new_width); +int value_compare_3way (const union value *, const union value *, int width); /* Number of "union value"s required for a variable of the given WIDTH. */