xref: /minix3/usr.bin/make/sprite.h (revision 2e2caf591948f38f31c4e679c6277d2cb999cee7)
1*2e2caf59SThomas Veerman /*	$NetBSD: sprite.h,v 1.11 2009/01/23 21:26:30 dsl Exp $	*/
2*2e2caf59SThomas Veerman 
3*2e2caf59SThomas Veerman /*
4*2e2caf59SThomas Veerman  * Copyright (c) 1988, 1989, 1990, 1993
5*2e2caf59SThomas Veerman  *	The Regents of the University of California.  All rights reserved.
6*2e2caf59SThomas Veerman  *
7*2e2caf59SThomas Veerman  * This code is derived from software contributed to Berkeley by
8*2e2caf59SThomas Veerman  * Adam de Boor.
9*2e2caf59SThomas Veerman  *
10*2e2caf59SThomas Veerman  * Redistribution and use in source and binary forms, with or without
11*2e2caf59SThomas Veerman  * modification, are permitted provided that the following conditions
12*2e2caf59SThomas Veerman  * are met:
13*2e2caf59SThomas Veerman  * 1. Redistributions of source code must retain the above copyright
14*2e2caf59SThomas Veerman  *    notice, this list of conditions and the following disclaimer.
15*2e2caf59SThomas Veerman  * 2. Redistributions in binary form must reproduce the above copyright
16*2e2caf59SThomas Veerman  *    notice, this list of conditions and the following disclaimer in the
17*2e2caf59SThomas Veerman  *    documentation and/or other materials provided with the distribution.
18*2e2caf59SThomas Veerman  * 3. Neither the name of the University nor the names of its contributors
19*2e2caf59SThomas Veerman  *    may be used to endorse or promote products derived from this software
20*2e2caf59SThomas Veerman  *    without specific prior written permission.
21*2e2caf59SThomas Veerman  *
22*2e2caf59SThomas Veerman  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
23*2e2caf59SThomas Veerman  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24*2e2caf59SThomas Veerman  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25*2e2caf59SThomas Veerman  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
26*2e2caf59SThomas Veerman  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27*2e2caf59SThomas Veerman  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28*2e2caf59SThomas Veerman  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29*2e2caf59SThomas Veerman  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30*2e2caf59SThomas Veerman  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31*2e2caf59SThomas Veerman  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32*2e2caf59SThomas Veerman  * SUCH DAMAGE.
33*2e2caf59SThomas Veerman  *
34*2e2caf59SThomas Veerman  *	from: @(#)sprite.h	8.1 (Berkeley) 6/6/93
35*2e2caf59SThomas Veerman  */
36*2e2caf59SThomas Veerman 
37*2e2caf59SThomas Veerman /*
38*2e2caf59SThomas Veerman  * Copyright (c) 1989 by Berkeley Softworks
39*2e2caf59SThomas Veerman  * All rights reserved.
40*2e2caf59SThomas Veerman  *
41*2e2caf59SThomas Veerman  * This code is derived from software contributed to Berkeley by
42*2e2caf59SThomas Veerman  * Adam de Boor.
43*2e2caf59SThomas Veerman  *
44*2e2caf59SThomas Veerman  * Redistribution and use in source and binary forms, with or without
45*2e2caf59SThomas Veerman  * modification, are permitted provided that the following conditions
46*2e2caf59SThomas Veerman  * are met:
47*2e2caf59SThomas Veerman  * 1. Redistributions of source code must retain the above copyright
48*2e2caf59SThomas Veerman  *    notice, this list of conditions and the following disclaimer.
49*2e2caf59SThomas Veerman  * 2. Redistributions in binary form must reproduce the above copyright
50*2e2caf59SThomas Veerman  *    notice, this list of conditions and the following disclaimer in the
51*2e2caf59SThomas Veerman  *    documentation and/or other materials provided with the distribution.
52*2e2caf59SThomas Veerman  * 3. All advertising materials mentioning features or use of this software
53*2e2caf59SThomas Veerman  *    must display the following acknowledgement:
54*2e2caf59SThomas Veerman  *	This product includes software developed by the University of
55*2e2caf59SThomas Veerman  *	California, Berkeley and its contributors.
56*2e2caf59SThomas Veerman  * 4. Neither the name of the University nor the names of its contributors
57*2e2caf59SThomas Veerman  *    may be used to endorse or promote products derived from this software
58*2e2caf59SThomas Veerman  *    without specific prior written permission.
59*2e2caf59SThomas Veerman  *
60*2e2caf59SThomas Veerman  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
61*2e2caf59SThomas Veerman  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
62*2e2caf59SThomas Veerman  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
63*2e2caf59SThomas Veerman  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
64*2e2caf59SThomas Veerman  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
65*2e2caf59SThomas Veerman  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
66*2e2caf59SThomas Veerman  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
67*2e2caf59SThomas Veerman  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
68*2e2caf59SThomas Veerman  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
69*2e2caf59SThomas Veerman  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
70*2e2caf59SThomas Veerman  * SUCH DAMAGE.
71*2e2caf59SThomas Veerman  *
72*2e2caf59SThomas Veerman  *	from: @(#)sprite.h	8.1 (Berkeley) 6/6/93
73*2e2caf59SThomas Veerman  */
74*2e2caf59SThomas Veerman 
75*2e2caf59SThomas Veerman /*
76*2e2caf59SThomas Veerman  * sprite.h --
77*2e2caf59SThomas Veerman  *
78*2e2caf59SThomas Veerman  * Common constants and type declarations for Sprite.
79*2e2caf59SThomas Veerman  */
80*2e2caf59SThomas Veerman 
81*2e2caf59SThomas Veerman #ifndef _SPRITE
82*2e2caf59SThomas Veerman #define _SPRITE
83*2e2caf59SThomas Veerman 
84*2e2caf59SThomas Veerman 
85*2e2caf59SThomas Veerman /*
86*2e2caf59SThomas Veerman  * A boolean type is defined as an integer, not an enum. This allows a
87*2e2caf59SThomas Veerman  * boolean argument to be an expression that isn't strictly 0 or 1 valued.
88*2e2caf59SThomas Veerman  */
89*2e2caf59SThomas Veerman 
90*2e2caf59SThomas Veerman typedef int Boolean;
91*2e2caf59SThomas Veerman #ifndef TRUE
92*2e2caf59SThomas Veerman #define TRUE	1
93*2e2caf59SThomas Veerman #endif /* TRUE */
94*2e2caf59SThomas Veerman #ifndef FALSE
95*2e2caf59SThomas Veerman #define FALSE	0
96*2e2caf59SThomas Veerman #endif /* FALSE */
97*2e2caf59SThomas Veerman 
98*2e2caf59SThomas Veerman /*
99*2e2caf59SThomas Veerman  * Functions that must return a status can return a ReturnStatus to
100*2e2caf59SThomas Veerman  * indicate success or type of failure.
101*2e2caf59SThomas Veerman  */
102*2e2caf59SThomas Veerman 
103*2e2caf59SThomas Veerman typedef int  ReturnStatus;
104*2e2caf59SThomas Veerman 
105*2e2caf59SThomas Veerman /*
106*2e2caf59SThomas Veerman  * The following statuses overlap with the first 2 generic statuses
107*2e2caf59SThomas Veerman  * defined in status.h:
108*2e2caf59SThomas Veerman  *
109*2e2caf59SThomas Veerman  * SUCCESS			There was no error.
110*2e2caf59SThomas Veerman  * FAILURE			There was a general error.
111*2e2caf59SThomas Veerman  */
112*2e2caf59SThomas Veerman 
113*2e2caf59SThomas Veerman #define	SUCCESS			0x00000000
114*2e2caf59SThomas Veerman #define	FAILURE			0x00000001
115*2e2caf59SThomas Veerman 
116*2e2caf59SThomas Veerman #endif /* _SPRITE */
117