… | |
… | |
23 | #include <stdlib.h> |
23 | #include <stdlib.h> |
24 | #include <math.h> |
24 | #include <math.h> |
25 | |
25 | |
26 | #include "parse_routines.h" |
26 | #include "parse_routines.h" |
27 | #include "error.h" |
27 | #include "error.h" |
|
|
28 | |
|
|
29 | #ifdef DMALLOC |
|
|
30 | #include <dmalloc.h> |
|
|
31 | #endif |
|
|
32 | |
28 | |
33 | |
29 | int psiconv_parse_color(const psiconv_buffer buf, int lev, psiconv_u32 off, |
34 | int psiconv_parse_color(const psiconv_buffer buf, int lev, psiconv_u32 off, |
30 | int *length, psiconv_color *result) |
35 | int *length, psiconv_color *result) |
31 | { |
36 | { |
32 | int res = 0; |
37 | int res = 0; |
… | |
… | |
449 | "in paragraph layout codes list"); |
454 | "in paragraph layout codes list"); |
450 | result->justify_ver = psiconv_justify_bottom; |
455 | result->justify_ver = psiconv_justify_bottom; |
451 | } |
456 | } |
452 | psiconv_debug(lev+3,off+len,"Justify: %02x",temp); |
457 | psiconv_debug(lev+3,off+len,"Justify: %02x",temp); |
453 | len ++; |
458 | len ++; |
|
|
459 | break; |
454 | case 0x07: |
460 | case 0x07: |
455 | psiconv_progress(lev+3,off+len,"Going to read linespacing distance"); |
461 | psiconv_progress(lev+3,off+len,"Going to read linespacing distance"); |
456 | result->linespacing = psiconv_read_size(buf,lev+3,off+len,&leng,&res); |
462 | result->linespacing = psiconv_read_size(buf,lev+3,off+len,&leng,&res); |
457 | if (res) |
463 | if (res) |
458 | goto ERROR1; |
464 | goto ERROR1; |