~ubuntu-branches/ubuntu/vivid/gzip/vivid

« back to all changes in this revision

Viewing changes to gzip.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2011-10-19 11:42:42 UTC
  • mfrom: (4.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20111019114242-d8wiiu8kbvdtgmgj
Tags: 1.4-1ubuntu1
* Merge with Debian testing.  Remaining Ubuntu changes:
  - debian/{control,rules}: Remove the Win32 build and mingw64
    build-dependency, since mingw is in universe, and will remain so for
    the forseeable future.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* gzip.h -- common declarations for all gzip modules
2
2
 
3
 
   Copyright (C) 1997, 1998, 1999, 2001, 2006, 2007 Free Software
 
3
   Copyright (C) 1997-1999, 2001, 2006-2007, 2009-2010 Free Software
4
4
   Foundation, Inc.
5
5
 
6
6
   Copyright (C) 1992-1993 Jean-loup Gailly.
7
7
 
8
8
   This program is free software; you can redistribute it and/or modify
9
9
   it under the terms of the GNU General Public License as published by
10
 
   the Free Software Foundation; either version 2, or (at your option)
 
10
   the Free Software Foundation; either version 3, or (at your option)
11
11
   any later version.
12
12
 
13
13
   This program is distributed in the hope that it will be useful,
47
47
#include <stdio.h>
48
48
#include <sys/types.h> /* for off_t */
49
49
#include <time.h>
50
 
#if defined HAVE_STRING_H || defined STDC_HEADERS
51
 
#  include <string.h>
52
 
#  if !defined STDC_HEADERS && defined HAVE_MEMORY_H && !defined __GNUC__
53
 
#    include <memory.h>
54
 
#  endif
55
 
#  define memzero(s, n)     memset ((voidp)(s), 0, (n))
56
 
#else
57
 
#  include <strings.h>
58
 
#  define strchr            index
59
 
#  define strrchr           rindex
60
 
#  define memcpy(d, s, n)   bcopy((s), (d), (n))
61
 
#  define memcmp(s1, s2, n) bcmp((s1), (s2), (n))
62
 
#  define memzero(s, n)     bzero((s), (n))
63
 
#endif
 
50
#include <string.h>
 
51
#define memzero(s, n) memset ((voidp)(s), 0, (n))
64
52
 
65
53
#ifndef RETSIGTYPE
66
54
#  define RETSIGTYPE void
307
295
        /* in trees.c */
308
296
void ct_init     OF((ush *attr, int *method));
309
297
int  ct_tally    OF((int dist, int lc));
310
 
off_t flush_block OF((char *buf, ulg stored_len, int pad, int eof));
 
298
off_t flush_block OF((char *buf, ulg stored_len, int eof));
311
299
 
312
300
        /* in bits.c */
313
301
void     bi_init    OF((file_t zipfile));
330
318
extern char *gzip_base_name OF((char *fname));
331
319
extern int xunlink        OF((char *fname));
332
320
extern void make_simple_name OF((char *name));
333
 
extern char *add_envopt   OF((int *argcp, char ***argvp, char *env));
334
 
extern void gzip_error    OF((char *m));
 
321
extern char *add_envopt   OF((int *argcp, char ***argvp, char const *env));
 
322
extern void gzip_error    OF((char const *m)) ATTRIBUTE_NORETURN;
335
323
extern void xalloc_die    OF((void)) ATTRIBUTE_NORETURN;
336
 
extern void warning       OF((char *m));
337
 
extern void read_error    OF((void));
338
 
extern void write_error   OF((void));
 
324
extern void warning       OF((char const *m));
 
325
extern void read_error    OF((void)) ATTRIBUTE_NORETURN;
 
326
extern void write_error   OF((void)) ATTRIBUTE_NORETURN;
339
327
extern void display_ratio OF((off_t num, off_t den, FILE *file));
340
328
extern void fprint_off    OF((FILE *, off_t, int));
341
329