~ubuntu-branches/debian/sid/openchange/sid

« back to all changes in this revision

Viewing changes to libmapi/lzfu.c

  • Committer: Package Import Robot
  • Author(s): Jelmer Vernooij
  • Date: 2012-04-12 20:07:57 UTC
  • mfrom: (11 sid)
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: package-import@ubuntu.com-20120412200757-k933d9trljmxj1l4
Tags: 1:1.0-4
* openchangeserver: Add dependency on openchangeproxy.
* Rebuild against newer version of Samba 4.
* Use dpkg-buildflags.
* Migrate to Git, update Vcs-Git header.
* Switch to debhelper 9.

Show diffs side-by-side

added added

removed removed

Lines of Context:
195
195
        LE32_CPU(header->dwMagic);  
196
196
        LE32_CPU(header->dwCRC);
197
197
 
 
198
        /*
198
199
        DEBUG(2, ("COMPSIZE = 0x%x\n", header->cbSize));
199
200
        DEBUG(2, ("RAWSIZE = 0x%x\n", header->cbRawSize));
200
201
        DEBUG(2, ("COMPTYPE = 0x%08x\n", header->dwMagic)); // TODO: make this look like MS-OXRTFCP examples
201
202
        DEBUG(2, ("CRC = 0x%08x\n", header->dwCRC));
 
203
        */
202
204
}
203
205
 
204
206
static enum MAPISTATUS verify_header(uint8_t *header_data, uint32_t in_size, lzfuheader *header)
231
233
static uint8_t get_next_control(decompression_state *state)
232
234
{
233
235
        uint8_t c = get_next_byte(state);
234
 
        DEBUG(3, ("control: 0x%02x\n", c));
 
236
        /* DEBUG(3, ("control: 0x%02x\n", c)); */
235
237
        return c;
236
238
}
237
239
 
238
240
static uint8_t get_next_literal(decompression_state *state)
239
241
{
240
242
        uint8_t c = get_next_byte(state);
241
 
        if (isprint(c)) {
 
243
        /* if (isprint(c)) {
242
244
                DEBUG(3, ("literal %c\n", c));
243
245
        } else {
244
246
                DEBUG(3, ("literal 0x%02x\n", c));
245
 
        }
 
247
                } */
246
248
        return c;
247
249
}
248
250
 
280
282
static char get_dictionary_entry(decompression_state *state, uint32_t index)
281
283
{
282
284
        char c = state->dict[index % LZFU_DICTLENGTH];
283
 
        if (isprint(c)) {
 
285
        /* if (isprint(c)) {
284
286
                DEBUG(3, ("dict entry %i: %c\n", index, c));
285
287
        } else {
286
288
                DEBUG(3, ("dict entry 0x%04x: 0x%02x\n", index, c));
287
 
        }
 
289
                } */
288
290
        return c;
289
291
}
290
292