projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fri Feb 11 00:08:36 2005 Ben Pfaff <blp@gnu.org>
[pspp]
/
src
/
devind.c
diff --git
a/src/devind.c
b/src/devind.c
index 8432ea8e4d9f362dcedbfe3cdae129d3988f7468..96e3934b333becf6884a448a6f0b711ed6678181 100644
(file)
--- a/
src/devind.c
+++ b/
src/devind.c
@@
-88,7
+88,7
@@
#include <config.h>
#include "devind.h"
#include <config.h>
#include "devind.h"
-#include
<assert.h>
+#include
"error.h"
#include <errno.h>
#include <stdlib.h>
#include <ctype.h>
#include <errno.h>
#include <stdlib.h>
#include <ctype.h>
@@
-116,13
+116,13
@@
struct devind_driver_ext
};
static int
};
static int
-devind_open_global (struct outp_class *this
unused
)
+devind_open_global (struct outp_class *this
UNUSED
)
{
return 1;
}
static int
{
return 1;
}
static int
-devind_close_global (struct outp_class *this
unused
)
+devind_close_global (struct outp_class *this
UNUSED
)
{
return 1;
}
{
return 1;
}
@@
-220,7
+220,7
@@
devind_option (struct outp_driver *this, const char *key, const struct string *v
break;
case 1:
free (x->file.filename);
break;
case 1:
free (x->file.filename);
- x->file.filename = xstrdup (ds_
value
(val));
+ x->file.filename = xstrdup (ds_
c_str
(val));
break;
default:
assert (0);
break;
default:
assert (0);
@@
-260,7
+260,7
@@
devind_close_page (struct outp_driver *this)
static void output_tab_table (struct outp_driver *, struct tab_table *);
static void
static void output_tab_table (struct outp_driver *, struct tab_table *);
static void
-devind_submit (struct outp_driver *this, struct som_
table
*s)
+devind_submit (struct outp_driver *this, struct som_
entity
*s)
{
extern struct som_table_class tab_table_class;
struct devind_driver_ext *x = this->ext;
{
extern struct som_table_class tab_table_class;
struct devind_driver_ext *x = this->ext;
@@
-272,10
+272,10
@@
devind_submit (struct outp_driver *this, struct som_table *s)
return;
}
return;
}
- if (s->class == &tab_table_class)
+ assert (s->class == &tab_table_class);
+
+ if ( s->type == SOM_TABLE )
output_tab_table (this, s->ext);
output_tab_table (this, s->ext);
- else
- assert (0);
}
/* Write string S of length LEN to file F, escaping characters as
}
/* Write string S of length LEN to file F, escaping characters as
@@
-320,7
+320,7
@@
output_tab_table (struct outp_driver *this, struct tab_table *t)
if (t->nr == 1 && t->nc == 1)
{
fputs ("p:", x->file.file);
if (t->nr == 1 && t->nc == 1)
{
fputs ("p:", x->file.file);
- escape_string (x->file.file, ls_
value
(t->cc), ls_length (t->cc));
+ escape_string (x->file.file, ls_
c_str
(t->cc), ls_length (t->cc));
putc ('\n', x->file.file);
return;
putc ('\n', x->file.file);
return;
@@
-347,7
+347,7
@@
output_tab_table (struct outp_driver *this, struct tab_table *t)
if (!ls_empty_p (&t->title))
{
putc ('T', x->file.file);
if (!ls_empty_p (&t->title))
{
putc ('T', x->file.file);
- escape_string (x->file.file, ls_
value
(&t->title),
+ escape_string (x->file.file, ls_
c_str
(&t->title),
ls_length (&t->title));
putc ('\n', x->file.file);
}
ls_length (&t->title));
putc ('\n', x->file.file);
}
@@
-376,7
+376,7
@@
output_tab_table (struct outp_driver *this, struct tab_table *t)
cc = t->cc + c + r * t->nc;
if (*ct & TAB_JOIN)
{
cc = t->cc + c + r * t->nc;
if (*ct & TAB_JOIN)
{
- j = (struct tab_joined_cell *) ls_
value
(cc);
+ j = (struct tab_joined_cell *) ls_
c_str
(cc);
cc = &j->contents;
if (c != j->x1 || r != j->y1)
continue;
cc = &j->contents;
if (c != j->x1 || r != j->y1)
continue;
@@
-399,7
+399,7
@@
output_tab_table (struct outp_driver *this, struct tab_table *t)
else
putc ('c', x->file.file);
putc ('t', x->file.file);
else
putc ('c', x->file.file);
putc ('t', x->file.file);
- escape_string (x->file.file, ls_
value
(cc), ls_length (cc));
+ escape_string (x->file.file, ls_
c_str
(cc), ls_length (cc));
putc ('\n', x->file.file);
}
}
putc ('\n', x->file.file);
}
}
@@
-474,4
+474,7
@@
struct outp_class devind_class =
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
+
+ NULL,
+ NULL,
};
};