Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nemequ/liblzf.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpcg <pcg>2003-12-23 07:52:00 +0300
committerpcg <pcg>2003-12-23 07:52:00 +0300
commit3dc6bed9b0a013c2c072a936c355d19ca5928a02 (patch)
tree3ad20b59dc62ff1ef5511538c5f899b14c5e6231 /lzf_c.c
parent36e69754a1fb8c7b51cdd648c07615e4972ab7b4 (diff)
*** empty log message ***
Diffstat (limited to 'lzf_c.c')
-rw-r--r--lzf_c.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/lzf_c.c b/lzf_c.c
index 7cd7041..0c94baa 100644
--- a/lzf_c.c
+++ b/lzf_c.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2000-2002 Marc Alexander Lehmann <pcg@goof.com>
+ * Copyright (c) 2000-2003 Marc Alexander Lehmann <pcg@goof.com>
*
* Redistribution and use in source and binary forms, with or without modifica-
* tion, are permitted provided that the following conditions are met:
@@ -68,12 +68,18 @@
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
+#if !LZF_STATE_ARG
+ , LZF_STATE *htab
+#endif
+ )
{
- const u8 *htab[HSIZE];
+#if LZF_STATE_ARG
+ LZF_STATE htab;
+#endif
const u8 **hslot;
- const u8 *ip = in_data;
- u8 *op = out_data;
+ const u8 *ip = (const u8 *)in_data;
+ u8 *op = (u8 *)out_data;
const u8 *in_end = ip + in_len;
u8 *out_end = op + out_len;
const u8 *ref;