Subversion Repositories planix.SVN

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
/* Copyright (C) 1995, 1996, 1998 Aladdin Enterprises.  All rights reserved.
2
 
3
  This software is provided AS-IS with no warranty, either express or
4
  implied.
5
 
6
  This software is distributed under license and may not be copied,
7
  modified or distributed except as expressly authorized under the terms
8
  of the license contained in the file LICENSE in this distribution.
9
 
10
  For more information about licensing, please refer to
11
  http://www.ghostscript.com/licensing/. For information on
12
  commercial licensing, go to http://www.artifex.com/licensing/ or
13
  contact Artifex Software, Inc., 101 Lucas Valley Road #110,
14
  San Rafael, CA  94903, U.S.A., +1(415)492-9861.
15
*/
16
 
17
/* $Id: slzwc.c,v 1.4 2002/02/21 22:24:54 giles Exp $ */
18
/* Code common to LZW encoding and decoding streams */
19
#include "std.h"
20
#include "strimpl.h"
21
#include "slzwx.h"
22
 
23
/* Define the structure for the GC. */
24
public_st_LZW_state();
25
 
26
/* Set defaults */
27
void
28
s_LZW_set_defaults(stream_state * st)
29
{
30
    stream_LZW_state *const ss = (stream_LZW_state *) st;
31
 
32
    s_LZW_set_defaults_inline(ss);
33
}
34
 
35
/* Release a LZW filter. */
36
void
37
s_LZW_release(stream_state * st)
38
{
39
    stream_LZW_state *const ss = (stream_LZW_state *) st;
40
 
41
    gs_free_object(st->memory, ss->table.decode, "LZW(close)");
42
}