X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Ffrequencies.q;h=0ca83a45b29e95f866aaedc8d521c81b234ced19;hb=1481286583f3c9a3b084a38d23367314923814b6;hp=d5e669e1652ceb9479596a44aa81a8d74362917b;hpb=4fdeb2145d081ff1b84e3f6c99f9d1c048c0d64a;p=pspp diff --git a/src/frequencies.q b/src/frequencies.q index d5e669e165..0ca83a45b2 100644 --- a/src/frequencies.q +++ b/src/frequencies.q @@ -51,6 +51,11 @@ #include "vfm.h" #include "settings.h" #include "chart.h" + +#include "gettext.h" +#define _(msgid) gettext (msgid) +#define N_(msgid) msgid + /* (headers) */ #include "debug-print.h" @@ -692,7 +697,7 @@ not_missing (const void *f_, void *v_) const struct freq *f = f_; struct variable *v = v_; - return !is_missing (&f->v, v); + return !mv_is_value_missing (&v->miss, &f->v); } /* Summarizes the frequency table data for variable V. */ @@ -702,7 +707,7 @@ postprocess_freq_tab (struct variable *v) hsh_compare_func *compare; struct freq_tab *ft; size_t count; - void **data; + void *const *data; struct freq *freqs, *f; size_t i; @@ -1559,7 +1564,7 @@ freq_tab_to_hist(const struct freq_tab *ft, const struct variable *var) /* Find out the extremes of the x value */ for ( frq = hsh_first(fh, &hi); frq != 0; frq = hsh_next(fh, &hi) ) { - if ( is_missing(&frq->v, var)) + if ( mv_is_value_missing(&var->miss, &frq->v)) continue; if ( frq->v.f < x_min ) x_min = frq->v.f ;