|
Link Here
|
|
|
1 |
--- chm/extra.c.orig 2015-07-05 03:15:19 UTC |
| 2 |
+++ chm/extra.c |
| 3 |
@@ -70,13 +70,13 @@ |
| 4 |
|
| 5 |
#define FREE(x) free (x); x = NULL |
| 6 |
|
| 7 |
-inline uint16_t |
| 8 |
+uint16_t |
| 9 |
get_uint16 (uint8_t* b) { |
| 10 |
return b[0] | |
| 11 |
b[1]<<8; |
| 12 |
} |
| 13 |
|
| 14 |
-inline uint32_t |
| 15 |
+uint32_t |
| 16 |
get_uint32 (uint8_t* b) { |
| 17 |
return b[0] | |
| 18 |
b[1]<<8 | |
| 19 |
@@ -84,7 +84,7 @@ get_uint32 (uint8_t* b) { |
| 20 |
b[3]<<24; |
| 21 |
} |
| 22 |
|
| 23 |
-inline uint64_t |
| 24 |
+uint64_t |
| 25 |
get_uint64 (uint8_t* b) { |
| 26 |
return b[0] | |
| 27 |
b[1]<<8 | |
| 28 |
@@ -117,7 +117,7 @@ be_encint (unsigned char *buffer, size_t |
| 29 |
Finds the first unset bit in memory. Returns the number of set bits found. |
| 30 |
Returns -1 if the buffer runs out before we find an unset bit. |
| 31 |
*/ |
| 32 |
-inline int |
| 33 |
+int |
| 34 |
ffus (unsigned char* byte, int* bit, size_t *length) { |
| 35 |
int bits = 0; |
| 36 |
*length = 0; |
| 37 |
@@ -144,7 +144,7 @@ ffus (unsigned char* byte, int* bit, siz |
| 38 |
} |
| 39 |
|
| 40 |
|
| 41 |
-inline uint64_t |
| 42 |
+uint64_t |
| 43 |
sr_int(unsigned char* byte, int* bit, |
| 44 |
unsigned char s, unsigned char r, size_t *length) |
| 45 |
{ |
| 46 |
@@ -221,7 +221,7 @@ sr_int(unsigned char* byte, int* bit, |
| 47 |
} |
| 48 |
|
| 49 |
|
| 50 |
-inline uint32_t |
| 51 |
+uint32_t |
| 52 |
get_leaf_node_offset(struct chmFile *chmfile, |
| 53 |
const char *text, |
| 54 |
uint32_t initial_offset, |
| 55 |
@@ -294,7 +294,7 @@ get_leaf_node_offset(struct chmFile *chm |
| 56 |
return initial_offset; |
| 57 |
} |
| 58 |
|
| 59 |
-inline int |
| 60 |
+int |
| 61 |
pychm_process_wlc (struct chmFile *chmfile, |
| 62 |
uint64_t wlc_count, uint64_t wlc_size, |
| 63 |
uint32_t wlc_offset, unsigned char ds, |