mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-21 23:01:03 +00:00
r2ify lz4 a bit
This commit is contained in:
parent
702afebc66
commit
f1aa3aa4d2
@ -1,4 +1,5 @@
|
||||
include ../../libr/config.mk
|
||||
CFLAGS+=-I../../libr/include
|
||||
# ################################################################
|
||||
# LZ4 library - Makefile
|
||||
# Copyright (C) Yann Collet 2011-2016
|
||||
@ -46,7 +47,7 @@ LIBVER := $(shell echo $(LIBVER_SCRIPT))
|
||||
BUILD_STATIC:=yes
|
||||
|
||||
CPPFLAGS+= -DXXH_NAMESPACE=LZ4_
|
||||
CFLAGS = -O3 -fPIC
|
||||
CFLAGS ?= -O3 -fPIC
|
||||
DEBUGFLAGS:= -Wall -Wextra -Wcast-qual -Wcast-align -Wshadow \
|
||||
-Wswitch-enum -Wdeclaration-after-statement -Wstrict-prototypes \
|
||||
-Wundef -Wpointer-arith -Wstrict-aliasing=1
|
||||
|
1940
shlr/lz4/lz4.c
1940
shlr/lz4/lz4.c
File diff suppressed because it is too large
Load Diff
@ -38,6 +38,7 @@ extern "C" {
|
||||
|
||||
#ifndef LZ4_H_2983827168210
|
||||
#define LZ4_H_2983827168210
|
||||
#include <r_types.h>
|
||||
|
||||
/* --- Dependency --- */
|
||||
#include <stddef.h> /* size_t */
|
||||
@ -242,7 +243,7 @@ typedef union LZ4_stream_u LZ4_stream_t; /* incomplete type (defined later) */
|
||||
* LZ4_freeStream() releases its memory.
|
||||
*/
|
||||
LZ4LIB_API LZ4_stream_t* LZ4_createStream(void);
|
||||
LZ4LIB_API int LZ4_freeStream (LZ4_stream_t* streamPtr);
|
||||
LZ4LIB_API void LZ4_freeStream (LZ4_stream_t* streamPtr);
|
||||
|
||||
/*! LZ4_resetStream() :
|
||||
* An LZ4_stream_t structure can be allocated once and re-used multiple times.
|
||||
@ -292,7 +293,7 @@ typedef union LZ4_streamDecode_u LZ4_streamDecode_t; /* incomplete type (defin
|
||||
* creation / destruction of streaming decompression tracking structure.
|
||||
* A tracking structure can be re-used multiple times sequentially. */
|
||||
LZ4LIB_API LZ4_streamDecode_t* LZ4_createStreamDecode(void);
|
||||
LZ4LIB_API int LZ4_freeStreamDecode (LZ4_streamDecode_t* LZ4_stream);
|
||||
LZ4LIB_API void LZ4_freeStreamDecode (LZ4_streamDecode_t* LZ4_stream);
|
||||
|
||||
/*! LZ4_setStreamDecode() :
|
||||
* An LZ4_streamDecode_t structure can be allocated once and re-used multiple times.
|
||||
|
Loading…
x
Reference in New Issue
Block a user