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; |