Mon, 14 Dec 2009 16:15:04 +0000
added support for TIFF Photometric Tag
1 /*
2 * tumble: build a PDF file from image files
3 *
4 * PDF routines
5 * $Id: pdf_util.h,v 1.6 2003/03/13 00:57:05 eric Exp $
6 * Copyright 2001, 2002, 2003 Eric Smith <eric@brouhaha.com>
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation. Note that permission is
11 * not granted to redistribute this program under the terms of any
12 * other version of the General Public License.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA
22 */
25 #include <assert.h>
28 void pdf_fatal (char *fmt, ...) __attribute__ ((noreturn));
30 void *pdf_calloc (size_t nmemb, size_t size);
32 char *pdf_strdup (char *s);
34 #if 1
35 #define pdf_assert(cond) assert(cond)
36 #else
37 #define pdf_assert(cond) do \
38 { \
39 if (! (cond)) \
40 pdf_fatal ("assert at %s(%d)\n", __FILE__, __LINE__); \
41 } while (0)
42 #endif