zopen.c (6f2d3221) zopen.c (821df508)
1/*-
2 * Copyright (c) 1985, 1986, 1992, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Diomidis Spinellis and James A. Woods, derived from original
7 * work by Spencer Thomas and Joseph Orost.
8 *

--- 53 unchanged lines hidden (view full) ---

62 * reading the file is decompressed, on writing it is compressed.
63 * The output is compatible with compress(1) with 16 bit tables.
64 * Any file produced by compress(1) can be read.
65 */
66
67#include <sys/param.h>
68#include <sys/stat.h>
69
1/*-
2 * Copyright (c) 1985, 1986, 1992, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Diomidis Spinellis and James A. Woods, derived from original
7 * work by Spencer Thomas and Joseph Orost.
8 *

--- 53 unchanged lines hidden (view full) ---

62 * reading the file is decompressed, on writing it is compressed.
63 * The output is compatible with compress(1) with 16 bit tables.
64 * Any file produced by compress(1) can be read.
65 */
66
67#include <sys/param.h>
68#include <sys/stat.h>
69
70#include <ctype.h>
70#include <errno.h>
71#include <signal.h>
72#include <stdio.h>
73#include <stdlib.h>
74#include <string.h>
71#include <errno.h>
72#include <signal.h>
73#include <stdio.h>
74#include <stdlib.h>
75#include <string.h>
76#include <unistd.h>
75#include "zopen.h"
76
77#define BITS 16 /* Default bits. */
78#define HSIZE 69001 /* 95% occupancy */
79
80/* A code_int must be able to hold 2**BITS values of type int, and also -1. */
81typedef long code_int;
82typedef long count_int;

--- 647 unchanged lines hidden ---
77#include "zopen.h"
78
79#define BITS 16 /* Default bits. */
80#define HSIZE 69001 /* 95% occupancy */
81
82/* A code_int must be able to hold 2**BITS values of type int, and also -1. */
83typedef long code_int;
84typedef long count_int;

--- 647 unchanged lines hidden ---