X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Flanguage%2Fdata-io%2Fsave.c;h=c34d446225bd250a76687ef736aeed697d7027be;hb=46b86121d8c8de8496294a77ba9d90e46891e896;hp=e94c020b168d3a59473b396c0c64aa405bcf1877;hpb=354747add9edd5203365db70f7ffa282621a0a08;p=pspp-builds.git diff --git a/src/language/data-io/save.c b/src/language/data-io/save.c index e94c020b..c34d4462 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; }