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

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

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

Revision 232 Revision 233
48 res = -PSICONV_E_GENERATE; 48 res = -PSICONV_E_GENERATE;
49 goto ERROR1; 49 goto ERROR1;
50 } 50 }
51 51
52 if (!(basepara=psiconv_basic_paragraph_layout())) { 52 if (!(basepara=psiconv_basic_paragraph_layout())) {
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 if (!(basechar=psiconv_basic_character_layout())) { 57 if (!(basechar=psiconv_basic_character_layout())) {
58 psiconv_error(config,lev+1,0,"Out of memory error");
57 res = -PSICONV_E_NOMEM; 59 res = -PSICONV_E_NOMEM;
58 goto ERROR2; 60 goto ERROR2;
59 } 61 }
60 62
61 /* Unknown byte */ 63 /* Unknown byte */
130 goto ERROR3; 132 goto ERROR3;
131 if ((res = psiconv_write_length(config,buf,lev+1,value->page_height))) 133 if ((res = psiconv_write_length(config,buf,lev+1,value->page_height)))
132 goto ERROR3; 134 goto ERROR3;
133 if ((res = psiconv_write_bool(config,buf,lev+1,value->landscape))) 135 if ((res = psiconv_write_bool(config,buf,lev+1,value->landscape)))
134 goto ERROR3; 136 goto ERROR3;
135 if ((res = psiconv_buffer_concat(buf,header_buf))) 137 if ((res = psiconv_buffer_concat(buf,header_buf))) {
138 psiconv_error(config,lev+1,0,"Out of memory error");
136 goto ERROR3; 139 goto ERROR3;
140 }
137 res = psiconv_buffer_concat(buf,footer_buf); 141 if ((res = psiconv_buffer_concat(buf,footer_buf))) {
142 psiconv_error(config,lev+1,0,"Out of memory error");
143 goto ERROR3;
144 }
138 145
139 146
140ERROR3: 147ERROR3:
141 psiconv_buffer_free(footer_buf); 148 psiconv_buffer_free(footer_buf);
142ERROR2: 149ERROR2:

Legend:
Removed from v.232  
changed lines
  Added in v.233

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