Coverage Report

Created: 2025-06-24 07:01

/src/ghostpdl/base/slzwc.c
Line
Count
Source
1
/* Copyright (C) 2001-2023 Artifex Software, Inc.
2
   All Rights Reserved.
3
4
   This software is provided AS-IS with no warranty, either express or
5
   implied.
6
7
   This software is distributed under license and may not be copied,
8
   modified or distributed except as expressly authorized under the terms
9
   of the license contained in the file LICENSE in this distribution.
10
11
   Refer to licensing information at http://www.artifex.com or contact
12
   Artifex Software, Inc.,  39 Mesa Street, Suite 108A, San Francisco,
13
   CA 94129, USA, for further information.
14
*/
15
16
17
/* Code common to LZW encoding and decoding streams */
18
#include "std.h"
19
#include "strimpl.h"
20
#include "slzwx.h"
21
22
/* Define the structure for the GC. */
23
public_st_LZW_state();
24
25
/* Set defaults */
26
void
27
s_LZW_set_defaults(stream_state * st)
28
98.1k
{
29
98.1k
    stream_LZW_state *const ss = (stream_LZW_state *) st;
30
31
98.1k
    s_LZW_set_defaults_inline(ss);
32
98.1k
}
33
34
/* Release a LZW filter. */
35
void
36
s_LZW_release(stream_state * st)
37
98.1k
{
38
98.1k
    stream_LZW_state *const ss = (stream_LZW_state *) st;
39
40
98.1k
    gs_free_object(st->memory, ss->table.decode, "LZW(close)");
41
98.1k
}