X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fdata-io%2Fsave.c;h=c34d446225bd250a76687ef736aeed697d7027be;hb=refs%2Fheads%2Fpivot-table;hp=e94c020b168d3a59473b396c0c64aa405bcf1877;hpb=2165f59ab9eee5272b4037e45477811627cae078;p=pspp diff --git a/src/language/data-io/save.c b/src/language/data-io/save.c index e94c020b16..c34d446225 100644 --- a/src/language/data-io/save.c +++ b/src/language/data-io/save.c @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 1997-9, 2000, 2006, 2007, 2008 Free Software Foundation, Inc. + Copyright (C) 1997-9, 2000, 2006, 2007, 2008, 2009 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 published by @@ -326,14 +326,12 @@ parse_write_command (struct lexer *lexer, struct dataset *ds, return NULL; } -/* Writes case C to the system file specified on XSAVE or XEXPORT. */ +/* Writes case *C to the system file specified on XSAVE or XEXPORT. */ static int -output_trns_proc (void *trns_, struct ccase *c, casenumber case_num UNUSED) +output_trns_proc (void *trns_, struct ccase **c, casenumber case_num UNUSED) { struct output_trns *t = trns_; - struct ccase tmp; - case_clone (&tmp, c); - casewriter_write (t->writer, &tmp); + casewriter_write (t->writer, case_ref (*c)); return TRNS_CONTINUE; }