1 | /* |
1 | /* |
2 | generate_common.c - Part of psiconv, a PSION 5 file formats converter |
2 | generate_common.c - Part of psiconv, a PSION 5 file formats converter |
3 | Copyright (c) 2000-2004 Frodo Looijaard <frodol@dds.nl> |
3 | Copyright (c) 2000-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. |
… | |
… | |
234 | psiconv_unicode_strlen(paragraph->text)+1))) |
234 | psiconv_unicode_strlen(paragraph->text)+1))) |
235 | goto ERROR6; |
235 | goto ERROR6; |
236 | |
236 | |
237 | /* We need it for the next if-statement */ |
237 | /* We need it for the next if-statement */ |
238 | if (psiconv_list_length(paragraph->in_lines) == 1) |
238 | if (psiconv_list_length(paragraph->in_lines) == 1) |
239 | if (!(in_line = psiconv_list_get(paragraph->in_lines,1))) { |
239 | if (!(in_line = psiconv_list_get(paragraph->in_lines,0))) { |
240 | psiconv_error(config,lev+1,0,"Data structure corruption"); |
240 | psiconv_error(config,lev+1,0,"Data structure corruption"); |
241 | res = -PSICONV_E_NOMEM; |
241 | res = -PSICONV_E_NOMEM; |
242 | goto ERROR6; |
242 | goto ERROR6; |
243 | } |
243 | } |
244 | |
244 | |