diff options
| author | pcg <pcg> | 2003-12-23 04:52:00 +0000 | 
|---|---|---|
| committer | pcg <pcg> | 2003-12-23 04:52:00 +0000 | 
| commit | 3d0092ba13033a7f502240c12b748cebe6ed84cf (patch) | |
| tree | c8987fd2c3776fa645fd573763cde3434ad4ba19 | |
| parent | a503882c95b9fc1de52d256c2d341373e8942253 (diff) | |
*** empty log message ***
| -rw-r--r-- | lzf.h | 2 | ||||
| -rw-r--r-- | lzfP.h | 20 | 
2 files changed, 20 insertions, 2 deletions
| @@ -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: @@ -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: @@ -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 <limits.h> | 
