X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fflexifile.c;h=339764e09520bc1f76f5cb91f256d05ce6279241;hb=e6ae2a61e5356694c09f48da74407f8054a04e8d;hp=dacb93dc442567b34ec4bf1fbf7f4b98b6ae1913;hpb=ed6c36b513f4479472e91b441d3d8c2e63ebba7d;p=pspp diff --git a/src/ui/flexifile.c b/src/ui/flexifile.c index dacb93dc44..339764e095 100644 --- a/src/ui/flexifile.c +++ b/src/ui/flexifile.c @@ -1,6 +1,6 @@ /* PSPP - computes sample statistics. - Copyright (C) 2006 Free Software Foundation, Inc. + Copyright (C) 2006, 2007 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -315,12 +315,15 @@ impl_get_case(const struct flexifile *ff, unsigned long casenum, } #if DEBUGGING -static void +#include + +static void dumpcasedata(struct ccase *c) { + size_t value_cnt = case_get_value_cnt (c); int i; - for ( i = 0 ; i < c->case_data->value_cnt * MAX_SHORT_STRING; ++i ) - putchar(c->case_data->values->s[i]); + for ( i = 0 ; i < value_cnt * MAX_SHORT_STRING; ++i ) + putchar (case_str (c, 0)[i]); putchar('\n'); } #endif