X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fdictionary.c;h=ebe6a5e5d100b829f22e5943c12c0027755ebb59;hb=3a61659a8fc11c51ad5af02b20f5613dcde50382;hp=ac9c7d63d3d483c00203fa000099c4f567a13f90;hpb=244ade48f9c233532cc535d3233fdef53bf9266b;p=pspp-builds.git diff --git a/src/data/dictionary.c b/src/data/dictionary.c index ac9c7d63..ebe6a5e5 100644 --- a/src/data/dictionary.c +++ b/src/data/dictionary.c @@ -287,14 +287,14 @@ dict_create_var (struct dictionary *d, const char *name, int width) mv_init (&v->miss, width); if (v->type == NUMERIC) { - v->print = f8_2; + v->print = fmt_for_output (FMT_F, 8, 2); v->alignment = ALIGN_RIGHT; v->display_width = 8; v->measure = MEASURE_SCALE; } else { - v->print = make_output_format (FMT_A, v->width, 0); + v->print = fmt_for_output (FMT_A, v->width, 0); v->alignment = ALIGN_LEFT; v->display_width = 8; v->measure = MEASURE_NOMINAL; @@ -424,7 +424,7 @@ dict_contains_var (const struct dictionary *d, const struct variable *v) /* Compares two double pointers to variables, which should point to elements of a struct dictionary's `var' member array. */ static int -compare_var_ptrs (const void *a_, const void *b_, void *aux UNUSED) +compare_var_ptrs (const void *a_, const void *b_, const void *aux UNUSED) { struct variable *const *a = a_; struct variable *const *b = b_; @@ -1164,14 +1164,14 @@ dict_clear_vectors (struct dictionary *d) /* Compares two strings. */ static int -compare_strings (const void *a, const void *b, void *aux UNUSED) +compare_strings (const void *a, const void *b, const void *aux UNUSED) { return strcmp (a, b); } /* Hashes a string. */ static unsigned -hash_string (const void *s, void *aux UNUSED) +hash_string (const void *s, const void *aux UNUSED) { return hsh_hash_string (s); }