X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fdata-io%2Fdata-writer.h;h=573f4a0dd13312336c289ea503698218760f7f7d;hb=510cc9dd9baf3108ba55cfb7893384517c9930b4;hp=0eba2ab25f817eb0425a59d691bb8abbfe20b41d;hpb=dcf9b154cbcaa35c3d8459a201b77eec8bcb30bd;p=pspp diff --git a/src/language/data-io/data-writer.h b/src/language/data-io/data-writer.h index 0eba2ab25f..573f4a0dd1 100644 --- a/src/language/data-io/data-writer.h +++ b/src/language/data-io/data-writer.h @@ -1,21 +1,18 @@ -/* PSPP - computes sample statistics. - Copyright (C) 1997-9, 2000 Free Software Foundation, Inc. - Written by Ben Pfaff . +/* PSPP - a program for statistical analysis. + Copyright (C) 1997-9, 2000, 2011, 2012 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 the Free Software Foundation; either version 2 of the - License, or (at your option) any later version. + 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 + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. - This program is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - 02110-1301, USA. */ + along with this program. If not, see . */ #ifndef DFM_WRITE_H #define DFM_WRITE_H @@ -26,9 +23,12 @@ #include struct file_handle; -struct dfm_writer *dfm_open_writer (struct file_handle *); +struct dfm_writer *dfm_open_writer (struct file_handle *, + const char *encoding); bool dfm_close_writer (struct dfm_writer *); bool dfm_write_error (const struct dfm_writer *); -int dfm_put_record (struct dfm_writer *, const char *rec, size_t len); +bool dfm_put_record (struct dfm_writer *, const char *rec, size_t len); +bool dfm_put_record_utf8 (struct dfm_writer *, const char *rec, size_t len); +const char *dfm_writer_get_encoding (const struct dfm_writer *); #endif /* data-writer.h */