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

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

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

Revision 231 Revision 351
1/* 1/*
2 generate_texted.c - Part of psiconv, a PSION 5 file formats converter 2 generate_texted.c - Part of psiconv, a PSION 5 file formats converter
3 Copyright (c) 2000-2004 Frodo Looijaard <frodol@dds.nl> 3 Copyright (c) 2000-2014 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.
48 res = -PSICONV_E_GENERATE; 48 res = -PSICONV_E_GENERATE;
49 goto ERROR1; 49 goto ERROR1;
50 } 50 }
51 51
52 if (!(*extra_buf = psiconv_buffer_new())) { 52 if (!(*extra_buf = psiconv_buffer_new())) {
53 psiconv_error(config,lev+1,0,"Out of memory error");
53 res = -PSICONV_E_NOMEM; 54 res = -PSICONV_E_NOMEM;
54 goto ERROR1; 55 goto ERROR1;
55 } 56 }
56 57
57 layout_id = psiconv_buffer_unique_id(); 58 layout_id = psiconv_buffer_unique_id();
58 psiconv_buffer_add_target(*extra_buf,layout_id); 59 if ((res = psiconv_buffer_add_target(*extra_buf,layout_id))) {
60 psiconv_error(config,lev+1,0,"Out of memory error");
61 goto ERROR2;
62 }
59 63
60 if (psiconv_list_length(value->paragraphs)) { 64 if (psiconv_list_length(value->paragraphs)) {
61 with_layout_section = 1; 65 with_layout_section = 1;
62 if ((res = psiconv_write_styleless_layout_section(config,*extra_buf,lev+1, 66 if ((res = psiconv_write_styleless_layout_section(config,*extra_buf,lev+1,
63 value->paragraphs, 67 value->paragraphs,

Legend:
Removed from v.231  
changed lines
  Added in v.351

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