MeterLogger
heatshrink_config.h
Go to the documentation of this file.
1 #ifndef HEATSHRINK_CONFIG_H
2 #define HEATSHRINK_CONFIG_H
3 
4 /* Should functionality assuming dynamic allocation be used? */
5 #define HEATSHRINK_DYNAMIC_ALLOC 1
6 
7 #if HEATSHRINK_DYNAMIC_ALLOC
8  /* Optional replacement of malloc/free */
9  #define HEATSHRINK_MALLOC(SZ) malloc(SZ)
10  #define HEATSHRINK_FREE(P, SZ) free(P)
11 #else
12  /* Required parameters for static configuration */
13  #define HEATSHRINK_STATIC_INPUT_BUFFER_SIZE 32
14  #define HEATSHRINK_STATIC_WINDOW_BITS 8
15  #define HEATSHRINK_STATIC_LOOKAHEAD_BITS 4
16 #endif
17 
18 /* Turn on logging for debugging. */
19 #define HEATSHRINK_DEBUGGING_LOGS 0
20 
21 /* Use indexing for faster compression. (This requires additional space.) */
22 #define HEATSHRINK_USE_INDEX 1
23 
24 #endif