data_out function to dynamically allocate return value.
authorJohn Darrington <john@darrington.wattle.id.au>
Mon, 6 Jul 2009 11:51:34 +0000 (19:51 +0800)
committerJohn Darrington <john@darrington.wattle.id.au>
Mon, 6 Jul 2009 11:51:34 +0000 (19:51 +0800)
commitf15c854d8500105766b2f5666bb62b983ff24f88
treed726769eac5760ce79fdb5a7892141b67ecf44a4
parent9254d30d06a0565c89daccedd93a94c4c6086004
data_out function to dynamically allocate return value.

Preparation for i18n of values.  Instead of asking the
caller to prepare the buffer for output, data_out now
dynamically allocates the output value, and expects the
caller to free it.  This is necessary since for utf8
strings, the caller cannot reasonably know the length of
the required output buffer.  It also simplifies some uses
of data_out.
14 files changed:
perl-module/PSPP.xs
src/data/data-out.c
src/data/data-out.h
src/data/variable.c
src/language/data-io/list.q
src/language/dictionary/split-file.c
src/language/expressions/operations.def
src/language/stats/crosstabs.q
src/output/table.c
src/ui/gui/helper.c
src/ui/gui/psppire-data-editor.c
src/ui/gui/psppire-data-store.c
src/ui/gui/text-data-import-dialog.c
src/ui/syntax-gen.c