/[public]/psiconv/trunk/lib/psiconv/generate_driver.c
ViewVC logotype

Diff of /psiconv/trunk/lib/psiconv/generate_driver.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 168 Revision 184
27 27
28#ifdef DMALLOC 28#ifdef DMALLOC
29#include <dmalloc.h> 29#include <dmalloc.h>
30#endif 30#endif
31 31
32static psiconv_ucs2 unicode_paint[10] = { 'P','a','i','n','t','.','a','p','p',0 };
33static psiconv_ucs2 unicode_texted[11] ={ 'T','e','x','t','E','d','.','a','p','p',0 };
34static psiconv_ucs2 unicode_word[9] = { 'W','o','r','d','.','a','p','p',0 };
35
32 36
33int psiconv_write(const psiconv_config config, psiconv_buffer *buf, 37int psiconv_write(const psiconv_config config, psiconv_buffer *buf,
34 const psiconv_file value) 38 const psiconv_file value)
35{ 39{
36 int res; 40 int res;
41 int lev = 0;
37 42
38 if (!value) { 43 if (!value) {
39 psiconv_warn(config,0,0,"Can't parse to an empty buffer!"); 44 psiconv_error(config,0,0,"Can't parse to an empty buffer!");
40 return -PSICONV_E_OTHER; 45 return -PSICONV_E_OTHER;
41 } 46 }
42 if (!(*buf = psiconv_buffer_new())) 47 if (!(*buf = psiconv_buffer_new()))
43 return -PSICONV_E_NOMEM; 48 return -PSICONV_E_NOMEM;
44 49
45 if (value->type == psiconv_word_file) { 50 if (value->type == psiconv_word_file) {
46 if ((res = psiconv_write_header_section(config,*buf,PSICONV_ID_PSION5, 51 if ((res = psiconv_write_header_section(config,*buf,lev+1,PSICONV_ID_PSION5,
47 PSICONV_ID_DATA_FILE, 52 PSICONV_ID_DATA_FILE,
48 PSICONV_ID_WORD))) 53 PSICONV_ID_WORD)))
49 goto ERROR; 54 goto ERROR;
50 if ((res =psiconv_write_word_file(config,*buf,(psiconv_word_f) (value->file)))) 55 if ((res =psiconv_write_word_file(config,*buf,lev+1,(psiconv_word_f) (value->file))))
51 goto ERROR; 56 goto ERROR;
52 } else if (value->type == psiconv_texted_file) { 57 } else if (value->type == psiconv_texted_file) {
53 if ((res = psiconv_write_header_section(config,*buf,PSICONV_ID_PSION5, 58 if ((res = psiconv_write_header_section(config,*buf,lev+1,PSICONV_ID_PSION5,
54 PSICONV_ID_DATA_FILE, 59 PSICONV_ID_DATA_FILE,
55 PSICONV_ID_TEXTED))) 60 PSICONV_ID_TEXTED)))
56 goto ERROR; 61 goto ERROR;
57 if ((res =psiconv_write_texted_file(config,*buf, 62 if ((res =psiconv_write_texted_file(config,*buf,lev+1,
58 (psiconv_texted_f) (value->file)))) 63 (psiconv_texted_f) (value->file))))
59 goto ERROR; 64 goto ERROR;
60#if 0
61 } else if (value->type == psiconv_sketch_file) { 65 } else if (value->type == psiconv_sketch_file) {
66 if ((res = psiconv_write_header_section(config,*buf,lev+1,PSICONV_ID_PSION5,
67 PSICONV_ID_DATA_FILE,
68 PSICONV_ID_SKETCH)))
69 goto ERROR;
62 if ((res =psiconv_write_sketch_file(config,*buf, 70 if ((res =psiconv_write_sketch_file(config,*buf,lev+1,
63 (psiconv_sketch_f) (value->file)))) 71 (psiconv_sketch_f) (value->file))))
64 goto ERROR; 72 goto ERROR;
65 } else if (value->type == psiconv_mbm_file) { 73 } else if (value->type == psiconv_mbm_file) {
74 if ((res = psiconv_write_header_section(config,*buf,lev+1,PSICONV_ID_PSION5,
75 PSICONV_ID_MBM_FILE,
76 0x00000000)))
77 goto ERROR;
66 if ((res =psiconv_write_mbm_file(config,*buf, 78 if ((res =psiconv_write_mbm_file(config,*buf,lev+1,
67 (psiconv_mbm_f) (value->file)))) 79 (psiconv_mbm_f) (value->file))))
68 goto ERROR; 80 goto ERROR;
69 } else if (value->type == psiconv_clipart_file) { 81 } else if (value->type == psiconv_clipart_file) {
82 /* No complete header section, so we do it all in the below function */
70 if ((res =psiconv_write_clipart_file(config,*buf, 83 if ((res =psiconv_write_clipart_file(config,*buf,lev+1,
71 (psiconv_clipart_f) (value->file)))) 84 (psiconv_clipart_f) (value->file))))
72 goto ERROR; 85 goto ERROR;
73#endif
74 } else { 86 } else {
75 psiconv_warn(config,0,0,"Unknown or unsupported file type"); 87 psiconv_error(config,0,0,"Unknown or unsupported file type");
76 res = -PSICONV_E_GENERATE; 88 res = -PSICONV_E_GENERATE;
77 goto ERROR; 89 goto ERROR;
78 } 90 }
79 if ((res = psiconv_buffer_resolve(*buf))) 91 if ((res = psiconv_buffer_resolve(*buf)))
80 goto ERROR; 92 goto ERROR;
84 psiconv_buffer_free(*buf); 96 psiconv_buffer_free(*buf);
85 return res; 97 return res;
86} 98}
87 99
88int psiconv_write_texted_file(const psiconv_config config, 100int psiconv_write_texted_file(const psiconv_config config,
89 psiconv_buffer buf,psiconv_texted_f value) 101 psiconv_buffer buf,int lev,psiconv_texted_f value)
90{ 102{
91 psiconv_character_layout base_char; 103 psiconv_character_layout base_char;
92 psiconv_paragraph_layout base_para; 104 psiconv_paragraph_layout base_para;
93 int res; 105 int res;
94 psiconv_section_table_section section_table; 106 psiconv_section_table_section section_table;
95 psiconv_section_table_entry entry; 107 psiconv_section_table_entry entry;
96 psiconv_u32 section_table_id; 108 psiconv_u32 section_table_id;
97 psiconv_buffer buf_texted; 109 psiconv_buffer buf_texted;
98 110
111 psiconv_progress(config,lev,0,"Writing texted file");
99 if (!value) { 112 if (!value) {
100 psiconv_warn(config,0,0,"Null TextEd file"); 113 psiconv_error(config,0,0,"Null TextEd file");
101 return -PSICONV_E_GENERATE; 114 return -PSICONV_E_GENERATE;
102 } 115 }
103 116
104 if (!(section_table = psiconv_list_new(sizeof(*entry)))) { 117 if (!(section_table = psiconv_list_new(sizeof(*entry)))) {
105 res = -PSICONV_E_NOMEM; 118 res = -PSICONV_E_NOMEM;
119 res = -PSICONV_E_NOMEM; 132 res = -PSICONV_E_NOMEM;
120 goto ERROR4; 133 goto ERROR4;
121 } 134 }
122 135
123 section_table_id = psiconv_buffer_unique_id(); 136 section_table_id = psiconv_buffer_unique_id();
124 if ((res = psiconv_write_offset(config,buf,section_table_id))) 137 if ((res = psiconv_write_offset(config,buf,lev+1,section_table_id)))
125 goto ERROR5; 138 goto ERROR5;
126 139
127 entry->id = PSICONV_ID_APPL_ID_SECTION; 140 entry->id = PSICONV_ID_APPL_ID_SECTION;
128 entry->offset = psiconv_buffer_unique_id(); 141 entry->offset = psiconv_buffer_unique_id();
129 if ((res = psiconv_list_add(section_table,entry))) 142 if ((res = psiconv_list_add(section_table,entry)))
130 goto ERROR5; 143 goto ERROR5;
131 if ((res = psiconv_buffer_add_target(buf,entry->offset))) 144 if ((res = psiconv_buffer_add_target(buf,entry->offset)))
132 goto ERROR5; 145 goto ERROR5;
133 if ((res=psiconv_write_application_id_section(config,buf, 146 if ((res=psiconv_write_application_id_section(config,buf,lev+1,
134 PSICONV_ID_TEXTED,"TextEd.app"))) 147 PSICONV_ID_TEXTED,unicode_texted)))
135 goto ERROR5; 148 goto ERROR5;
136 149
137 entry->id = PSICONV_ID_PAGE_LAYOUT_SECTION; 150 entry->id = PSICONV_ID_PAGE_LAYOUT_SECTION;
138 entry->offset = psiconv_buffer_unique_id(); 151 entry->offset = psiconv_buffer_unique_id();
139 if ((res = psiconv_list_add(section_table,entry))) 152 if ((res = psiconv_list_add(section_table,entry)))
140 goto ERROR5; 153 goto ERROR5;
141 if ((res = psiconv_buffer_add_target(buf,entry->offset))) 154 if ((res = psiconv_buffer_add_target(buf,entry->offset)))
142 goto ERROR5; 155 goto ERROR5;
143 if ((res = psiconv_write_page_layout_section(config,buf,value->page_sec))) 156 if ((res = psiconv_write_page_layout_section(config,buf,lev+1,value->page_sec)))
144 goto ERROR5; 157 goto ERROR5;
145 158
146 entry->id = PSICONV_ID_TEXTED; 159 entry->id = PSICONV_ID_TEXTED;
147 entry->offset = psiconv_buffer_unique_id(); 160 entry->offset = psiconv_buffer_unique_id();
148 if ((res = psiconv_list_add(section_table,entry))) 161 if ((res = psiconv_list_add(section_table,entry)))
149 goto ERROR5; 162 goto ERROR5;
150 if ((res = psiconv_buffer_add_target(buf,entry->offset))) 163 if ((res = psiconv_buffer_add_target(buf,entry->offset)))
151 goto ERROR5; 164 goto ERROR5;
152 if ((res = psiconv_write_texted_section(config,buf,value->texted_sec, 165 if ((res = psiconv_write_texted_section(config,buf,lev+1,value->texted_sec,
153 base_char,base_para,&buf_texted))) 166 base_char,base_para,&buf_texted)))
154 goto ERROR5; 167 goto ERROR5;
155 168
156 if ((res = psiconv_buffer_concat(buf,buf_texted))) 169 if ((res = psiconv_buffer_concat(buf,buf_texted)))
157 goto ERROR6; 170 goto ERROR6;
158 171
159 172
160 if ((res = psiconv_buffer_add_target(buf,section_table_id))) 173 if ((res = psiconv_buffer_add_target(buf,section_table_id)))
161 goto ERROR6; 174 goto ERROR6;
162 175
163 res = psiconv_write_section_table_section(config,buf,section_table); 176 res = psiconv_write_section_table_section(config,buf,lev+1,section_table);
164 177
165ERROR6: 178ERROR6:
166 psiconv_buffer_free(buf_texted); 179 psiconv_buffer_free(buf_texted);
167ERROR5: 180ERROR5:
168 psiconv_free_paragraph_layout(base_para); 181 psiconv_free_paragraph_layout(base_para);
175ERROR1: 188ERROR1:
176 return res; 189 return res;
177} 190}
178 191
179int psiconv_write_word_file(const psiconv_config config, 192int psiconv_write_word_file(const psiconv_config config,
180 psiconv_buffer buf,psiconv_word_f value) 193 psiconv_buffer buf,int lev,psiconv_word_f value)
181{ 194{
182 int res; 195 int res;
183 psiconv_section_table_section section_table; 196 psiconv_section_table_section section_table;
184 psiconv_section_table_entry entry; 197 psiconv_section_table_entry entry;
185 psiconv_u32 section_table_id; 198 psiconv_u32 section_table_id;
186 199
200 psiconv_progress(config,lev,0,"Writing word file");
187 if (!value) { 201 if (!value) {
188 psiconv_warn(config,0,0,"Null Word file"); 202 psiconv_error(config,0,0,"Null Word file");
189 return -PSICONV_E_GENERATE; 203 return -PSICONV_E_GENERATE;
190 } 204 }
191 205
192 if (!(section_table = psiconv_list_new(sizeof(*entry)))) { 206 if (!(section_table = psiconv_list_new(sizeof(*entry)))) {
193 res = -PSICONV_E_NOMEM; 207 res = -PSICONV_E_NOMEM;
198 res = -PSICONV_E_NOMEM; 212 res = -PSICONV_E_NOMEM;
199 goto ERROR2; 213 goto ERROR2;
200 } 214 }
201 215
202 section_table_id = psiconv_buffer_unique_id(); 216 section_table_id = psiconv_buffer_unique_id();
203 if ((res = psiconv_write_offset(config,buf,section_table_id))) 217 if ((res = psiconv_write_offset(config,buf,lev+1,section_table_id)))
204 goto ERROR3; 218 goto ERROR3;
205 219
206 entry->id = PSICONV_ID_APPL_ID_SECTION; 220 entry->id = PSICONV_ID_APPL_ID_SECTION;
207 entry->offset = psiconv_buffer_unique_id(); 221 entry->offset = psiconv_buffer_unique_id();
208 if ((res = psiconv_list_add(section_table,entry))) 222 if ((res = psiconv_list_add(section_table,entry)))
209 goto ERROR3; 223 goto ERROR3;
210 if ((res = psiconv_buffer_add_target(buf,entry->offset))) 224 if ((res = psiconv_buffer_add_target(buf,entry->offset)))
211 goto ERROR3; 225 goto ERROR3;
212 if ((res=psiconv_write_application_id_section(config,buf, 226 if ((res=psiconv_write_application_id_section(config,buf,lev+1,
213 PSICONV_ID_WORD,"Word.app"))) 227 PSICONV_ID_WORD,unicode_word)))
214 goto ERROR3; 228 goto ERROR3;
215 229
216 entry->id = PSICONV_ID_WORD_STATUS_SECTION; 230 entry->id = PSICONV_ID_WORD_STATUS_SECTION;
217 entry->offset = psiconv_buffer_unique_id(); 231 entry->offset = psiconv_buffer_unique_id();
218 if ((res = psiconv_list_add(section_table,entry))) 232 if ((res = psiconv_list_add(section_table,entry)))
219 goto ERROR3; 233 goto ERROR3;
220 if ((res = psiconv_buffer_add_target(buf,entry->offset))) 234 if ((res = psiconv_buffer_add_target(buf,entry->offset)))
221 goto ERROR3; 235 goto ERROR3;
222 if ((res = psiconv_write_word_status_section(config,buf,value->status_sec))) 236 if ((res = psiconv_write_word_status_section(config,buf,lev+1,value->status_sec)))
223 goto ERROR3; 237 goto ERROR3;
224 238
225 entry->id = PSICONV_ID_PAGE_LAYOUT_SECTION; 239 entry->id = PSICONV_ID_PAGE_LAYOUT_SECTION;
226 entry->offset = psiconv_buffer_unique_id(); 240 entry->offset = psiconv_buffer_unique_id();
227 if ((res = psiconv_list_add(section_table,entry))) 241 if ((res = psiconv_list_add(section_table,entry)))
228 goto ERROR3; 242 goto ERROR3;
229 if ((res = psiconv_buffer_add_target(buf,entry->offset))) 243 if ((res = psiconv_buffer_add_target(buf,entry->offset)))
230 goto ERROR3; 244 goto ERROR3;
231 if ((res = psiconv_write_page_layout_section(config,buf,value->page_sec))) 245 if ((res = psiconv_write_page_layout_section(config,buf,lev+1,value->page_sec)))
232 goto ERROR3; 246 goto ERROR3;
233 247
234 entry->id = PSICONV_ID_WORD_STYLES_SECTION; 248 entry->id = PSICONV_ID_WORD_STYLES_SECTION;
235 entry->offset = psiconv_buffer_unique_id(); 249 entry->offset = psiconv_buffer_unique_id();
236 if ((res = psiconv_list_add(section_table,entry))) 250 if ((res = psiconv_list_add(section_table,entry)))
237 goto ERROR3; 251 goto ERROR3;
238 if ((res = psiconv_buffer_add_target(buf,entry->offset))) 252 if ((res = psiconv_buffer_add_target(buf,entry->offset)))
239 goto ERROR3; 253 goto ERROR3;
240 if ((res = psiconv_write_word_styles_section(config,buf,value->styles_sec))) 254 if ((res = psiconv_write_word_styles_section(config,buf,lev+1,value->styles_sec)))
241 goto ERROR3; 255 goto ERROR3;
242 256
243 entry->id = PSICONV_ID_TEXT_SECTION; 257 entry->id = PSICONV_ID_TEXT_SECTION;
244 entry->offset = psiconv_buffer_unique_id(); 258 entry->offset = psiconv_buffer_unique_id();
245 if ((res = psiconv_list_add(section_table,entry))) 259 if ((res = psiconv_list_add(section_table,entry)))
246 goto ERROR3; 260 goto ERROR3;
247 if ((res = psiconv_buffer_add_target(buf,entry->offset))) 261 if ((res = psiconv_buffer_add_target(buf,entry->offset)))
248 goto ERROR3; 262 goto ERROR3;
249 if ((res = psiconv_write_text_section(config,buf,value->paragraphs))) 263 if ((res = psiconv_write_text_section(config,buf,lev+1,value->paragraphs)))
250 goto ERROR3; 264 goto ERROR3;
251 265
252 entry->id = PSICONV_ID_LAYOUT_SECTION; 266 entry->id = PSICONV_ID_LAYOUT_SECTION;
253 entry->offset = psiconv_buffer_unique_id(); 267 entry->offset = psiconv_buffer_unique_id();
254 if ((res = psiconv_list_add(section_table,entry))) 268 if ((res = psiconv_list_add(section_table,entry)))
255 goto ERROR3; 269 goto ERROR3;
256 if ((res = psiconv_buffer_add_target(buf,entry->offset))) 270 if ((res = psiconv_buffer_add_target(buf,entry->offset)))
257 goto ERROR3; 271 goto ERROR3;
258 if ((res = psiconv_write_styled_layout_section(config,buf,value->paragraphs, 272 if ((res = psiconv_write_styled_layout_section(config,buf,lev+1,value->paragraphs,
259 value->styles_sec))) 273 value->styles_sec)))
260 goto ERROR3; 274 goto ERROR3;
261 275
262 if ((res = psiconv_buffer_add_target(buf,section_table_id))) 276 if ((res = psiconv_buffer_add_target(buf,section_table_id)))
263 goto ERROR3; 277 goto ERROR3;
264 278
265 res = psiconv_write_section_table_section(config,buf,section_table); 279 res = psiconv_write_section_table_section(config,buf,lev+1,section_table);
266 280
267ERROR3: 281ERROR3:
268 free(entry); 282 free(entry);
269ERROR2: 283ERROR2:
270 psiconv_list_free(section_table); 284 psiconv_list_free(section_table);
271ERROR1: 285ERROR1:
272 return res; 286 return res;
273} 287}
288
289int psiconv_write_sketch_file(const psiconv_config config,
290 psiconv_buffer buf,int lev,psiconv_sketch_f value)
291{
292 int res;
293 psiconv_section_table_section section_table;
294 psiconv_section_table_entry entry;
295 psiconv_u32 section_table_id;
296
297 psiconv_progress(config,lev,0,"Writing sketch file");
298 if (!value) {
299 psiconv_error(config,0,0,"Null Sketch file");
300 return -PSICONV_E_GENERATE;
301 }
302
303 if (!(section_table = psiconv_list_new(sizeof(*entry)))) {
304 res = -PSICONV_E_NOMEM;
305 goto ERROR1;
306 }
307
308 if (!(entry = malloc(sizeof(*entry)))) {
309 res = -PSICONV_E_NOMEM;
310 goto ERROR2;
311 }
312
313 section_table_id = psiconv_buffer_unique_id();
314 if ((res = psiconv_write_offset(config,buf,lev+1,section_table_id)))
315 goto ERROR3;
316
317 entry->id = PSICONV_ID_APPL_ID_SECTION;
318 entry->offset = psiconv_buffer_unique_id();
319 if ((res = psiconv_list_add(section_table,entry)))
320 goto ERROR3;
321 if ((res = psiconv_buffer_add_target(buf,entry->offset)))
322 goto ERROR3;
323 if ((res=psiconv_write_application_id_section(config,buf,lev+1,
324 PSICONV_ID_SKETCH,unicode_paint)))
325 goto ERROR3;
326
327 entry->id = PSICONV_ID_SKETCH_SECTION;
328 entry->offset = psiconv_buffer_unique_id();
329 if ((res = psiconv_list_add(section_table,entry)))
330 goto ERROR3;
331 if ((res = psiconv_buffer_add_target(buf,entry->offset)))
332 goto ERROR3;
333 if ((res = psiconv_write_sketch_section(config,buf,lev+1,value->sketch_sec)))
334 goto ERROR3;
335
336 if ((res = psiconv_buffer_add_target(buf,section_table_id)))
337 goto ERROR3;
338 res = psiconv_write_section_table_section(config,buf,lev+1,section_table);
339
340ERROR3:
341 free(entry);
342ERROR2:
343 psiconv_list_free(section_table);
344ERROR1:
345 return res;
346}
347
348int psiconv_write_mbm_file(const psiconv_config config,
349 psiconv_buffer buf,int lev,psiconv_mbm_f value)
350{
351 int res,i;
352 psiconv_jumptable_section jumptable;
353 psiconv_u32 *entry,id,table_id;
354 psiconv_paint_data_section section;
355
356 psiconv_progress(config,lev,0,"Writing mbm file");
357 if (!value) {
358 psiconv_error(config,0,0,"Null MBM file");
359 return -PSICONV_E_GENERATE;
360 }
361
362 if (!(jumptable = psiconv_list_new(sizeof(*entry)))) {
363 res = -PSICONV_E_NOMEM;
364 goto ERROR1;
365 }
366
367 table_id = psiconv_buffer_unique_id();
368 if ((res = psiconv_buffer_add_reference(buf,table_id)))
369 goto ERROR2;
370
371 for (i = 0; i < psiconv_list_length(value->sections); i++) {
372 if (!(section = psiconv_list_get(value->sections,i))) {
373 psiconv_error(config,0,0,"Massive memory corruption");
374 res = -PSICONV_E_NOMEM;
375 goto ERROR2;
376 }
377 id = psiconv_buffer_unique_id();
378 psiconv_list_add(jumptable,&id);
379 if ((res = psiconv_buffer_add_target(buf,id)))
380 goto ERROR2;
381 if ((res = psiconv_write_paint_data_section(config,buf,lev+1,section,0)))
382 goto ERROR2;
383 }
384
385 if ((res = psiconv_buffer_add_target(buf,table_id)))
386 goto ERROR2;
387 if ((res = psiconv_write_jumptable_section(config,buf,lev+1,jumptable)))
388 goto ERROR2;
389
390
391ERROR2:
392 psiconv_list_free(jumptable);
393ERROR1:
394 return res;
395}
396
397/* Note: this file is special, because it does not have a complete header! */
398int psiconv_write_clipart_file(const psiconv_config config,
399 psiconv_buffer buf,int lev,psiconv_clipart_f value)
400{
401 int res,i;
402 psiconv_jumptable_section jumptable;
403 psiconv_u32 *entry,id;
404 psiconv_clipart_section section;
405 psiconv_buffer sec_buf;
406
407 psiconv_progress(config,lev,0,"Writing clipart file");
408 if (!value) {
409 psiconv_error(config,0,0,"Null Clipart file");
410 return -PSICONV_E_GENERATE;
411 }
412
413 if (!(jumptable = psiconv_list_new(sizeof(*entry)))) {
414 res = -PSICONV_E_NOMEM;
415 goto ERROR1;
416 }
417
418 if (!(sec_buf = psiconv_buffer_new())) {
419 res = -PSICONV_E_NOMEM;
420 goto ERROR2;
421 }
422
423 if ((res = psiconv_write_u32(config,buf,lev+1,PSICONV_ID_CLIPART)))
424 goto ERROR3;
425
426 for (i = 0; i < psiconv_list_length(value->sections); i++) {
427 if (!(section = psiconv_list_get(value->sections,i))) {
428 psiconv_error(config,0,0,"Massive memory corruption");
429 res = -PSICONV_E_NOMEM;
430 goto ERROR3;
431 }
432 id = psiconv_buffer_unique_id();
433 psiconv_list_add(jumptable,&id);
434 if ((res = psiconv_buffer_add_target(sec_buf,id)))
435 goto ERROR3;
436 if ((res = psiconv_write_clipart_section(config,sec_buf, lev+1,section)))
437 goto ERROR3;
438 }
439
440 if ((res = psiconv_write_jumptable_section(config,buf,lev+1,jumptable)))
441 goto ERROR3;
442
443 if ((res = psiconv_buffer_concat(buf,sec_buf)))
444 goto ERROR3;
445
446
447ERROR3:
448 psiconv_buffer_free(sec_buf);
449ERROR2:
450 psiconv_list_free(jumptable);
451ERROR1:
452 return res;
453}

Legend:
Removed from v.168  
changed lines
  Added in v.184

frodo@frodo.looijaard.name
ViewVC Help
Powered by ViewVC 1.1.26