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

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

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

Revision 166 Revision 167
762 if (res) 762 if (res)
763 goto ERROR5; 763 goto ERROR5;
764 psiconv_debug(lev+4,off+len, "Offset: %08x",temp); 764 psiconv_debug(lev+4,off+len, "Offset: %08x",temp);
765 len += 4; 765 len += 4;
766 psiconv_progress(lev+4,off+len, 766 psiconv_progress(lev+4,off+len,
767 "Going to parse the Embedded Object"); 767 "Going to parse the Embedded Object Section");
768 if ((res = psiconv_parse_embedded_object(buf,lev+4,temp, 768 if ((res = psiconv_parse_embedded_object_section(buf,lev+4,temp,
769 NULL,&(in_line.object)))) 769 NULL,&(in_line.object))))
770 goto ERROR5; 770 goto ERROR5;
771 psiconv_progress(lev+4,off+len, 771 psiconv_progress(lev+4,off+len,
772 "Going to read the object width"); 772 "Going to read the object width");
773 in_line.object_width = psiconv_read_length(buf,lev+4,off+len, 773 in_line.object_width = psiconv_read_length(buf,lev+4,off+len,
845 845
846ERROR5: 846ERROR5:
847 if (in_line.layout) 847 if (in_line.layout)
848 psiconv_free_character_layout(in_line.layout); 848 psiconv_free_character_layout(in_line.layout);
849 if (in_line.object) 849 if (in_line.object)
850 psiconv_free_object(in_line.object); 850 psiconv_free_embedded_object_section(in_line.object);
851ERROR4: 851ERROR4:
852 free(inline_count); 852 free(inline_count);
853ERROR3: 853ERROR3:
854 for (i = 0; i < psiconv_list_length(anon_styles); i++) { 854 for (i = 0; i < psiconv_list_length(anon_styles); i++) {
855 if (!(anon_ptr = psiconv_list_get(anon_styles,i))) { 855 if (!(anon_ptr = psiconv_list_get(anon_styles,i))) {
932 return -PSICONV_E_NOMEM; 932 return -PSICONV_E_NOMEM;
933 else 933 else
934 return res; 934 return res;
935} 935}
936 936
937int psiconv_parse_embedded_object(const psiconv_buffer buf, int lev, 937int psiconv_parse_embedded_object_section(const psiconv_buffer buf, int lev,
938 psiconv_u32 off, int *length, 938 psiconv_u32 off, int *length,
939 psiconv_object *result) 939 psiconv_embedded_object_section *result)
940{ 940{
941 int res=0; 941 int res=0;
942 int len=0; 942 int len=0;
943 int leng,i; 943 int leng,i;
944 psiconv_section_table_section table; 944 psiconv_section_table_section table;

Legend:
Removed from v.166  
changed lines
  Added in v.167

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