annotate src/zlib-1.2.8/contrib/puff/puff.h @ 83:ae30d91d2ffe

Replace these with versions built using an older toolset (so as to avoid ABI compatibilities when linking on Ubuntu 14.04 for packaging purposes)
author Chris Cannam
date Fri, 07 Feb 2020 11:51:13 +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 */