#include <config.h>
#include "devind.h"
-#include <assert.h>
+#include "error.h"
#include <errno.h>
#include <stdlib.h>
#include <ctype.h>
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);
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;
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);
}
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;
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);
}
}