Debian Codegraph @

src/bin/geomutil/vrml2oogl/lib/QvBasic.h

raw
1 /* Copyright (C) 1992-1998 The Geometry Center
2 * Copyright (C) 1998-2000 Stuart Levy, Tamara Munzner, Mark Phillips
3 *
4 * This file is part of Geomview.
5 *
6 * Geomview is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU Lesser General Public License as published
8 * by the Free Software Foundation; either version 2, or (at your option)
9 * any later version.
10 *
11 * Geomview is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with Geomview; see the file COPYING. If not, write
18 * to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139,
19 * USA, or visit http://www.gnu.org.
20 */
21 #ifndef _QV_BASIC_
22 #define _QV_BASIC_
23
24 #include <sys/types.h>
25
26 #ifdef NeXT
27 #include <libc.h>
28 #endif
29
30 #include <stdio.h>
31 #include <math.h>
32
33 #ifndef FALSE
34 # define FALSE 0
35 # define TRUE 1
36 #endif
37
38 typedef int QvBool;
39
40 // This uses the preprocessor to quote a string
41 #if defined(__STDC__) || defined(__ANSI_CPP__) /* ANSI C */
42 # define QV__QUOTE(str) #str
43 #else /* Non-ANSI C */
44 # define QV__QUOTE(str) "str"
45 #endif
46
47 // This uses the preprocessor to concatenate two strings
48 #if defined(__STDC__) || defined(__ANSI_CPP__) /* ANSI C */
49 # define QV__CONCAT(str1, str2) str1##str2
50 #else /* Non-ANSI C */
51 # define QV__CONCAT(str1, str2) str1/**/str2
52 #endif
53
54 #endif /* _QV_BASIC_ */