--- psiconv/trunk/lib/psiconv/data.c 1999/12/03 00:59:12 41 +++ psiconv/trunk/lib/psiconv/data.c 2000/12/10 15:44:40 56 @@ -34,29 +34,29 @@ static void psiconv_free_in_line_layout_aux(void * layout); static void psiconv_free_paragraph_aux(void * paragraph); static void psiconv_free_paint_data_section_aux(void * section); -static void psiconv_free_clipart_section_aux(psiconv_clipart_section section); +static void psiconv_free_clipart_section_aux(void * section); psiconv_character_layout psiconv_basic_character_layout(void) { /* Make the structures static, to oblige IRIX */ - static struct psiconv_color black = + static struct psiconv_color_s black = { 0x00, /* red */ 0x00, /* green */ 0x00, /* blue */ }; - static struct psiconv_color white = + static struct psiconv_color_s white = { 0xff, /* red */ 0xff, /* green */ 0xff, /* blue */ }; - static struct psiconv_font font = + static struct psiconv_font_s font = { "Times New Roman", /* name */ 3 /* screenfont */ }; - struct psiconv_character_layout cl = + struct psiconv_character_layout_s cl = { &black, /* color */ &white, /* back_color */ @@ -74,30 +74,30 @@ psiconv_paragraph_layout psiconv_basic_paragraph_layout(void) { - static struct psiconv_font font = + static struct psiconv_font_s font = { "Times New Roman", /* name */ 2 /* screenfont */ }; - static struct psiconv_color black = + static struct psiconv_color_s black = { 0x00, /* red */ 0x00, /* green */ 0x00, /* blue */ }; - static struct psiconv_color white = + static struct psiconv_color_s white = { 0xff, /* red */ 0xff, /* green */ 0xff, /* blue */ }; - static struct psiconv_border no_border = + static struct psiconv_border_s no_border = { psiconv_border_none, /* kind */ 1, /* thickness */ &black /* color */ }; - static struct psiconv_bullet bullet = + static struct psiconv_bullet_s bullet = { psiconv_bool_false, /* on */ 10.0, /* font_size */ @@ -106,12 +106,12 @@ &black, /* color */ &font, /* font */ }; - static struct psiconv_all_tabs tabs = + static struct psiconv_all_tabs_s tabs = { 0.64, /* normal */ NULL /* kind */ }; - struct psiconv_paragraph_layout pl = + struct psiconv_paragraph_layout_s pl = { &white, /* back_color */ 0.0, /* indent_left */ @@ -137,7 +137,7 @@ }; psiconv_paragraph_layout res; - pl.tabs->extras = psiconv_list_new(sizeof(struct psiconv_tab)); + pl.tabs->extras = psiconv_list_new(sizeof(struct psiconv_tab_s)); res = psiconv_clone_paragraph_layout(&pl); psiconv_list_free(pl.tabs->extras); return res; @@ -484,7 +484,7 @@ psiconv_list_free_el(section,&psiconv_free_paint_data_section_aux); } -void psiconv_free_mbm_jumptable_section (psiconv_mbm_jumptable_section section) +void psiconv_free_jumptable_section (psiconv_jumptable_section section) { if (section) psiconv_list_free(section); @@ -514,10 +514,10 @@ } } -void psiconv_free_clipart_section_aux(psiconv_clipart_section section) +void psiconv_free_clipart_section_aux(void *section) { if (section) - free(section->picture); + free(((psiconv_clipart_section ) section)->picture); } void psiconv_free_clipart_section(psiconv_clipart_section section) @@ -554,7 +554,7 @@ else if (file->type == psiconv_sketch_file) psiconv_free_sketch_f((psiconv_sketch_f) file->file); else if (file->type == psiconv_clipart_file) - psiconv_free_sketch_f((psiconv_clipart_f) file->file); + psiconv_free_clipart_f((psiconv_clipart_f) file->file); free(file); } }