annotate src/zlib-1.2.8/contrib/puff/puff.h @ 78:7ea7031c0e5c
pa_catalina
Apply patch from Tim Bunnell on PortAudio mailing list (2016-12-28, Mac 10.11 deprecation warning)
author |
Chris Cannam |
date |
Wed, 30 Oct 2019 11:28:45 +0000 |
parents |
5ea0608b923f |
children |
|
rev |
line source |
Chris@43
|
1 /* puff.h
|
Chris@43
|
2 Copyright (C) 2002-2013 Mark Adler, all rights reserved
|
Chris@43
|
3 version 2.3, 21 Jan 2013
|
Chris@43
|
4
|
Chris@43
|
5 This software is provided 'as-is', without any express or implied
|
Chris@43
|
6 warranty. In no event will the author be held liable for any damages
|
Chris@43
|
7 arising from the use of this software.
|
Chris@43
|
8
|
Chris@43
|
9 Permission is granted to anyone to use this software for any purpose,
|
Chris@43
|
10 including commercial applications, and to alter it and redistribute it
|
Chris@43
|
11 freely, subject to the following restrictions:
|
Chris@43
|
12
|
Chris@43
|
13 1. The origin of this software must not be misrepresented; you must not
|
Chris@43
|
14 claim that you wrote the original software. If you use this software
|
Chris@43
|
15 in a product, an acknowledgment in the product documentation would be
|
Chris@43
|
16 appreciated but is not required.
|
Chris@43
|
17 2. Altered source versions must be plainly marked as such, and must not be
|
Chris@43
|
18 misrepresented as being the original software.
|
Chris@43
|
19 3. This notice may not be removed or altered from any source distribution.
|
Chris@43
|
20
|
Chris@43
|
21 Mark Adler madler@alumni.caltech.edu
|
Chris@43
|
22 */
|
Chris@43
|
23
|
Chris@43
|
24
|
Chris@43
|
25 /*
|
Chris@43
|
26 * See puff.c for purpose and usage.
|
Chris@43
|
27 */
|
Chris@43
|
28 #ifndef NIL
|
Chris@43
|
29 # define NIL ((unsigned char *)0) /* for no output option */
|
Chris@43
|
30 #endif
|
Chris@43
|
31
|
Chris@43
|
32 int puff(unsigned char *dest, /* pointer to destination pointer */
|
Chris@43
|
33 unsigned long *destlen, /* amount of output space */
|
Chris@43
|
34 const unsigned char *source, /* pointer to source data pointer */
|
Chris@43
|
35 unsigned long *sourcelen); /* amount of input available */
|