projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
MATRIX command documentation is complete (but needs examples)
[pspp]
/
src
/
output
/
ascii.c
diff --git
a/src/output/ascii.c
b/src/output/ascii.c
index cd5fcec64b06ab8c704f4b2fa9b3157089e59450..a6bcb106d68effd619d93ebdb559cac0dd06f09e 100644
(file)
--- a/
src/output/ascii.c
+++ b/
src/output/ascii.c
@@
-370,9
+370,7
@@
ascii_create (struct file_handle *fh, enum settings_output_devices device_type,
{
enum { BOX_ASCII, BOX_UNICODE } box;
struct output_driver *d;
{
enum { BOX_ASCII, BOX_UNICODE } box;
struct output_driver *d;
- struct ascii_driver *a;
-
- a = xzalloc (sizeof *a);
+ struct ascii_driver *a = XZALLOC (struct ascii_driver);
d = &a->driver;
output_driver_init (&a->driver, &ascii_driver_class, fh_get_file_name (fh), device_type);
a->append = parse_boolean (opt (d, o, "append", "false"));
d = &a->driver;
output_driver_init (&a->driver, &ascii_driver_class, fh_get_file_name (fh), device_type);
a->append = parse_boolean (opt (d, o, "append", "false"));
@@
-645,7
+643,7
@@
ascii_submit (struct output_driver *driver, const struct output_item *item)
break;
case OUTPUT_ITEM_GROUP:
break;
case OUTPUT_ITEM_GROUP:
-
NOT_REACHED ()
;
+
break
;
case OUTPUT_ITEM_PAGE_BREAK:
break;
case OUTPUT_ITEM_PAGE_BREAK:
break;
@@
-1033,8
+1031,8
@@
ascii_test_write (struct output_driver *driver,
.underline = underline,
};
const struct pivot_value value = {
.underline = underline,
};
const struct pivot_value value = {
- .type = PIVOT_VALUE_TEXT,
.text = {
.text = {
+ .type = PIVOT_VALUE_TEXT,
.local = CONST_CAST (char *, s),
.c = CONST_CAST (char *, s),
.id = CONST_CAST (char *, s),
.local = CONST_CAST (char *, s),
.c = CONST_CAST (char *, s),
.id = CONST_CAST (char *, s),