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

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

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

Revision 128 Revision 129
34static void psiconv_free_paragraph_aux(void * paragraph); 34static void psiconv_free_paragraph_aux(void * paragraph);
35static void psiconv_free_paint_data_section_aux(void * section); 35static void psiconv_free_paint_data_section_aux(void * section);
36static void psiconv_free_clipart_section_aux(void * section); 36static void psiconv_free_clipart_section_aux(void * section);
37static void psiconv_free_formula_aux(void *data); 37static void psiconv_free_formula_aux(void *data);
38static void psiconv_free_sheet_worksheet_aux (void *data); 38static void psiconv_free_sheet_worksheet_aux (void *data);
39static void psiconv_free_sheet_variable_aux(void * variable);
39 40
40static psiconv_word_styles_section psiconv_empty_word_styles_section(void); 41static psiconv_word_styles_section psiconv_empty_word_styles_section(void);
41static psiconv_text_and_layout psiconv_empty_text_and_layout(void); 42static psiconv_text_and_layout psiconv_empty_text_and_layout(void);
42static psiconv_texted_section psiconv_empty_texted_section(void); 43static psiconv_texted_section psiconv_empty_texted_section(void);
43static psiconv_page_header psiconv_empty_page_header(void); 44static psiconv_page_header psiconv_empty_page_header(void);
690{ 691{
691 if (list) 692 if (list)
692 psiconv_list_free_el(list,psiconv_free_formula_aux); 693 psiconv_list_free_el(list,psiconv_free_formula_aux);
693} 694}
694 695
696void psiconv_free_sheet_name_section(psiconv_sheet_name_section section)
697{
698 if (section) {
699 if(section->name)
700 free(section->name);
701 free(section);
702 }
703}
704
705void psiconv_free_sheet_info_section(psiconv_sheet_info_section section)
706{
707 if (section) {
708 free(section);
709 }
710}
711
712void psiconv_free_sheet_variable_aux(void * variable)
713{
714 psiconv_sheet_variable var = variable;
715 if (var->name)
716 free(var->name);
717 if (var->type == psiconv_var_string)
718 free(var->data.dat_string);
719}
720
721void psiconv_free_sheet_variable(psiconv_sheet_variable var)
722{
723 if (var) {
724 psiconv_free_sheet_variable_aux(var);
725 free(var);
726 }
727}
728
729void psiconv_free_sheet_variable_list(psiconv_sheet_variable_list list)
730{
731 if (list)
732 psiconv_list_free_el(list,psiconv_free_sheet_variable_aux);
733}
734
695void psiconv_free_sheet_workbook_section(psiconv_sheet_workbook_section section) 735void psiconv_free_sheet_workbook_section(psiconv_sheet_workbook_section section)
696{ 736{
697 if (section) { 737 if (section) {
698 psiconv_free_formula_list(section->formulas); 738 psiconv_free_formula_list(section->formulas);
699 psiconv_free_sheet_worksheet_list(section->worksheets); 739 psiconv_free_sheet_worksheet_list(section->worksheets);
740 psiconv_free_sheet_name_section(section->name);
741 psiconv_free_sheet_info_section(section->info);
742 psiconv_free_sheet_variable_list(section->variables);
700 free(section); 743 free(section);
701 } 744 }
702} 745}
703 746
704void psiconv_free_sheet_f(psiconv_sheet_f file) 747void psiconv_free_sheet_f(psiconv_sheet_f file)

Legend:
Removed from v.128  
changed lines
  Added in v.129

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