summaryrefslogtreecommitdiff
path: root/src/pdflib/pdflib/p_icclib.c
blob: 02275da537578b6f20b39fbbc34c5687504537fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/* $Id: p_icclib.c,v 1.1 2008/10/17 06:11:49 scuri Exp $
 *
 * ICClib routines for PDFlib, slightly modified from the original ICClib.
 * (see below).
 *
 * $Log: p_icclib.c,v $
 * Revision 1.1  2008/10/17 06:11:49  scuri
 * First commit - moving from LuaForge to SourceForge
 *
 * Revision 1.3  2007/11/06 15:48:55  scuri
 * PDF Lite library updated to version "7.0.2".
 *
 * Revision 1.18.8.3  2007/05/23 21:15:00  york
 * fixed #1230: "Performance problems in mulithreaded env with tolower/toupper".
 *
 * Revision 1.18.8.2  2007/05/23 19:37:21  york
 * implemented pdc_isXXX() character classification macros.
 * started to replace isXXX() with pdc_isXXX() in all modules.
 *
 * Revision 1.18.8.1  2007/03/28 12:47:10  kurt
 * bug #1180 (Function prefixes missing for zlib assembler and ICC code) fixed
 * names of all external functions of ICClib have the prefix "pdf_" now
 *
 * Revision 1.18  2004/08/05 09:11:27  rjs
 * merged 6.0.x to pdflib-x
 *
 * Revision 1.17.2.1  2004/07/30 16:14:30  kurt
 * icc_read: all free statements in the error case removed
 *           (because of program crash in icc_delete)
 * icc_delete: more security checks
 * new public function: icc_get_errmsg
 *
 */

/*
 * International Color Consortium Format Library (icclib)
 * For ICC profile version 3.4
 *
 * Author:  Graeme W. Gill
 * Date:    2002/04/22
 * Version: 2.02
 *
 * Copyright 1997 - 2002 Graeme W. Gill
 * See Licence.txt file for conditions of use.
 */

#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <math.h>
#ifdef __sun
#include <unistd.h>
#endif
#if defined(__IBMC__) && defined(_M_IX86)
#include <float.h>
#endif

/* PDFlib */
#include "pc_util.h"
#include "pc_core.h"
#include "pc_ctype.h"