1 | /* |
1 | /* |
2 | parse_page.c - Part of psiconv, a PSION 5 file formats converter |
2 | parse_page.c - Part of psiconv, a PSION 5 file formats converter |
3 | Copyright (c) 1999, 2000 Frodo Looijaard <frodol@dds.nl> |
3 | Copyright (c) 1999-2005 Frodo Looijaard <frodo@frodo.looijaard.name> |
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. |
… | |
… | |
128 | ERROR3: |
128 | ERROR3: |
129 | psiconv_free_paragraph_layout((*result)->base_paragraph_layout); |
129 | psiconv_free_paragraph_layout((*result)->base_paragraph_layout); |
130 | ERROR2: |
130 | ERROR2: |
131 | free (*result); |
131 | free (*result); |
132 | ERROR1: |
132 | ERROR1: |
133 | psiconv_warn(config,lev+1,off,"Reading of Page Header failed"); |
133 | psiconv_error(config,lev+1,off,"Reading of Page Header failed"); |
134 | if (length) |
134 | if (length) |
135 | *length = 0; |
135 | *length = 0; |
136 | if (!res) |
136 | if (!res) |
137 | return -PSICONV_E_NOMEM; |
137 | return -PSICONV_E_NOMEM; |
138 | else |
138 | else |
… | |
… | |
263 | ERROR3: |
263 | ERROR3: |
264 | psiconv_free_page_header((*result)->header); |
264 | psiconv_free_page_header((*result)->header); |
265 | ERROR2: |
265 | ERROR2: |
266 | free (*result); |
266 | free (*result); |
267 | ERROR1: |
267 | ERROR1: |
268 | psiconv_warn(config,lev+1,off,"Reading of Page Section failed"); |
268 | psiconv_error(config,lev+1,off,"Reading of Page Section failed"); |
269 | if (length) |
269 | if (length) |
270 | *length = 0; |
270 | *length = 0; |
271 | if (!res) |
271 | if (!res) |
272 | return -PSICONV_E_NOMEM; |
272 | return -PSICONV_E_NOMEM; |
273 | else |
273 | else |