projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Plugged some small memory leaks
[pspp]
/
src
/
output
/
postscript.c
diff --git
a/src/output/postscript.c
b/src/output/postscript.c
index bd7a088a07e3d14a7e473072dfbdafd609e9dd1a..614fb5055bc3104a70d9e289536bac1980be0197 100644
(file)
--- a/
src/output/postscript.c
+++ b/
src/output/postscript.c
@@
-109,8
+109,7
@@
struct ps_driver_ext
struct font *fonts[OUTP_FONT_CNT];
int last_font; /* Index of last font set with setfont. */
struct font *fonts[OUTP_FONT_CNT];
int last_font; /* Index of last font set with setfont. */
- }
-ps_driver_ext;
+ };
/* Transform logical y-ordinate Y into a page ordinate. */
#define YT(Y) (this->length - (Y))
/* Transform logical y-ordinate Y into a page ordinate. */
#define YT(Y) (this->length - (Y))
@@
-271,7
+270,7
@@
enum
};
/* All the options that the PostScript driver supports. */
};
/* All the options that the PostScript driver supports. */
-static struct outp_option option_tab[] =
+static
const
struct outp_option option_tab[] =
{
{"output-file", output_file_arg,0},
{"paper-size", paper_size_arg, 0},
{
{"output-file", output_file_arg,0},
{"paper-size", paper_size_arg, 0},
@@
-1427,7
+1426,7
@@
reencode_font (struct outp_driver *this, struct font *font)
}
/* PostScript driver class. */
}
/* PostScript driver class. */
-struct outp_class postscript_class =
+
const
struct outp_class postscript_class =
{
"postscript",
0,
{
"postscript",
0,