ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/liblzf/lzfP.h
(Generate patch)

Comparing liblzf/lzfP.h (file contents):
Revision 1.4 by pcg, Wed Oct 15 00:58:48 2003 UTC vs.
Revision 1.6 by pcg, Tue Dec 23 04:58:04 2003 UTC

1/* 1/*
2 * Copyright (c) 2000-2002 Marc Alexander Lehmann <pcg@goof.com> 2 * Copyright (c) 2000-2003 Marc Alexander Lehmann <pcg@goof.com>
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without modifica- 4 * Redistribution and use in source and binary forms, with or without modifica-
5 * tion, are permitted provided that the following conditions are met: 5 * tion, are permitted provided that the following conditions are met:
6 * 6 *
7 * 1. Redistributions of source code must retain the above copyright notice, 7 * 1. Redistributions of source code must retain the above copyright notice,
78 */ 78 */
79#ifndef INIT_HTAB 79#ifndef INIT_HTAB
80# define INIT_HTAB 0 80# define INIT_HTAB 0
81#endif 81#endif
82 82
83/*
84 * avoid assigning values to errno variable? for some embedding purposes
85 * (linux kernel for example), this is neccessary. NOTE: this breaks
86 * the documentation in lzf.h.
87 */
88#ifndef AVOID_ERRNO
89# define AVOID_ERRNO 0
90#endif
91
92/*
93 * Wether to pass the LZF_STATE variable as argument, or allocate it
94 * on the stack. For small-stack environments, define this to zero.
95 * NOTE: this breaks the prototype in lzf.h.
96 */
97#ifndef LZF_STATE_ARG
98# define LZF_STATE_ARG 1
99#endif
100
83/*****************************************************************************/ 101/*****************************************************************************/
84/* nothing should be changed below */ 102/* nothing should be changed below */
85 103
86typedef unsigned char u8; 104typedef unsigned char u8;
105
106typedef const u8 *LZF_STATE[1 << (HLOG)];
87 107
88#if !STRICT_ALIGN 108#if !STRICT_ALIGN
89/* for unaligned accesses we need a 16 bit datatype. */ 109/* for unaligned accesses we need a 16 bit datatype. */
90# include <limits.h> 110# include <limits.h>
91# if USHRT_MAX == 65535 111# if USHRT_MAX == 65535

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines