Changeset c29ecea5 in rtems


Ignore:
Timestamp:
Mar 18, 2011, 10:11:47 AM (9 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.11, master
Children:
4f05dd9, c80c2f2
Parents:
bf6f9b3d
Message:

Import from zlib-1.2.5

Location:
cpukit/zlib
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • cpukit/zlib/crc32.c

    rbf6f9b3d rc29ecea5  
    11/* crc32.c -- compute the CRC-32 of a data stream
    2  * Copyright (C) 1995-2006 Mark Adler
     2 * Copyright (C) 1995-2006, 2010 Mark Adler
    33 * For conditions of distribution and use, see copyright notice in zlib.h
    44 *
     
    222222    unsigned long crc;
    223223    const unsigned char FAR *buf;
    224     unsigned len;
     224    uInt len;
    225225{
    226226    if (buf == Z_NULL) return 0UL;
  • cpukit/zlib/inffast.c

    rbf6f9b3d rc29ecea5  
    11/* inffast.c -- fast decoding
    2  * Copyright (C) 1995-2008 Mark Adler
     2 * Copyright (C) 1995-2008, 2010 Mark Adler
    33 * For conditions of distribution and use, see copyright notice in zlib.h
    44 */
     
    6565      output space.
    6666 */
    67 void inflate_fast(strm, start)
     67void ZLIB_INTERNAL inflate_fast(strm, start)
    6868z_streamp strm;
    6969unsigned start;         /* inflate()'s starting value for strm->avail_out */
  • cpukit/zlib/inffast.h

    rbf6f9b3d rc29ecea5  
    11/* inffast.h -- header to use inffast.c
    2  * Copyright (C) 1995-2003 Mark Adler
     2 * Copyright (C) 1995-2003, 2010 Mark Adler
    33 * For conditions of distribution and use, see copyright notice in zlib.h
    44 */
     
    99 */
    1010
    11 void inflate_fast OF((z_streamp strm, unsigned start));
     11void ZLIB_INTERNAL inflate_fast OF((z_streamp strm, unsigned start));
  • cpukit/zlib/inftrees.h

    rbf6f9b3d rc29ecea5  
    11/* inftrees.h -- header to use inftrees.c
    2  * Copyright (C) 1995-2005 Mark Adler
     2 * Copyright (C) 1995-2005, 2010 Mark Adler
    33 * For conditions of distribution and use, see copyright notice in zlib.h
    44 */
     
    5858} codetype;
    5959
    60 extern int inflate_table OF((codetype type, unsigned short FAR *lens,
     60int ZLIB_INTERNAL inflate_table OF((codetype type, unsigned short FAR *lens,
    6161                             unsigned codes, code FAR * FAR *table,
    6262                             unsigned FAR *bits, unsigned short FAR *work));
  • cpukit/zlib/zutil.c

    rbf6f9b3d rc29ecea5  
    11/* zutil.c -- target dependent utility functions for the compression library
    2  * Copyright (C) 1995-2005 Jean-loup Gailly.
     2 * Copyright (C) 1995-2005, 2010 Jean-loup Gailly.
    33 * For conditions of distribution and use, see copyright notice in zlib.h
    44 */
     
    118118#    define verbose 0
    119119#  endif
    120 int z_verbose = verbose;
    121 
    122 void z_error (m)
     120int ZLIB_INTERNAL z_verbose = verbose;
     121
     122void ZLIB_INTERNAL z_error (m)
    123123    char *m;
    124124{
     
    147147#ifndef HAVE_MEMCPY
    148148
    149 void zmemcpy(dest, source, len)
     149void ZLIB_INTERNAL zmemcpy(dest, source, len)
    150150    Bytef* dest;
    151151    const Bytef* source;
     
    158158}
    159159
    160 int zmemcmp(s1, s2, len)
     160int ZLIB_INTERNAL zmemcmp(s1, s2, len)
    161161    const Bytef* s1;
    162162    const Bytef* s2;
     
    171171}
    172172
    173 void zmemzero(dest, len)
     173void ZLIB_INTERNAL zmemzero(dest, len)
    174174    Bytef* dest;
    175175    uInt  len;
     
    214214 */
    215215
    216 voidpf zcalloc (voidpf opaque, unsigned items, unsigned size)
     216voidpf ZLIB_INTERNAL zcalloc (voidpf opaque, unsigned items, unsigned size)
    217217{
    218218    voidpf buf = opaque; /* just to make some compilers happy */
     
    238238}
    239239
    240 void zcfree (voidpf opaque, voidpf ptr)
     240void ZLIB_INTERNAL zcfree (voidpf opaque, voidpf ptr)
    241241{
    242242    int n;
     
    273273#endif
    274274
    275 voidpf zcalloc (voidpf opaque, unsigned items, unsigned size)
     275voidpf ZLIB_INTERNAL zcalloc (voidpf opaque, uInt items, uInt size)
    276276{
    277277    if (opaque) opaque = 0; /* to make compiler happy */
     
    279279}
    280280
    281 void zcfree (voidpf opaque, voidpf ptr)
     281void ZLIB_INTERNAL zcfree (voidpf opaque, voidpf ptr)
    282282{
    283283    if (opaque) opaque = 0; /* to make compiler happy */
     
    298298#endif
    299299
    300 voidpf zcalloc (opaque, items, size)
     300voidpf ZLIB_INTERNAL zcalloc (opaque, items, size)
    301301    voidpf opaque;
    302302    unsigned items;
     
    308308}
    309309
    310 void zcfree (opaque, ptr)
     310void ZLIB_INTERNAL zcfree (opaque, ptr)
    311311    voidpf opaque;
    312312    voidpf ptr;
Note: See TracChangeset for help on using the changeset viewer.