X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fstats%2Foneway.q;h=a400c1da6f0f08b54e23cbe98d47973be275e2e2;hb=5e89e0049bd55f22412f547d8d7bfefc69443e98;hp=9837d4ceb7ad6c5ec06c82014c8051829d034f37;hpb=8444d8d47de5e5f8d076b6f43f73c2c29494031e;p=pspp diff --git a/src/language/stats/oneway.q b/src/language/stats/oneway.q index 9837d4ceb7..a400c1da6f 100644 --- a/src/language/stats/oneway.q +++ b/src/language/stats/oneway.q @@ -19,31 +19,35 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include + #include -#include +#include #include #include -#include -#include -#include + #include +#include #include +#include +#include +#include #include -#include +#include #include -#include +#include +#include +#include #include +#include +#include #include -#include -#include -#include -#include -#include -#include -#include +#include #include #include #include +#include +#include +#include "sort-criteria.h" #include "gettext.h" #define _(msgid) gettext (msgid) @@ -91,7 +95,8 @@ static int ostensible_number_of_groups=-1; static is_missing_func *value_is_missing; -static bool run_oneway(const struct casefile *cf, void *_mode); +static bool run_oneway(const struct ccase *first, + const struct casefile *cf, void *_mode); /* Routines to show the output tables */ @@ -428,7 +433,8 @@ show_descriptives(void) const char *s = var_to_string(vars[v]); - struct group_statistics *const *gs_array = hsh_sort(gp->group_hash); + struct group_statistics *const *gs_array = + (struct group_statistics *const *) hsh_sort(gp->group_hash); int count = 0; tab_text (t, 0, row, TAB_LEFT | TAT_TITLE, s); @@ -888,13 +894,15 @@ precalc ( struct cmd_oneway *cmd UNUSED ) static bool -run_oneway(const struct casefile *cf, void *cmd_) +run_oneway(const struct ccase *first, const struct casefile *cf, void *cmd_) { struct casereader *r; struct ccase c; struct cmd_oneway *cmd = (struct cmd_oneway *) cmd_; + output_split_file_values (first); + global_group_hash = hsh_create(4, (hsh_compare_func *) compare_values, (hsh_hash_func *) hash_value,