projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed mistakes
[pspp-builds.git]
/
src
/
output
/
output.c
diff --git
a/src/output/output.c
b/src/output/output.c
index d590a38e14d2954fd4a66a15acaec6fbb67aea11..19761e7532079831b9a3fdd8b591e1d95e37acdb 100644
(file)
--- a/
src/output/output.c
+++ b/
src/output/output.c
@@
-286,7
+286,7
@@
outp_read_devices (void)
config_path),
NULL);
config_path),
NULL);
- ds_init (&line
, 128
);
+ ds_init (&line);
if (init_fn == NULL)
{
if (init_fn == NULL)
{
@@
-767,7
+767,7
@@
configure_driver_line (struct string *line)
for (i = 0; i < 4; i++)
{
struct string *token = &tokens[i];
for (i = 0; i < 4; i++)
{
struct string *token = &tokens[i];
- ds_init (token
, 0
);
+ ds_init (token);
ds_separate (line, token, i < 3 ? ":" : "", &save_idx);
ds_trim_spaces (token);
}
ds_separate (line, token, i < 3 ? ":" : "", &save_idx);
ds_trim_spaces (token);
}
@@
-1032,7
+1032,7
@@
outp_get_paper_size (char *size, int *h, int *v)
config_path),
NULL);
config_path),
NULL);
- ds_init (&line
, 128
);
+ ds_init (&line);
if (pprsz_fn == NULL)
{
if (pprsz_fn == NULL)
{
@@
-1162,16
+1162,14
@@
outp_close_page (struct outp_driver *d)
}
}
}
}
-/* Ejects the pa
per on device D, if a page is open and is not
-
blank.
*/
+/* Ejects the pa
ge on device D, if a page is open and non-blank,
+
and opens a new page.
*/
void
outp_eject_page (struct outp_driver *d)
{
if (d->page_open && d->cp_y != 0)
void
outp_eject_page (struct outp_driver *d)
{
if (d->page_open && d->cp_y != 0)
- {
- outp_close_page (d);
- outp_open_page (d);
- }
+ outp_close_page (d);
+ outp_open_page (d);
}
/* Returns the width of string S, in device units, when output on
}
/* Returns the width of string S, in device units, when output on