| … | |
… | |
| 46 | /* ****************** |
46 | /* ****************** |
| 47 | * parse_simple.c * |
47 | * parse_simple.c * |
| 48 | ****************** */ |
48 | ****************** */ |
| 49 | |
49 | |
| 50 | extern psiconv_u8 psiconv_read_u8(const psiconv_buffer buf,int lev, |
50 | extern psiconv_u8 psiconv_read_u8(const psiconv_buffer buf,int lev, |
| 51 | psiconv_u32 off); |
51 | psiconv_u32 off, int *status); |
| 52 | extern psiconv_u16 psiconv_read_u16(const psiconv_buffer buf,int lev, |
52 | extern psiconv_u16 psiconv_read_u16(const psiconv_buffer buf,int lev, |
| 53 | psiconv_u32 off); |
53 | psiconv_u32 off, int *status); |
| 54 | extern psiconv_u32 psiconv_read_u32(const psiconv_buffer buf,int lev, |
54 | extern psiconv_u32 psiconv_read_u32(const psiconv_buffer buf,int lev, |
| 55 | psiconv_u32 off); |
55 | psiconv_u32 off, int *status); |
| 56 | |
56 | |
| 57 | extern psiconv_S_t psiconv_read_S(const psiconv_buffer buf, int lev, |
57 | extern psiconv_S_t psiconv_read_S(const psiconv_buffer buf, int lev, |
| 58 | psiconv_u32 off, int *length); |
58 | psiconv_u32 off, int *length, int *status); |
| 59 | extern psiconv_X_t psiconv_read_X(const psiconv_buffer buf, int lev, |
59 | extern psiconv_X_t psiconv_read_X(const psiconv_buffer buf, int lev, |
| 60 | psiconv_u32 off, int *length); |
60 | psiconv_u32 off, int *length, int *status); |
| 61 | extern psiconv_length_t psiconv_read_length(const psiconv_buffer buf, int lev, |
61 | extern psiconv_length_t psiconv_read_length(const psiconv_buffer buf, int lev, |
| 62 | psiconv_u32 off, int *length); |
62 | psiconv_u32 off, int *length, |
|
|
63 | int *status); |
| 63 | extern psiconv_size_t psiconv_read_size (const psiconv_buffer buf, int lev, |
64 | extern psiconv_size_t psiconv_read_size (const psiconv_buffer buf, int lev, |
| 64 | psiconv_u32 off, int *length); |
65 | psiconv_u32 off, int *length, |
|
|
66 | int *status); |
| 65 | extern psiconv_string_t psiconv_read_string(const psiconv_buffer buf,int lev, |
67 | extern psiconv_string_t psiconv_read_string(const psiconv_buffer buf,int lev, |
| 66 | psiconv_u32 off,int *length); |
68 | psiconv_u32 off,int *length, |
|
|
69 | int *status); |
| 67 | |
70 | |
| 68 | extern int psiconv_parse_bool(const psiconv_buffer buf, int lev, |
71 | extern int psiconv_parse_bool(const psiconv_buffer buf, int lev, |
| 69 | psiconv_u32 off, int *length, |
72 | psiconv_u32 off, int *length, |
| 70 | psiconv_bool_t *result); |
73 | psiconv_bool_t *result); |
| 71 | |
74 | |
| … | |
… | |
| 91 | psiconv_bullet *result); |
94 | psiconv_bullet *result); |
| 92 | |
95 | |
| 93 | extern int psiconv_parse_tab(const psiconv_buffer buf, int lev, |
96 | extern int psiconv_parse_tab(const psiconv_buffer buf, int lev, |
| 94 | psiconv_u32 off, int *length, |
97 | psiconv_u32 off, int *length, |
| 95 | psiconv_tab *result); |
98 | psiconv_tab *result); |
|
|
99 | |
|
|
100 | /* Note: the next two are special, because they modify an existing |
|
|
101 | layout structure! If it exits due to an unexpected error, part |
|
|
102 | of the structure may be modified, but it is still safe to call |
|
|
103 | psiconv_free_{paragraph,character}_layout_list on it (and that |
|
|
104 | is the only safe thing to do!) */ |
| 96 | |
105 | |
| 97 | extern int psiconv_parse_paragraph_layout_list(const psiconv_buffer buf, |
106 | extern int psiconv_parse_paragraph_layout_list(const psiconv_buffer buf, |
| 98 | int lev, psiconv_u32 off, int *length, |
107 | int lev, psiconv_u32 off, int *length, |
| 99 | psiconv_paragraph_layout result); |
108 | psiconv_paragraph_layout result); |
| 100 | |
109 | |