X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fvalue.c;h=49555d9a4ea3b11ce15149ebdca388722af6dcb4;hb=7d3713dd11dc0f4c5ce9c62ea512cdea38b4e80d;hp=34e3fe58bb37bf40d80943d38fc4d5ecafdc76d2;hpb=a9acce47d67e0ab35ce1690e4f1b1ac0121c2d78;p=pspp-builds.git diff --git a/src/data/value.c b/src/data/value.c index 34e3fe58..49555d9a 100644 --- a/src/data/value.c +++ b/src/data/value.c @@ -63,6 +63,20 @@ hash_value (const union value *v, int width) : hsh_hash_bytes (v->s, MIN (MAX_SHORT_STRING, width))); } + +int +compare_ptr_values (const union value **v1, const union value **v2, int width) +{ + return compare_values (*v1, *v2, width); +} + +unsigned +hash_ptr_value (const union value **v, int width) +{ + return hash_value (*v, width); +} + + /* Copies SRC to DST, given that they both contain data of the given WIDTH. */ void