1
0
mirror of synced 2026-01-13 15:27:55 +00:00
brouhaha.tumble/pdf_util.h
2003-03-07 11:02:12 +00:00

45 lines
1.4 KiB
C

/*
* t2p: Create a PDF file from the contents of one or more TIFF
* bilevel image files. The images in the resulting PDF file
* will be compressed using ITU-T T.6 (G4) fax encoding.
*
* PDF routines
* $Id: pdf_util.h,v 1.5 2003/03/07 03:02:12 eric Exp $
* Copyright 2001, 2002, 2003 Eric Smith <eric@brouhaha.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation. Note that permission is
* not granted to redistribute this program under the terms of any
* other version of the General Public License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA
*/
#include <assert.h>
void pdf_fatal (char *fmt, ...) __attribute__ ((noreturn));
void *pdf_calloc (size_t nmemb, size_t size);
char *pdf_strdup (char *s);
#if 1
#define pdf_assert(cond) assert(cond)
#else
#define pdf_assert(cond) do \
{ \
if (! (cond)) \
pdf_fatal ("assert at %s(%d)\n", __FILE__, __LINE__); \
} while (0)
#endif