X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fvalue.h;h=8e624a8464b73163e9638c88c26dff5fa6a444cd;hb=a49b940e58f148bf111c647d9b4822025636ff80;hp=4d5177460858926006ac7b5dd1d47ebb4bb0e676;hpb=dc331e08118a1c299a41069f6f51183176b27621;p=pspp diff --git a/src/data/value.h b/src/data/value.h index 4d51774608..8e624a8464 100644 --- a/src/data/value.h +++ b/src/data/value.h @@ -39,10 +39,6 @@ static inline bool value_needs_init (int width); static inline bool value_try_init (union value *, int width); static inline void value_destroy (union value *, int width); -static inline double value_num (const union value *); -static inline const uint8_t *value_str (const union value *, int width); -static inline uint8_t *value_str_rw (union value *, int width); - static inline void value_copy (union value *, const union value *, int width); void value_copy_rpad (union value *, int dst_width, const union value *, int src_width, @@ -133,41 +129,6 @@ value_destroy (union value *v, int width) free (v->s); } -/* Returns the numeric value in V, which must have width 0. */ -static inline double -value_num (const union value *v) -{ - return v->f; -} - -/* Returns the string value in V, which must have width WIDTH. - - The returned value is not null-terminated. - - It is important that WIDTH be the actual value that was passed - to value_init. Passing, e.g., a smaller value because only - that number of bytes will be accessed will not always work. */ -static inline const uint8_t * -value_str (const union value *v, int width) -{ - assert (width > 0); - return v->s; -} - -/* Returns the string value in V, which must have width WIDTH. - - The returned value is not null-terminated. - - It is important that WIDTH be the actual value that was passed - to value_init. Passing, e.g., a smaller value because only - that number of bytes will be accessed will not always work. */ -static inline uint8_t * -value_str_rw (union value *v, int width) -{ - assert (width > 0); - return v->s; -} - /* Copies SRC to DST, given that they both contain data of the given WIDTH. */ static inline void