/[public]/psiconv/trunk/program/psiconv/gen_html.c
ViewVC logotype

Diff of /psiconv/trunk/program/psiconv/gen_html.c

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

Revision 52 Revision 53
277 fputs("</UL>",of); 277 fputs("</UL>",of);
278 278
279 fputs("</P>\n",of); 279 fputs("</P>\n",of);
280} 280}
281 281
282int psiconv_gen_html(FILE *of,const psiconv_file file, const char *dest) 282int psiconv_gen_html(const char * filename,const psiconv_file file,
283 const char *dest)
283{ 284{
285 FILE *of = fopen(filename,"w");
286 if (! of)
287 return -1;
288
284 if (file->type == psiconv_word_file) { 289 if (file->type == psiconv_word_file) {
285 psiconv_gen_html_word(of,(psiconv_word_f) file->file); 290 psiconv_gen_html_word(of,(psiconv_word_f) file->file);
286 return 0;
287 } else if (file->type == psiconv_texted_file) { 291 } else if (file->type == psiconv_texted_file) {
288 psiconv_gen_html_texted(of,(psiconv_texted_f) file->file); 292 psiconv_gen_html_texted(of,(psiconv_texted_f) file->file);
289 return 0;
290 } else 293 } else {
294 fclose(of);
291 return -1; 295 return -1;
296 }
297 return fclose(of);
292} 298}
293 299
294void psiconv_gen_html_texted(FILE *of,psiconv_texted_f tf) 300void psiconv_gen_html_texted(FILE *of,psiconv_texted_f tf)
295{ 301{
296 psiconv_character_layout base_char; 302 psiconv_character_layout base_char;

Legend:
Removed from v.52  
changed lines
  Added in v.53

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