Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/liblzf/dist remove function parameter names fro...



details:   https://anonhg.NetBSD.org/src/rev/a2d44b6b43ca
branches:  trunk
changeset: 763824:a2d44b6b43ca
user:      agc <agc%NetBSD.org@localhost>
date:      Mon Apr 04 20:37:48 2011 +0000

description:
remove function parameter names from function prototypes

make the lzf_compress() prototype match the function definition - the
prototype always added the state table argument, although it should be
conditionally compiled in.  use the same cpp magic as in the source
file to prototype the function in the header file.

diffstat:

 external/bsd/liblzf/dist/lzf.h |  13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diffs (30 lines):

diff -r 602547eedbf9 -r a2d44b6b43ca external/bsd/liblzf/dist/lzf.h
--- a/external/bsd/liblzf/dist/lzf.h    Mon Apr 04 20:37:44 2011 +0000
+++ b/external/bsd/liblzf/dist/lzf.h    Mon Apr 04 20:37:48 2011 +0000
@@ -76,9 +76,12 @@
  *
  */
 unsigned int 
-lzf_compress (const void *const in_data,  unsigned int in_len,
-              void             *out_data, unsigned int out_len,
-             LZF_STATE htab);
+lzf_compress (const void *const,  unsigned int,
+              void             *, unsigned int 
+#if LZF_STATE_ARG
+             , LZF_STATE
+#endif
+             );
         
 /*
  * Decompress data compressed with some version of the lzf_compress
@@ -96,8 +99,8 @@
  * This function is very fast, about as fast as a copying loop.
  */
 unsigned int 
-lzf_decompress (const void *const in_data,  unsigned int in_len,
-                void             *out_data, unsigned int out_len);
+lzf_decompress (const void *const ,  unsigned int,
+                void             *, unsigned int);
 
 #endif
 



Home | Main Index | Thread Index | Old Index