- 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_stdio.c
r16583 r25147 72 72 73 73 void 74 BIO_Stdio_Unary_Encode ( unsignedlong val, stdio_bitio_state * bs,75 unsignedlong *bits)74 BIO_Stdio_Unary_Encode (mg_u_long val, stdio_bitio_state * bs, 75 mg_u_long *bits) 76 76 { 77 77 ENCODE_CONTINUE (*bs) … … 84 84 85 85 86 unsignedlong86 mg_u_long 87 87 BIO_Stdio_Unary_Decode (stdio_bitio_state * bs, 88 unsignedlong *bits)89 { 90 register unsignedlong val;88 mg_u_long *bits) 89 { 90 register mg_u_long val; 91 91 DECODE_CONTINUE (*bs) 92 92 if (bits) … … 105 105 106 106 void 107 BIO_Stdio_Binary_Encode ( unsigned long val, unsignedlong b,108 stdio_bitio_state * bs, unsignedlong *bits)107 BIO_Stdio_Binary_Encode (mg_u_long val, mg_u_long b, 108 stdio_bitio_state * bs, mg_u_long *bits) 109 109 { 110 110 ENCODE_CONTINUE (*bs) … … 117 117 118 118 119 unsignedlong120 BIO_Stdio_Binary_Decode ( unsignedlong b, stdio_bitio_state * bs,121 unsignedlong *bits)122 { 123 register unsignedlong val;119 mg_u_long 120 BIO_Stdio_Binary_Decode (mg_u_long b, stdio_bitio_state * bs, 121 mg_u_long *bits) 122 { 123 register mg_u_long val; 124 124 DECODE_CONTINUE (*bs) 125 125 if (bits) … … 138 138 139 139 void 140 BIO_Stdio_Gamma_Encode ( unsignedlong val, stdio_bitio_state * bs,141 unsignedlong *bits)140 BIO_Stdio_Gamma_Encode (mg_u_long val, stdio_bitio_state * bs, 141 mg_u_long *bits) 142 142 { 143 143 ENCODE_CONTINUE (*bs) … … 150 150 151 151 152 unsignedlong152 mg_u_long 153 153 BIO_Stdio_Gamma_Decode (stdio_bitio_state * bs, 154 unsignedlong *bits)155 { 156 register unsignedlong val;154 mg_u_long *bits) 155 { 156 register mg_u_long val; 157 157 DECODE_CONTINUE (*bs) 158 158 if (bits) … … 168 168 169 169 void 170 BIO_Stdio_Delta_Encode ( unsignedlong val, stdio_bitio_state * bs,171 unsignedlong *bits)170 BIO_Stdio_Delta_Encode (mg_u_long val, stdio_bitio_state * bs, 171 mg_u_long *bits) 172 172 { 173 173 ENCODE_CONTINUE (*bs) … … 180 180 181 181 182 unsignedlong182 mg_u_long 183 183 BIO_Stdio_Delta_Decode (stdio_bitio_state * bs, 184 unsignedlong *bits)185 { 186 register unsignedlong val;184 mg_u_long *bits) 185 { 186 register mg_u_long val; 187 187 DECODE_CONTINUE (*bs) 188 188 if (bits) … … 198 198 199 199 void 200 BIO_Stdio_Elias_Encode ( unsigned long val, unsignedlong b, double s,201 stdio_bitio_state * bs, unsignedlong *bits)200 BIO_Stdio_Elias_Encode (mg_u_long val, mg_u_long b, double s, 201 stdio_bitio_state * bs, mg_u_long *bits) 202 202 { 203 203 ENCODE_CONTINUE (*bs) … … 210 210 211 211 212 unsignedlong213 BIO_Stdio_Elias_Decode ( unsignedlong b, double s,212 mg_u_long 213 BIO_Stdio_Elias_Decode (mg_u_long b, double s, 214 214 stdio_bitio_state * bs, 215 unsignedlong *bits)216 { 217 register unsignedlong val;215 mg_u_long *bits) 216 { 217 register mg_u_long val; 218 218 DECODE_CONTINUE (*bs) 219 219 if (bits) … … 228 228 229 229 void 230 BIO_Stdio_Bblock_Encode ( unsigned long val, unsignedlong b,231 stdio_bitio_state * bs, unsignedlong *bits)230 BIO_Stdio_Bblock_Encode (mg_u_long val, mg_u_long b, 231 stdio_bitio_state * bs, mg_u_long *bits) 232 232 { 233 233 ENCODE_CONTINUE (*bs) … … 240 240 241 241 242 unsignedlong243 BIO_Stdio_Bblock_Decode ( unsignedlong b, stdio_bitio_state * bs,244 unsignedlong *bits)245 { 246 register unsignedlong val;242 mg_u_long 243 BIO_Stdio_Bblock_Decode (mg_u_long b, stdio_bitio_state * bs, 244 mg_u_long *bits) 245 { 246 register mg_u_long val; 247 247 DECODE_CONTINUE (*bs) 248 248 if (bits) … … 255 255 256 256 void 257 BIO_Stdio_Decode_Seek ( unsignedlong pos, stdio_bitio_state * bs)257 BIO_Stdio_Decode_Seek (mg_u_long pos, stdio_bitio_state * bs) 258 258 { 259 259 DECODE_CONTINUE (*bs)
Note:
See TracChangeset
for help on using the changeset viewer.