~ubuntu-branches/ubuntu/wily/hedgewars/wily

« back to all changes in this revision

Viewing changes to misc/libfreetype/src/gzip/inftrees.h

  • Committer: Package Import Robot
  • Author(s): Dmitry E. Oboukhov
  • Date: 2011-09-23 10:16:55 UTC
  • mfrom: (1.2.11 upstream)
  • Revision ID: package-import@ubuntu.com-20110923101655-3977th2gc5n0a3pv
Tags: 0.9.16-1
* New upstream version.
 + Downloadable content! Simply click to install any content.
   New voices, hats, maps, themes, translations, music, scripts...
   Hedgewars is now more customisable than ever before! As time goes
   by we will be soliciting community content to feature on this page,
   so remember to check it from time to time. If you decide you want
   to go back to standard Hedgewars, just remove the Data directory
   from your Hedgewars config directory.
 + 3-D rendering! Diorama-like rendering of the game in a variety
   of 3D modes. Let us know which ones work best for you, we didn't
   really have the equipment to test them all.
 + Resizable game window.
 + New utilities! The Time Box will remove one of your hedgehogs
   from the game for a while, protecting from attack until it returns,
   somewhere else on the map. Land spray will allow you to build bridges,
   seal up holes, or just make life unpleasant for your enemies.
 + New single player: Bamboo Thicket, That Sinking Feeling, Newton and
   the Tree and multi-player: The Specialists, Space Invaders,
   Racer - scripts! And a ton more script hooks for scripters
 + New twists on old weapons. Drill strike, seduction and fire have
   been adjusted. Defective mines have been added, rope can attach to
   hogs/crates/barrels again, grenades now have variable bounce (use
   precise key + 1-5). Portal gun is now more usable in flight and
   all game actions are a lot faster.
 + New theme - Golf, dozens of new community hats and a new
   localised Default voice, Ukranian.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* inftrees.h -- header to use inftrees.c
 
2
 * Copyright (C) 1995-2002 Mark Adler
 
3
 * For conditions of distribution and use, see copyright notice in zlib.h
 
4
 */
 
5
 
 
6
/* WARNING: this file should *not* be used by applications. It is
 
7
   part of the implementation of the compression library and is
 
8
   subject to change. Applications should only use zlib.h.
 
9
 */
 
10
 
 
11
/* Huffman code lookup table entry--this entry is four bytes for machines
 
12
   that have 16-bit pointers (e.g. PC's in the small or medium model). */
 
13
 
 
14
#ifndef _INFTREES_H
 
15
#define _INFTREES_H
 
16
 
 
17
typedef struct inflate_huft_s FAR inflate_huft;
 
18
 
 
19
struct inflate_huft_s {
 
20
  union {
 
21
    struct {
 
22
      Byte Exop;        /* number of extra bits or operation */
 
23
      Byte Bits;        /* number of bits in this code or subcode */
 
24
    } what;
 
25
    uInt pad;           /* pad structure to a power of 2 (4 bytes for */
 
26
  } word;               /*  16-bit, 8 bytes for 32-bit int's) */
 
27
  uInt base;            /* literal, length base, distance base,
 
28
                           or table offset */
 
29
};
 
30
 
 
31
/* Maximum size of dynamic tree.  The maximum found in a long but non-
 
32
   exhaustive search was 1004 huft structures (850 for length/literals
 
33
   and 154 for distances, the latter actually the result of an
 
34
   exhaustive search).  The actual maximum is not known, but the
 
35
   value below is more than safe. */
 
36
#define MANY 1440
 
37
 
 
38
local  int inflate_trees_bits OF((
 
39
    uIntf *,                    /* 19 code lengths */
 
40
    uIntf *,                    /* bits tree desired/actual depth */
 
41
    inflate_huft * FAR *,       /* bits tree result */
 
42
    inflate_huft *,             /* space for trees */
 
43
    z_streamp));                /* for messages */
 
44
 
 
45
local  int inflate_trees_dynamic OF((
 
46
    uInt,                       /* number of literal/length codes */
 
47
    uInt,                       /* number of distance codes */
 
48
    uIntf *,                    /* that many (total) code lengths */
 
49
    uIntf *,                    /* literal desired/actual bit depth */
 
50
    uIntf *,                    /* distance desired/actual bit depth */
 
51
    inflate_huft * FAR *,       /* literal/length tree result */
 
52
    inflate_huft * FAR *,       /* distance tree result */
 
53
    inflate_huft *,             /* space for trees */
 
54
    z_streamp));                /* for messages */
 
55
 
 
56
local  int inflate_trees_fixed OF((
 
57
    uIntf *,                    /* literal desired/actual bit depth */
 
58
    uIntf *,                    /* distance desired/actual bit depth */
 
59
    const inflate_huft * FAR *, /* literal/length tree result */
 
60
    const inflate_huft * FAR *, /* distance tree result */
 
61
    z_streamp));                /* for memory allocation */
 
62
 
 
63
#endif /* _INFTREES_H */