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

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

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

Revision 187 Revision 188
114 *length = localstatus?0:4; 114 *length = localstatus?0:4;
115 115
116 return localstatus?0:(temp & 0x7fffffff)*(temp&0x80000000?-1:1); 116 return localstatus?0:(temp & 0x7fffffff)*(temp&0x80000000?-1:1);
117} 117}
118 118
119psiconv_S_t psiconv_read_S(const psiconv_config config,const psiconv_buffer buf, int lev, psiconv_u32 off, 119psiconv_u32 psiconv_read_S(const psiconv_config config,const psiconv_buffer buf, int lev, psiconv_u32 off,
120 int *length,int *status) 120 int *length,int *status)
121{ 121{
122 psiconv_u8 temp; 122 psiconv_u8 temp;
123 psiconv_S_t res; 123 psiconv_u32 res;
124 int len,localstatus; 124 int len,localstatus;
125 125
126 psiconv_progress(config,lev+1,off,"Going to read a S length indicator"); 126 psiconv_progress(config,lev+1,off,"Going to read a S length indicator");
127 temp = psiconv_read_u8(config,buf,lev+2,off,&localstatus); 127 temp = psiconv_read_u8(config,buf,lev+2,off,&localstatus);
128 if (localstatus) 128 if (localstatus)
162 if (length) 162 if (length)
163 *length = 0; 163 *length = 0;
164 return 0; 164 return 0;
165} 165}
166 166
167psiconv_X_t psiconv_read_X(const psiconv_config config,const psiconv_buffer buf, int lev, psiconv_u32 off, 167psiconv_u32 psiconv_read_X(const psiconv_config config,const psiconv_buffer buf, int lev, psiconv_u32 off,
168 int *length, int *status) 168 int *length, int *status)
169{ 169{
170 psiconv_u8 temp; 170 psiconv_u8 temp;
171 psiconv_X_t res; 171 psiconv_u32 res;
172 int len,localstatus; 172 int len,localstatus;
173 173
174 psiconv_progress(config,lev+1,off,"Going to read a X length indicator"); 174 psiconv_progress(config,lev+1,off,"Going to read a X length indicator");
175 temp = psiconv_read_u8(config,buf,lev+2,off,&localstatus); 175 temp = psiconv_read_u8(config,buf,lev+2,off,&localstatus);
176 if (localstatus) 176 if (localstatus)

Legend:
Removed from v.187  
changed lines
  Added in v.188

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