- Timestamp:
- 2012-02-28T13:59:00+13:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/common-src/indexers/mg/lib/bitio_mems.c
r16583 r25147 30 30 31 31 void 32 BIO_Mems_Encode_Start (unsigned char *buf, unsignedlong pos,32 BIO_Mems_Encode_Start (unsigned char *buf, mg_u_long pos, 33 33 mems_bitio_state * bs) 34 34 { … … 46 46 47 47 void 48 BIO_Mems_Decode_Start (unsigned char *buf, unsignedlong pos,48 BIO_Mems_Decode_Start (unsigned char *buf, mg_u_long pos, 49 49 mems_bitio_state * bs) 50 50 { … … 57 57 58 58 void 59 BIO_Mems_Unary_Encode ( unsignedlong val, mems_bitio_state * bs,60 unsignedlong *bits)59 BIO_Mems_Unary_Encode (mg_u_long val, mems_bitio_state * bs, 60 mg_u_long *bits) 61 61 { 62 62 ENCODE_CONTINUE (*bs) … … 69 69 70 70 71 unsignedlong71 mg_u_long 72 72 BIO_Mems_Unary_Decode (mems_bitio_state * bs, 73 unsignedlong *bits)74 { 75 register unsignedlong val;73 mg_u_long *bits) 74 { 75 register mg_u_long val; 76 76 DECODE_CONTINUE (*bs) 77 77 if (bits) … … 90 90 91 91 void 92 BIO_Mems_Binary_Encode ( unsigned long val, unsignedlong b,93 mems_bitio_state * bs, unsignedlong *bits)92 BIO_Mems_Binary_Encode (mg_u_long val, mg_u_long b, 93 mems_bitio_state * bs, mg_u_long *bits) 94 94 { 95 95 ENCODE_CONTINUE (*bs) … … 102 102 103 103 104 unsignedlong105 BIO_Mems_Binary_Decode ( unsignedlong b, mems_bitio_state * bs,106 unsignedlong *bits)107 { 108 register unsignedlong val;104 mg_u_long 105 BIO_Mems_Binary_Decode (mg_u_long b, mems_bitio_state * bs, 106 mg_u_long *bits) 107 { 108 register mg_u_long val; 109 109 DECODE_CONTINUE (*bs) 110 110 if (bits) … … 123 123 124 124 void 125 BIO_Mems_Gamma_Encode ( unsignedlong val, mems_bitio_state * bs,126 unsignedlong *bits)125 BIO_Mems_Gamma_Encode (mg_u_long val, mems_bitio_state * bs, 126 mg_u_long *bits) 127 127 { 128 128 ENCODE_CONTINUE (*bs) … … 135 135 136 136 137 unsignedlong138 BIO_Mems_Gamma_Decode (mems_bitio_state * bs, unsignedlong *bits)139 { 140 register unsignedlong val;137 mg_u_long 138 BIO_Mems_Gamma_Decode (mems_bitio_state * bs, mg_u_long *bits) 139 { 140 register mg_u_long val; 141 141 DECODE_CONTINUE (*bs) 142 142 if (bits) … … 152 152 153 153 void 154 BIO_Mems_Delta_Encode ( unsignedlong val, mems_bitio_state * bs,155 unsignedlong *bits)154 BIO_Mems_Delta_Encode (mg_u_long val, mems_bitio_state * bs, 155 mg_u_long *bits) 156 156 { 157 157 ENCODE_CONTINUE (*bs) … … 164 164 165 165 166 unsignedlong167 BIO_Mems_Delta_Decode (mems_bitio_state * bs, unsignedlong *bits)168 { 169 register unsignedlong val;166 mg_u_long 167 BIO_Mems_Delta_Decode (mems_bitio_state * bs, mg_u_long *bits) 168 { 169 register mg_u_long val; 170 170 DECODE_CONTINUE (*bs) 171 171 if (bits) … … 178 178 179 179 void 180 BIO_Mems_Elias_Encode ( unsigned long val, unsignedlong b, double s,181 mems_bitio_state * bs, unsignedlong *bits)180 BIO_Mems_Elias_Encode (mg_u_long val, mg_u_long b, double s, 181 mems_bitio_state * bs, mg_u_long *bits) 182 182 { 183 183 ENCODE_CONTINUE (*bs) … … 190 190 191 191 192 unsignedlong193 BIO_Mems_Elias_Decode ( unsignedlong b, double s,194 mems_bitio_state * bs, unsignedlong *bits)195 { 196 register unsignedlong val;192 mg_u_long 193 BIO_Mems_Elias_Decode (mg_u_long b, double s, 194 mems_bitio_state * bs, mg_u_long *bits) 195 { 196 register mg_u_long val; 197 197 DECODE_CONTINUE (*bs) 198 198 if (bits) … … 205 205 206 206 void 207 BIO_Mems_Bblock_Encode ( unsigned long val, unsignedlong b,208 mems_bitio_state * bs, unsignedlong *bits)207 BIO_Mems_Bblock_Encode (mg_u_long val, mg_u_long b, 208 mems_bitio_state * bs, mg_u_long *bits) 209 209 { 210 210 ENCODE_CONTINUE (*bs) … … 217 217 218 218 219 unsignedlong220 BIO_Mems_Bblock_Decode ( unsignedlong b, mems_bitio_state * bs,221 unsignedlong *bits)222 { 223 register unsignedlong val;219 mg_u_long 220 BIO_Mems_Bblock_Decode (mg_u_long b, mems_bitio_state * bs, 221 mg_u_long *bits) 222 { 223 register mg_u_long val; 224 224 DECODE_CONTINUE (*bs) 225 225 if (bits) … … 232 232 233 233 void 234 BIO_Mems_Decode_Seek ( unsignedlong pos, mems_bitio_state * bs)234 BIO_Mems_Decode_Seek (mg_u_long pos, mems_bitio_state * bs) 235 235 { 236 236 DECODE_CONTINUE (*bs) … … 240 240 241 241 void 242 BIO_Mems_Encode_Seek ( unsignedlong pos, mems_bitio_state * bs)242 BIO_Mems_Encode_Seek (mg_u_long pos, mems_bitio_state * bs) 243 243 { 244 244 ENCODE_CONTINUE (*bs)
Note:
See TracChangeset
for help on using the changeset viewer.