--- chm/extra.c.orig 2013-07-10 11:20:33.000000000 -0700
+++ chm/extra.c 2013-07-10 11:21:36.000000000 -0700
#define FREE(x) free (x); x = NULL
get_uint16 (uint8_t* b) {
get_uint32 (uint8_t* b) {
get_uint64 (uint8_t* b) {
be_encint (unsigned char *buffer, size_t *length)
Finds the first unset bit in memory. Returns the number of set bits found.
Returns -1 if the buffer runs out before we find an unset bit.
ffus (unsigned char* byte, int* bit, size_t *length) {
sr_int(unsigned char* byte, int* bit,
unsigned char s, unsigned char r, size_t *length)
get_leaf_node_offset(struct chmFile *chmfile,
pychm_process_wlc (struct chmFile *chmfile,
uint64_t wlc_count, uint64_t wlc_size,
uint32_t wlc_offset, unsigned char ds,