Add GNU LGPL headers to all .c .C and .h files
[oweals/cde.git] / cde / lib / DtHelp / il / iljpgint.h
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
6  * These libraries and programs are free software; you can
7  * redistribute them and/or modify them under the terms of the GNU
8  * Lesser General Public License as published by the Free Software
9  * Foundation; either version 2 of the License, or (at your option)
10  * any later version.
11  *
12  * These libraries and programs are distributed in the hope that
13  * they will be useful, but WITHOUT ANY WARRANTY; without even the
14  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  * PURPOSE. See the GNU Lesser General Public License for more
16  * details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with these librararies and programs; if not, write
20  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21  * Floor, Boston, MA 02110-1301 USA
22  */
23 /* $XConsortium: iljpgint.h /main/4 1996/01/08 12:16:39 lehors $ */
24 /**---------------------------------------------------------------------
25 ***     
26 ***    (c)Copyright 1992 Hewlett-Packard Co.
27 ***    
28 ***                             RESTRICTED RIGHTS LEGEND
29 ***    Use, duplication, or disclosure by the U.S. Government is subject to
30 ***    restrictions as set forth in sub-paragraph (c)(1)(ii) of the Rights in
31 ***    Technical Data and Computer Software clause in DFARS 252.227-7013.
32 ***                             Hewlett-Packard Company
33 ***                             3000 Hanover Street
34 ***                             Palo Alto, CA 94304 U.S.A.
35 ***    Rights for non-DOD U.S. Government Departments and Agencies are as set
36 ***    forth in FAR 52.227-19(c)(1,2).
37 ***
38 ***-------------------------------------------------------------------*/
39
40 #ifndef ILJPGINT_H
41 #define ILJPGINT_H
42
43 #ifndef ILJPG_H
44 #include "iljpg.h"
45 #endif
46
47 #ifdef TRUE
48 #undef TRUE
49 #endif
50 #ifdef FALSE
51 #undef FALSE
52 #endif
53 #define FALSE 0
54 #define TRUE 1
55
56 #ifndef __STDC__
57 #ifdef NULL
58 #undef NULL
59 #endif
60 #define NULL 0
61 #endif
62
63 typedef int iljpgBool;
64
65     /* JPEG zigzag scanning order (64 entries) */
66     ILJPG_PRIVATE_EXTERN 
67 int _iljpgZigzagTable[];
68
69     /*  Allocate _nBytes from heap and return a ptr to it. */
70 #ifndef ILJPG_MALLOC
71 #   define ILJPG_MALLOC(_nBytes)  (malloc (_nBytes))
72 #endif
73
74     /*  Allocate _nBytes from heap, zero it, and return a ptr to it. */
75 #ifndef ILJPG_MALLOC_ZERO
76 #   define ILJPG_MALLOC_ZERO(_nBytes)  (calloc ((_nBytes), 1))
77 #endif
78
79     /*  Free given block (*_ptr), allocated by ILJPG_MALLOC_ZERO(). */
80 #ifndef ILJPG_FREE
81 #   define ILJPG_FREE(_ptr)       (free (_ptr))
82 #endif
83
84     /*  Validate the given parameter block and return true iff valid.
85     */
86     ILJPG_PRIVATE_EXTERN 
87 iljpgBool _iljpgValidPars (
88     register iljpgDataPtr pData
89     );
90
91 #endif