From 3d0092ba13033a7f502240c12b748cebe6ed84cf Mon Sep 17 00:00:00 2001 From: pcg Date: Tue, 23 Dec 2003 04:52:00 +0000 Subject: *** empty log message *** --- lzf.h | 2 +- lzfP.h | 20 +++++++++++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/lzf.h b/lzf.h index 36b5760..8e3165e 100644 --- a/lzf.h +++ b/lzf.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000-2002 Marc Alexander Lehmann + * Copyright (c) 2000-2003 Marc Alexander Lehmann * * Redistribution and use in source and binary forms, with or without modifica- * tion, are permitted provided that the following conditions are met: diff --git a/lzfP.h b/lzfP.h index 0d64282..03d5921 100644 --- a/lzfP.h +++ b/lzfP.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000-2002 Marc Alexander Lehmann + * Copyright (c) 2000-2003 Marc Alexander Lehmann * * Redistribution and use in source and binary forms, with or without modifica- * tion, are permitted provided that the following conditions are met: @@ -80,11 +80,29 @@ # define INIT_HTAB 0 #endif +/* + * avoid assigning values to errno variable? for some embedding purposes + * (linux kernel for example), this is not + */ +#ifndef AVOID_ERRNO +# define AVOID_ERRNO 0 +#endif + +/* + * Wether to pass the LZF_STATE variable as argument, or allocate it + * on the stack. For small-stack environments, define this to zero. + */ +#ifndef LZF_STATE_ARG +# define LZF_STATE_ARG 1 +#endif + /*****************************************************************************/ /* nothing should be changed below */ typedef unsigned char u8; +typedef const u8 *LZF_STATE[1 << (HLOG)]; + #if !STRICT_ALIGN /* for unaligned accesses we need a 16 bit datatype. */ # include -- cgit v1.2.3