1 | /* |
1 | /* |
2 | parse_common.c - Part of psiconv, a PSION 5 file formats converter |
2 | parse_common.c - Part of psiconv, a PSION 5 file formats converter |
3 | Copyright (c) 1999, 2000 Frodo Looijaard <frodol@dds.nl> |
3 | Copyright (c) 1999-2004 Frodo Looijaard <frodol@dds.nl> |
4 | |
4 | |
5 | This program is free software; you can redistribute it and/or modify |
5 | This program is free software; you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published by |
6 | it under the terms of the GNU General Public License as published by |
7 | the Free Software Foundation; either version 2 of the License, or |
7 | the Free Software Foundation; either version 2 of the License, or |
8 | (at your option) any later version. |
8 | (at your option) any later version. |
… | |
… | |
911 | goto ERROR3; |
911 | goto ERROR3; |
912 | if (!(styles_section->normal->paragraph = |
912 | if (!(styles_section->normal->paragraph = |
913 | psiconv_clone_paragraph_layout(base_para))) |
913 | psiconv_clone_paragraph_layout(base_para))) |
914 | goto ERROR4; |
914 | goto ERROR4; |
915 | styles_section->normal->hotkey = 0; |
915 | styles_section->normal->hotkey = 0; |
916 | if (( res = psiconv_unicode_from_chars(config,"", |
916 | if (( res = psiconv_unicode_from_chars(config,(psiconv_u8 *) "", |
917 | &styles_section->normal->name))) |
917 | &styles_section->normal->name))) |
918 | goto ERROR5; |
918 | goto ERROR5; |
919 | if (!(styles_section->styles = psiconv_list_new(sizeof( |
919 | if (!(styles_section->styles = psiconv_list_new(sizeof( |
920 | struct psiconv_word_style_s)))) |
920 | struct psiconv_word_style_s)))) |
921 | goto ERROR6; |
921 | goto ERROR6; |
… | |
… | |
1063 | psiconv_warn(config,lev+3,0,"Can't parse embedded object (still continuing)"); |
1063 | psiconv_warn(config,lev+3,0,"Can't parse embedded object (still continuing)"); |
1064 | (*result)->object->file = NULL; |
1064 | (*result)->object->file = NULL; |
1065 | } |
1065 | } |
1066 | } |
1066 | } |
1067 | |
1067 | |
|
|
1068 | psiconv_buffer_free(subbuf); |
|
|
1069 | psiconv_free_section_table_section(table); |
|
|
1070 | |
1068 | if (length) |
1071 | if (length) |
1069 | *length = len; |
1072 | *length = len; |
1070 | |
1073 | |
1071 | psiconv_progress(config,lev+1,off+len-1,"End of Embedded Object Section " |
1074 | psiconv_progress(config,lev+1,off+len-1,"End of Embedded Object Section " |
1072 | "(total length: %08x)",len); |
1075 | "(total length: %08x)",len); |