X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Fpercentiles.c;h=b43fed461612d7a6f0e63ab8ddbc0fad7f549422;hb=f23ae4972e2267960b392a6e0702154297822b75;hp=a55cfaf2bf2fdd4b165907451ab569a059a737e4;hpb=96994a54e60e9c95b8bba54c2281acf7059b1203;p=pspp diff --git a/src/math/percentiles.c b/src/math/percentiles.c index a55cfaf2bf..b43fed4616 100644 --- a/src/math/percentiles.c +++ b/src/math/percentiles.c @@ -27,21 +27,6 @@ #include "gl/xalloc.h" -#include "gettext.h" -#define _(msgid) gettext (msgid) -#define N_(msgid) msgid - -const char *const ptile_alg_desc[] = { - "", - N_("HAverage"), - N_("Weighted Average"), - N_("Rounded"), - N_("Empirical"), - N_("Empirical with averaging") -}; - - - double percentile_calculate (const struct percentile *ptl, enum pc_alg alg) { @@ -163,7 +148,7 @@ destroy (struct statistic *stat) struct percentile * percentile_create (double p, double W) { - struct percentile *ptl = xzalloc (sizeof (*ptl)); + struct percentile *ptl = XZALLOC (struct percentile); struct order_stats *os = &ptl->parent; struct statistic *stat = &os->parent;