Memory leak patrol.
[pspp-builds.git] / src / output / ChangeLog
1 Sun Oct  8 07:09:34 WST 2006 John Darrington <john@darrington.wattle.id.au>
2
3         * table.c (tab_destroy): Freed title, since this is not allocated
4         from the pool.
5
6         * html.c (html_open_driver): Freed chart_file_name.
7
8 Wed Jul 12 21:03:37 2006  Ben Pfaff  <blp@gnu.org>
9
10         * table.c (tab_natural_width): Get rid of warning on empty column,
11         which tended to just trigger false positives because we handle
12         joined cells so badly.  We need a real fix, and the warning is not
13         helpful.
14
15         * table.c (tab_offset): [DEBUGGING] Let row, col arguments be as
16         big as row or column count.
17         
18 Wed Jul 12 20:58:19 2006  Ben Pfaff  <blp@gnu.org>
19
20         * output.c (outp_drivers): [DEBUGGING] Delete unused declaration.
21
22 Sat Jul  1 17:20:03 2006  Ben Pfaff  <blp@gnu.org>
23
24         Make the destination for charts configurable in the HTML driver.
25         Fixes bug #15723, "HTML driver creates .png files insecurely".
26
27         * htmlP.h: (struct html_driver_ext) Add chart_file_name, chart_cnt
28         members.
29         
30         * html.c: (html_open_driver) Initialize new members.
31         (option_tab var) Add "chart-files" option.
32         (handle_option) Parse "chart-files" option.
33         (html_initialise_chart) Name file based on "chart-files" option.
34         
35 Sat Jul  1 22:41:26 2006  Ben Pfaff  <blp@gnu.org>
36
37         Fix bug #16644: Output Driver crashes in DISPLAY VARIABLES.
38         
39         * table.c (tab_create): Don't allocate t->hrh, t->wrv yet, because
40         the table size might change before we're ready to use them.
41         (tabi_table) Allocate them here instead.
42
43 Fri Jun  9 14:42:35 2006  Ben Pfaff  <blp@gnu.org>
44
45         Reform string library.
46         
47         * output.c (init_default_drivers): Update call to
48         configure_driver() to new interface.
49         (get_option_token) Use a modifiable substring in interface instead
50         of a separate position parameter.  Use ss_get_*() functions.
51         (configure_driver) Take and work with substrings.
52         (configure_driver_line) Update call to configure_driver() to new
53         interface.
54         (outp_get_paper_size) Use substrings.
55
56         * output.h (struct outp_class): Change open_driver interface to
57         use substring.  Update all implementations.
58
59         * table.c (text_format): Change to return substring.
60         (tab_title) Use xvasprintf().
61
62         * table.h (struct tab_table): Change title member to char *.
63
64 Thu May 25 18:02:53 WST 2006 John Darrington <john@darrington.wattle.id.au>
65
66         * table.c: Removed redundant extern declaration.
67
68 Sun May 14 14:03:56 2006  Ben Pfaff  <blp@gnu.org>
69
70         * output.c (outp_eject_page): Always make sure that a page is open
71         upon return.
72
73 Sun May 14 13:54:58 2006  Ben Pfaff  <blp@gnu.org>
74
75         * postscript.c: (ps_chart_finalise) Fix format of %%EndDocument
76         comment, which screwed up gv's idea of where one page ended and
77         the next one began.  Thanks to John Darrington for pointing out
78         the bug.
79
80 Sun Apr 16 11:48:25 2006  Ben Pfaff  <blp@gnu.org>
81
82         Start reforming error message support.  In this phase, we get rid
83         of "installation errors" and change all uses of msg() in the
84         output drivers to uses of error() or error_at_line().
85
86         * Removed all inclusion of <libpspp/message.h> in this directory.
87
88         * output.c: Changed all uses of msg() to error() or
89         error_at_line().
90         (outp_read_devices) Maintain line number in int variable instead
91         of "struct file_locator".
92         (tokener) Renamed get_option_token(), rewritten, changed interface.
93         (outp_parse_options) Change `options' argument to type const
94         struct string *.  Rewritten.
95         (configure_driver) Passes a struct string * to ->open_driver()
96         instead of char *.
97         (outp_get_paper_size) Maintain line number in int variable instead
98         of "struct file_locator".  Removed stupid cache.
99
100         * output.h: (struct outp_class) Change `open_driver' function to
101         take const struct string * instead of const char *.  Updated all
102         implementations.
103
104 Mon Apr  3 11:14:38 2006  Ben Pfaff  <blp@gnu.org>
105
106         Rewrite a lot of the output drivers and infrastructure.
107         Started transitioning from msg() to error().
108         Vertical rules in tables now default to putting a small gap
109         between columns, instead of no gap or rule at all.
110         See NEWS for user-visible changes.
111
112         * automake.mk: (output_sources) Add afm.c, afm.h.  Remove font.h,
113         groff-font.c.
114         
115         * afm.c, afm.h: New files.
116
117         * font.h: Removed.
118
119         * groff-font.c: Removed.
120         
121         * ascii.c: Rewrote and simplified.
122
123         * html.c: Ditto.
124
125         * postscript.c: Ditto.
126
127         * output.c: (struct outp_driver_class_list) Move here from
128         output.h.  Remove ref_count member and all references to it.
129         (outp_init) Remove epsf_class references.
130         (init_default_drivers) Use new configure_driver_line() interface.
131         (parse_options) Renamed outp_parse_options(), changed interface.
132         (configure_driver) Changed args from `const char *'s to `const
133         struct string *'s.  Rewrote.  Don't call ->open_global().  Now
134         just calls ->open_driver() instead of ->preopen_driver(),
135         ->option(), ->postopen_driver().
136         (configure_driver_line) Adapt to new configure_driver() interface.
137         (destroy_driver) Don't call ->close_global().
138         (option_cmp) Removed.
139         (outp_match_keyword) Rewrite for simplicity.
140         (outp_open_page) New function.  Changed all equivalent
141         functionality to use this function instead.
142         (outp_close_page) Ditto.
143         (outp_eject_page) Use above functions.
144         (outp_string_width) Add font argument and change all callers to
145         pass one.
146
147         * output.h: (struct rect) Removed.
148         (OUTP_L_*) Name this enumeration "enum outp_line_style".
149         (OUTP_L_SPECIAL) Removed.
150         (struct color) Removed.
151         (OUTP_F_*) Removed.
152         (struct outp_styles) Removed.
153         (OUTP_T_*) Removed.
154         (enum outp_justification) New, containing OUTP_RIGHT, OUTP_LEFT,
155         OUTP_CENTER.
156         (enum outp_font) New, containing OUTP_FIXED, OUTP_PROPORTIONAL,
157         and OUTP_EMPHASIS.
158         (struct outp_text) Replaced `options' member by `font' and
159         `justification'.  Renamed `s' to `string'.  Removed `w', `l'.
160         Updated all usages.
161         (struct outp_class) Removed `magic', `open_global',
162         `close_global', `font_sizes', `preopen_driver', `option',
163         `postopen_driver', `line_horz', `line_vert', `line_intersection',
164         `box', `polyline_begin', `polyline_point', `polyline_end',
165         `text_set_font_by_name', `text_set_font_by_position',
166         `text_set_font_family', `text_get_font_name',
167         `text_get_font_family', `text_set_Size', and `text_get_size'
168         members.  Added `open_driver', `close_driver', `line' members.
169         Changed interface of `open_page', `close_page', `text_metrics',
170         `text_draw' members.  Updated all usages.
171         (struct outp_driver) Rearranged members.  Removed `driver_open',
172         `res', `horiz', `vert', `horiz_line_spacing', `vert_line_spacing'
173         members.
174         (struct outp_option_info) Removed.
175         (struct outp_driver_class_list) Removed.
176         (outp_match_keyword) Changed interface.
177
178         * table.c: (tab_create) Now ignores reallocable argument: tables
179         can always be reallocated.  Use pool_create_container().
180         Initialize vertical rules to UCHAR_MAX.
181         (options_to_font) New function.
182         (tab_destroy) Remove futile assignment.
183         (tab_realloc) Initialize vertical rules to UCHAR_MAX.
184         (text_format) Use xvasprintf() instead of local_alloc().
185         (tab_title) Always format the argument, and drop the option
186         argument.  Change all callers to agree.
187         (tab_natural_width) Adapt to new ->text_metrics() interface.
188         (tab_natural_height) Ditto.
189         (tab_joint_text) Clear rules within the joined cell.  Now
190         necessary because of the default to put spacing between cells.
191         (tab_output_text) Use xvasprintf() instead of local_alloc().
192         Remove special cases for fixed-width font.
193         (rule_to_spacing_type) New function.
194         (tabi_driver) Calculate rule widths manually now that we don't
195         have ->trh or ->trv.  Implement new default for vertical rules.
196         (render_rows) New function.
197         (tabi_render) Rewrite in terms of render_rows() for clarity.
198         (translate_justification) New function.
199         (rule_to_draw_type) New function.
200         (get_hrule) New function.
201         (get_vrule) New function.
202         (render_horz_rule) New function.
203         (render_vert_rule) New function.
204         (render_rule_intersection) New function.
205         (strip_width) New function.
206         (strip_height) New function.
207         (render_cell) New function.
208         (render_strip) Rewrite in terms of new functions.
209
210         * table.h: (TAB_EMPH) New flag.
211         (TAB_FIX) New flag.
212         (TAL_3) Removed.
213         (TAL_GAP) Added.
214         (TAL_SPACING) Removed.
215         (struct tab_table) Members `trh', `hrv', `hr_tot', `vr_tot'
216         removed.
217         [DEBUGGING] (reallocable) Removed.
218         (TAT_FIX) Removed.  All references replaced by TAB_FIX.
219         (TAT_TITLE) Now implies TAB_EMPH.
220                 
221 Thu Mar 30 16:26:56 2006  Ben Pfaff  <blp@gnu.org>
222
223         * output.c: (colon_tokenize) Removed.
224         (configure_driver_line) Rewrote to use ds_separate().  Fixed leak.
225
226 Tue Mar 28 13:50:53 WST 2006 John Darrington <john@darrington.wattle.id.au>
227
228         * html.c, postscript.c, output.c:  Changed to fit the new signature 
229         of fn_interp_vars
230         
231 Sun Mar  5 13:19:32 2006  Ben Pfaff  <blp@gnu.org>
232
233         * postscript.c: (postopen) Fix segfault when the active file has
234         no title.
235
236 Sat Mar  4 13:48:16 2006  Ben Pfaff  <blp@gnu.org>
237
238         We didn't provide a way to define these macros, so obviously
239         there's little demand for them.
240
241         * html.c: Don't test for NO_HTML.
242
243         * postscript.c: Don't test for NO_POSTSCRIPT.
244
245         * output.c: Don't test for either of those.
246
247 Thu Mar  2 08:40:33 WST 2006 John Darrington <john@darrington.wattle.id.au>
248         
249         * Moved files from src directory