- 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_mem.c
r16583 r25147 55 55 56 56 void 57 BIO_Mem_Unary_Encode ( unsignedlong val, mem_bitio_state * bs,58 unsignedlong *bits)57 BIO_Mem_Unary_Encode (mg_u_long val, mem_bitio_state * bs, 58 mg_u_long *bits) 59 59 { 60 60 ENCODE_CONTINUE (*bs) … … 67 67 68 68 69 unsignedlong69 mg_u_long 70 70 BIO_Mem_Unary_Decode (mem_bitio_state * bs, 71 unsignedlong *bits)72 { 73 register unsignedlong val;71 mg_u_long *bits) 72 { 73 register mg_u_long val; 74 74 DECODE_CONTINUE (*bs) 75 75 if (bits) … … 88 88 89 89 void 90 BIO_Mem_Binary_Encode ( unsigned long val, unsignedlong b,91 mem_bitio_state * bs, unsignedlong *bits)90 BIO_Mem_Binary_Encode (mg_u_long val, mg_u_long b, 91 mem_bitio_state * bs, mg_u_long *bits) 92 92 { 93 93 ENCODE_CONTINUE (*bs) … … 100 100 101 101 102 unsignedlong103 BIO_Mem_Binary_Decode ( unsignedlong b, mem_bitio_state * bs,104 unsignedlong *bits)105 { 106 register unsignedlong val;102 mg_u_long 103 BIO_Mem_Binary_Decode (mg_u_long b, mem_bitio_state * bs, 104 mg_u_long *bits) 105 { 106 register mg_u_long val; 107 107 DECODE_CONTINUE (*bs) 108 108 if (bits) … … 121 121 122 122 void 123 BIO_Mem_Gamma_Encode ( unsignedlong val, mem_bitio_state * bs,124 unsignedlong *bits)123 BIO_Mem_Gamma_Encode (mg_u_long val, mem_bitio_state * bs, 124 mg_u_long *bits) 125 125 { 126 126 ENCODE_CONTINUE (*bs) … … 133 133 134 134 135 unsignedlong136 BIO_Mem_Gamma_Decode (mem_bitio_state * bs, unsignedlong *bits)137 { 138 register unsignedlong val;135 mg_u_long 136 BIO_Mem_Gamma_Decode (mem_bitio_state * bs, mg_u_long *bits) 137 { 138 register mg_u_long val; 139 139 DECODE_CONTINUE (*bs) 140 140 if (bits) … … 150 150 151 151 void 152 BIO_Mem_Delta_Encode ( unsignedlong val, mem_bitio_state * bs,153 unsignedlong *bits)152 BIO_Mem_Delta_Encode (mg_u_long val, mem_bitio_state * bs, 153 mg_u_long *bits) 154 154 { 155 155 ENCODE_CONTINUE (*bs) … … 162 162 163 163 164 unsignedlong165 BIO_Mem_Delta_Decode (mem_bitio_state * bs, unsignedlong *bits)166 { 167 register unsignedlong val;164 mg_u_long 165 BIO_Mem_Delta_Decode (mem_bitio_state * bs, mg_u_long *bits) 166 { 167 register mg_u_long val; 168 168 DECODE_CONTINUE (*bs) 169 169 if (bits) … … 176 176 177 177 void 178 BIO_Mem_Elias_Encode ( unsigned long val, unsignedlong b, double s,179 mem_bitio_state * bs, unsignedlong *bits)178 BIO_Mem_Elias_Encode (mg_u_long val, mg_u_long b, double s, 179 mem_bitio_state * bs, mg_u_long *bits) 180 180 { 181 181 ENCODE_CONTINUE (*bs) … … 188 188 189 189 190 unsignedlong191 BIO_Mem_Elias_Decode ( unsignedlong b, double s,192 mem_bitio_state * bs, unsignedlong *bits)193 { 194 register unsignedlong val;190 mg_u_long 191 BIO_Mem_Elias_Decode (mg_u_long b, double s, 192 mem_bitio_state * bs, mg_u_long *bits) 193 { 194 register mg_u_long val; 195 195 DECODE_CONTINUE (*bs) 196 196 if (bits) … … 203 203 204 204 void 205 BIO_Mem_Bblock_Encode ( unsigned long val, unsignedlong b,206 mem_bitio_state * bs, unsignedlong *bits)205 BIO_Mem_Bblock_Encode (mg_u_long val, mg_u_long b, 206 mem_bitio_state * bs, mg_u_long *bits) 207 207 { 208 208 ENCODE_CONTINUE (*bs) … … 215 215 216 216 217 unsignedlong218 BIO_Mem_Bblock_Decode ( unsignedlong b, mem_bitio_state * bs,219 unsignedlong *bits)220 { 221 register unsignedlong val;217 mg_u_long 218 BIO_Mem_Bblock_Decode (mg_u_long b, mem_bitio_state * bs, 219 mg_u_long *bits) 220 { 221 register mg_u_long val; 222 222 DECODE_CONTINUE (*bs) 223 223 if (bits) … … 230 230 231 231 void 232 BIO_Mem_Decode_Seek ( unsignedlong pos, mem_bitio_state * bs)232 BIO_Mem_Decode_Seek (mg_u_long pos, mem_bitio_state * bs) 233 233 { 234 234 DECODE_CONTINUE (*bs)
Note:
See TracChangeset
for help on using the changeset viewer.