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

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

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

Revision 233 Revision 244
312 psiconv_error(config,lev+2,off+len+i,"Malformed text section"); 312 psiconv_error(config,lev+2,off+len+i,"Malformed text section");
313 res = PSICONV_E_PARSE; 313 res = PSICONV_E_PARSE;
314 goto ERROR4; 314 goto ERROR4;
315 } 315 }
316 if ((temp == 0x06) || (i + leng == text_len)) { 316 if ((temp == 0x06) || (i + leng == text_len)) {
317 if (!(para->text = malloc(sizeof(*(para->text)) * 317 if (!(para->text = psiconv_unicode_from_list(line)))
318 (psiconv_list_length(line) + 1))))
319 goto ERROR4; 318 goto ERROR4;
320 for (j = 0; j < psiconv_list_length(line); j++) {
321 if (!(nextcharptr = psiconv_list_get(line,j))) {
322 psiconv_error(config,lev+2,off+i+len,"Data structure corruption");
323 goto ERROR5;
324 }
325 para->text[j] = *nextcharptr;
326 }
327 para->text[j] = 0;
328 319
329 if (!(str_copy = psiconv_make_printable(config,para->text))) 320 if (!(str_copy = psiconv_make_printable(config,para->text)))
330 goto ERROR5; 321 goto ERROR5;
331 psiconv_debug(config,lev+2,off+i+len,"Line %d: %d characters",nr, 322 psiconv_debug(config,lev+2,off+i+len,"Line %d: %d characters",nr,
332 strlen(str_copy) +1); 323 strlen(str_copy) +1);
1234 1225
1235 psiconv_progress(config,lev+2,off+len,"Going to read the icon name"); 1226 psiconv_progress(config,lev+2,off+len,"Going to read the icon name");
1236 (*result)->icon_name = psiconv_read_string(config,buf,lev+2,off+len,&leng,&res); 1227 (*result)->icon_name = psiconv_read_string(config,buf,lev+2,off+len,&leng,&res);
1237 if (res) 1228 if (res)
1238 goto ERROR2; 1229 goto ERROR2;
1239 psiconv_debug(config,lev+2,off+len,"Icon name: %s",(*result)->icon_name);
1240 len += leng; 1230 len += leng;
1241 1231
1242 psiconv_progress(config,lev+2,off+len,"Going to read the icon width"); 1232 psiconv_progress(config,lev+2,off+len,"Going to read the icon width");
1243 (*result)->icon_width = psiconv_read_length(config,buf,lev+2,off+len,&leng,&res); 1233 (*result)->icon_width = psiconv_read_length(config,buf,lev+2,off+len,&leng,&res);
1244 if (res) 1234 if (res)

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

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