SpriteHTTPD - embedded HTTP server with read-only filesystem and templating, originally developed for ESP8266, now stand-alone and POSIX compatible.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
spritehttpd/spritehttpd/lib/heatshrink/heatshrink_config.h

40 lines
1.1 KiB

#pragma once
/* Should functionality assuming dynamic allocation be used? */
#ifndef HEATSHRINK_DYNAMIC_ALLOC
#define HEATSHRINK_DYNAMIC_ALLOC 1
#endif
#if HEATSHRINK_DYNAMIC_ALLOC
// forward declare - needed when building the heatshrink compressor
void *httpdPlatMalloc(size_t len);
void httpdPlatFree(void *ptr);
/* Optional replacement of malloc/free */
#define HEATSHRINK_MALLOC(SZ) httpdPlatMalloc(SZ)
#define HEATSHRINK_FREE(P, SZ) httpdPlatFree(P)
#else
/* Required parameters for static configuration */
#ifndef HEATSHRINK_STATIC_INPUT_BUFFER_SIZE
#define HEATSHRINK_STATIC_INPUT_BUFFER_SIZE 32
#endif
#ifndef HEATSHRINK_STATIC_WINDOW_BITS
#define HEATSHRINK_STATIC_WINDOW_BITS 8
#endif
#ifndef HEATSHRINK_STATIC_LOOKAHEAD_BITS
#define HEATSHRINK_STATIC_LOOKAHEAD_BITS 4
#endif
#endif
/* Turn on logging for debugging. */
#ifndef HEATSHRINK_DEBUGGING_LOGS
#define HEATSHRINK_DEBUGGING_LOGS 0
#endif
/* Use indexing for faster compression. (This requires additional space.) */
#ifndef HEATSHRINK_USE_INDEX
#define HEATSHRINK_USE_INDEX 1
#endif