Module Name: src
Committed By: tls
Date: Wed Feb 3 03:55:38 UTC 2010
Modified Files:
src/external/bsd/liblzf/dist: lzf.h lzfP.h lzf_c.c lzf_d.c
Log Message:
Adjust liblzf to offer the LZF_STATE_ARG API, which is better for small-stack
environments (think bootblocks etc) and no worse elsewise (you can always
just pass the same state argument...) and have correct prototypes when doing
so.
To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/bsd/liblzf/dist/lzf.h \
src/external/bsd/liblzf/dist/lzfP.h src/external/bsd/liblzf/dist/lzf_c.c \
src/external/bsd/liblzf/dist/lzf_d.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/bsd/liblzf/dist/lzf.h
diff -u src/external/bsd/liblzf/dist/lzf.h:1.1.1.1 src/external/bsd/liblzf/dist/lzf.h:1.2
--- src/external/bsd/liblzf/dist/lzf.h:1.1.1.1 Wed Feb 3 03:50:44 2010
+++ src/external/bsd/liblzf/dist/lzf.h Wed Feb 3 03:55:38 2010
@@ -37,6 +37,8 @@
#ifndef LZF_H
#define LZF_H
+#include "lzfP.h"
+
/***********************************************************************
**
** lzf -- an extremely fast/free compression/decompression-method
@@ -75,8 +77,9 @@
*/
unsigned int
lzf_compress (const void *const in_data, unsigned int in_len,
- void *out_data, unsigned int out_len);
-
+ void *out_data, unsigned int out_len,
+ LZF_STATE htab);
+
/*
* Decompress data compressed with some version of the lzf_compress
* function and stored at location in_data and length in_len. The result
Index: src/external/bsd/liblzf/dist/lzfP.h
diff -u src/external/bsd/liblzf/dist/lzfP.h:1.1.1.1 src/external/bsd/liblzf/dist/lzfP.h:1.2
--- src/external/bsd/liblzf/dist/lzfP.h:1.1.1.1 Wed Feb 3 03:50:45 2010
+++ src/external/bsd/liblzf/dist/lzfP.h Wed Feb 3 03:55:38 2010
@@ -106,7 +106,7 @@
* NOTE: this breaks the prototype in lzf.h.
*/
#ifndef LZF_STATE_ARG
-# define LZF_STATE_ARG 0
+# define LZF_STATE_ARG 1
#endif
/*
Index: src/external/bsd/liblzf/dist/lzf_c.c
diff -u src/external/bsd/liblzf/dist/lzf_c.c:1.1.1.1 src/external/bsd/liblzf/dist/lzf_c.c:1.2
--- src/external/bsd/liblzf/dist/lzf_c.c:1.1.1.1 Wed Feb 3 03:50:45 2010
+++ src/external/bsd/liblzf/dist/lzf_c.c Wed Feb 3 03:55:38 2010
@@ -34,7 +34,7 @@
* either the BSD or the GPL.
*/
-#include "lzfP.h"
+#include "lzf.h"
#define HSIZE (1 << (HLOG))
Index: src/external/bsd/liblzf/dist/lzf_d.c
diff -u src/external/bsd/liblzf/dist/lzf_d.c:1.1.1.1 src/external/bsd/liblzf/dist/lzf_d.c:1.2
--- src/external/bsd/liblzf/dist/lzf_d.c:1.1.1.1 Wed Feb 3 03:50:45 2010
+++ src/external/bsd/liblzf/dist/lzf_d.c Wed Feb 3 03:55:38 2010
@@ -34,7 +34,7 @@
* either the BSD or the GPL.
*/
-#include "lzfP.h"
+#include "lzf.h"
#if AVOID_ERRNO
# define SET_ERRNO(n)