/usr/include/Inventor/C/basic.h is in libcoin80-dev 3.1.4~abc9f50-4ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 | /* include/Inventor/C/basic.h. Generated from basic.h.in by configure. */
/**************************************************************************\
* Copyright (c) Kongsberg Oil & Gas Technologies AS
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* Neither the name of the copyright holder nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\**************************************************************************/
#ifndef COIN_BASIC_H
#define COIN_BASIC_H
/*
NOTE: basic.h is automatically generated from basic.h.in, so don't
edit basic.h directly.
*/
/* *********************************************************************** */
/* Documented for Doxygen in SoDB.cpp. */
typedef int SbBool;
#ifdef DOXYGEN_SKIP_THIS
#ifndef USE_STATIC_CONSTS
//POTENTIAL_ROTTING_DOCUMENTATION
/*
Using static consts might have some problems with merging on older
compilers, so lie for doxygen for now, this is tested and found
working on GCC 4.(1-3)
*/
#define USE_STATIC_CONSTS
#endif //USE_STATIC_CONSTS
#endif //DOXYGEN_SKIP_THIS
#ifndef FALSE
#ifdef USE_STATIC_CONSTS
static const SbBool FALSE = 0;
#else
#define FALSE 0
#endif //USE_STATIC_CONSTS
#endif /* !FALSE */
#ifndef TRUE
#ifdef USE_STATIC_CONSTS
static const SbBool TRUE = 1;
#else
#define TRUE 1
#endif //USE_STATIC_CONSTS
#endif /* !TRUE */
/* *********************************************************************** */
/* Ye good olde min/max macros. No library would be complete without them. */
#define cc_min(x, y) (((x) < (y)) ? (x) : (y))
#define cc_max(x, y) (((x) > (y)) ? (x) : (y))
/* *********************************************************************** */
/* Include this to 1) be compatible with Open Inventor's SbBasic.h, 2)
* provide a way for application programmers to get hold of the type
* definitions without explicitly including inttypes.h.
*
* The latter point is important because the inttypes.h file in SGI
* and TGS Open Inventor is placed _below_ the Inventor/ directory in
* the header files hierarchy. This is a stupid thing to do because it
* could easily conflict with the inttypes.h file installed as part of
* the C library on many systems (like GNU/Linux's glibc, for
* instance).
*/
#include <Inventor/system/inttypes.h>
/* Internal note for Coin developers: in other sourcefiles in Coin, we
* depend on math.h being included through SbBasic.h. It is done this
* way to always make sure we have the M_* symbols available under
* MSWin (see below). So don't remove the following line unless you
* know very well what you are doing.
*/
#include <math.h>
/* Define misc values if they are not available from math.h. UNIX
* systems typically have these defines, and MSWindows systems don't.
*/
#ifndef M_E
#define M_E 2.7182818284590452354
#endif /* !M_E */
#ifndef M_LOG2E
#define M_LOG2E 1.4426950408889634074
#endif /* !M_LOG2E */
#ifndef M_LOG10E
#define M_LOG10E 0.43429448190325182765
#endif /* !M_LOG10E */
#ifndef M_LN2
#define M_LN2 0.69314718055994530942
#endif /* !M_LN2 */
#ifndef M_LN10
#define M_LN10 2.30258509299404568402
#endif /* !M_LN10 */
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* !M_PI */
#ifndef M_TWOPI
#define M_TWOPI (M_PI * 2.0)
#endif /* !M_TWOPI */
#ifndef M_PI_2
#define M_PI_2 1.57079632679489661923
#endif /* !M_PI_2 */
#ifndef M_PI_4
#define M_PI_4 0.78539816339744830962
#endif /* !M_PI_4 */
#ifndef M_3PI_4
#define M_3PI_4 2.3561944901923448370E0
#endif /* !M_3PI_4 */
#ifndef M_SQRTPI
#define M_SQRTPI 1.77245385090551602792981
#endif /* !M_SQRTPI */
#ifndef M_1_PI
#define M_1_PI 0.31830988618379067154
#endif /* !M_1_PI */
#ifndef M_2_PI
#define M_2_PI 0.63661977236758134308
#endif /* !M_2_PI */
#ifndef M_2_SQRTPI
#define M_2_SQRTPI 1.12837916709551257390
#endif /* !M_2_SQRTPI */
#ifndef M_SQRT2
#define M_SQRT2 1.41421356237309504880
#endif /* !M_SQRT2 */
#ifndef M_SQRT1_2
#define M_SQRT1_2 0.70710678118654752440
#endif /* !M_SQRT1_2 */
#ifndef M_LN2LO
#define M_LN2LO 1.9082149292705877000E-10
#endif /* !M_LN2LO */
#ifndef M_LN2HI
#define M_LN2HI 6.9314718036912381649E-1
#endif /* !M_LN2HI */
#ifndef M_SQRT3
#define M_SQRT3 1.73205080756887719000
#endif /* !M_SQRT3 */
#ifndef M_IVLN10
#define M_IVLN10 0.43429448190325182765 /* 1 / log(10) */
#endif /* !M_IVLN10 */
#ifndef M_LOG2_E
#define M_LOG2_E 0.693147180559945309417
#endif /* !M_LOG2_E */
#ifndef M_INVLN2
#define M_INVLN2 1.4426950408889633870E0 /* 1 / log(2) */
#endif /* !M_INVLN2 */
/* *********************************************************************** */
/* A unique identifier to recognize whether or not we're running under
* Kongsberg Oil & Gas Technologies's Coin library.
*/
#define __COIN__
/* The following #undef'ed defines are automatically defined and
* synchronized with the settings in configure.in when ``configure''
* is executed.
*
* The #ifndef wrapper is necessary because during development, these
* are also defined in the config.h file generated by ``configure''.
*/
#ifndef COIN_VERSION
/* These are available for adding or omitting features based on Coin
* version numbers in client application sources. */
#define COIN_MAJOR_VERSION 4
#define COIN_MINOR_VERSION 0
#define COIN_MICRO_VERSION 0
#define COIN_BETA_VERSION a
#define COIN_VERSION "4.0.0a"
/* This define is set by the configure script if singleprecision math
functions are available from the C library API headers. */
/* #undef HAVE_SINGLEPRECISION_MATH */
/* Most compilers should have "hash quoting", as it is part of the
ANSI standard. */
#define HAVE_HASH_QUOTING 1
/* #undef HAVE_APOSTROPHES_QUOTING */
/* IN_PATH define in HPUX's sys/unistd.h conflicts with SoAction::IN_PATH */
/* #undef COIN_UNDEF_IN_PATH_HACK */
#endif /* !COIN_VERSION */ /* Ends configure-generated defines. */
/* *********************************************************************** */
/* The float-version of the math functions below did not come about
until C99, so we don't want to use them internally, for portability
reasons. */
#ifdef COIN_INTERNAL
#include <Inventor/C/base/math-undefs.h>
#endif /* COIN_INTERNAL */
/* *********************************************************************** */
/* SO__QUOTE(str) - use the preprocessor to quote a string.
* SO__CONCAT(str1,str2) - use the preprocessor to concatenate two strings.
*/
#ifdef HAVE_HASH_QUOTING
#define SO__QUOTE(str) #str
#define SO__CONCAT(str1, str2) str1##str2
#elif defined(HAVE_APOSTROPHES_QUOTING)
#define SO__QUOTE(str) "str"
#define SO__CONCAT(str1, str2) str1/**/str2
#else
#error No valid way to do macro quoting!
#endif
/* *********************************************************************** */
/* Precaution to avoid an some errors easily made by the application
programmer. */
#ifdef COIN_DLL_API
# error Leave the internal COIN_DLL_API define alone.
#endif /* COIN_DLL_API */
#ifdef COIN_INTERNAL
# ifdef COIN_NOT_DLL
# error The COIN_NOT_DLL define is not supposed to be used when building the library, only when building Win32 applications.
# endif /* COIN_INTERNAL && COIN_NOT_DLL */
# ifdef COIN_DLL
# error The COIN_DLL define is not supposed to be used when building the library, only when building Win32 applications.
# endif /* COIN_INTERNAL && COIN_DLL */
#endif /* COIN_INTERNAL */
/*
On MSWindows platforms, one of these defines must always be set when
building application programs:
- "COIN_DLL", when the application programmer is using the library
in the form of a dynamic link library (DLL)
- "COIN_NOT_DLL", when the application programmer is using the
library in the form of a static object library (LIB)
Note that either COIN_DLL or COIN_NOT_DLL _must_ be defined by the
application programmer on MSWindows platforms, or else the #error
statement will hit. Set up one or the other of these two defines in
your compiler environment according to how the library was built --
as a DLL (use "COIN_DLL") or as a LIB (use "COIN_NOT_DLL").
(Setting up defines for the compiler is typically done by either
adding something like "/DCOIN_DLL" to the compiler's argument line
(for command-line build processes), or by adding the define to the
list of preprocessor symbols in your IDE GUI (in the MSVC IDE, this
is done from the "Project"->"Settings" menu, choose the "C/C++" tab,
then "Preprocessor" from the dropdown box and add the appropriate
define)).
It is extremely important that the application programmer uses the
correct define, as using "COIN_NOT_DLL" when "COIN_DLL" is correct
will cause mysterious crashes.
*/
/* FIXME: use a feature check to see if this is a platform which can
recognize the __declspec keyword instead of the crap #if below.
20011201 mortene. */
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__)
# ifdef COIN_INTERNAL
# ifdef COIN_MAKE_DLL
# define COIN_DLL_API __declspec(dllexport)
# endif /* COIN_MAKE_DLL */
# else /* !COIN_INTERNAL */
# ifdef COIN_DLL
# ifdef COIN_NOT_DLL
# error Define _either_ COIN_DLL _or_ COIN_NOT_DLL as appropriate for your linkage -- not both at the same time! See Inventor/C/basic.h for further instructions.
# endif /* COIN_NOT_DLL */
# define COIN_DLL_API __declspec(dllimport)
# else /* !COIN_DLL */
# ifndef COIN_NOT_DLL
# error Define either COIN_DLL or COIN_NOT_DLL as appropriate for your linkage! See Inventor/C/basic.h for further instructions.
# endif /* !COIN_NOT_DLL */
# endif /* !COIN_DLL */
# endif /* !COIN_INTERNAL */
#endif /* Microsoft Windows */
/* Empty define to avoid errors when _not_ compiling an MSWindows DLL. */
#ifndef COIN_DLL_API
# define COIN_DLL_API
#endif /* !COIN_DLL_API */
#endif /* !COIN_BASIC_H */
|