// Support for log file/alt debug output via command line, environment or
// reasonable default.
+ /*
if( strlen( logArgbuf ) > 3) { // First check for command line option
// Assumed that we will append.
fg_DebugOutput = fopen(logArgbuf, "a+" );
}
+ */
if( !fg_DebugOutput ) { // If not set on command line, environment?
pszFile = getenv( "FG_DEBUGFILE" );
// is in range (properly optioned) the we will override both defaults
// and the environmental value.
+ /*
if ((priorityArgValue >= FG_BULK) && (priorityArgValue <= FG_ABORT)) {
fg_DebugPriority = priorityArgValue;
} else { // Either not set or out of range. We will not warn the user.
+ */
pszPrio = getenv( "FG_DEBUGPRIORITY" );
if( pszPrio ) {
fg_DebugPriority = atoi( pszPrio );
"fg_debug.c: Environment overrides default debug priority (%d)\n",
fg_DebugPriority );
}
- }
+ /* } */
+ /*
if ((debugArgValue >= FG_ALL) && (debugArgValue < FG_UNDEFD)) {
fg_DebugPriority = priorityArgValue;
} else { // Either not set or out of range. We will not warn the user.
+ */
pszClass = getenv( "FG_DEBUGCLASS" );
if( pszClass ) {
fg_DebugClass = fgDebugStrToClass( pszClass );
"fg_debug.c: Environment overrides default debug class (0x%08X)\n",
fg_DebugClass );
}
- }
+ /* } */
FG_RELEASEDEBUGSEM;
}
/* $Log$
-/* Revision 1.1 1998/04/18 03:52:04 curt
-/* Moved to Lib directory and created a libDebug.
+/* Revision 1.2 1998/04/21 17:03:45 curt
+/* Prepairing for C++ integration.
/*
+ * Revision 1.1 1998/04/18 03:52:04 curt
+ * Moved to Lib directory and created a libDebug.
+ *
* Revision 1.10 1998/03/14 00:31:21 curt
* Beginning initial terrain texturing experiments.
*
#ifndef _FG_DEBUG_H
#define _FG_DEBUG_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
#include <stdio.h>
/* NB: To add a dbg_class, add it here, and add it to the structure in
extern FILE * fg_DebugOutput;
+
+#ifdef __cplusplus
+}
+#endif
+
+
#endif /* _FG_DEBUG_H */
MAT3vec.c \
fg_geodesy.c fg_geodesy.h \
fg_random.c fg_random.h \
+ interpolater.c interpolater.h \
mat3.h mat3defs.h mat3err.h \
polar.c polar.h \
vector.c vector.h
MAT3vec.c \
fg_geodesy.c fg_geodesy.h \
fg_random.c fg_random.h \
+ interpolater.c interpolater.h \
mat3.h mat3defs.h mat3err.h \
polar.c polar.h \
vector.c vector.h
libMath_la_LDFLAGS =
libMath_la_LIBADD =
libMath_la_OBJECTS = MAT3geom.lo MAT3inv.lo MAT3mat.lo MAT3vec.lo \
-fg_geodesy.lo fg_random.lo polar.lo vector.lo
+fg_geodesy.lo fg_random.lo interpolater.lo polar.lo vector.lo
CFLAGS = @CFLAGS@
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
TAR = tar
GZIP = --best
DEP_FILES = .deps/MAT3geom.P .deps/MAT3inv.P .deps/MAT3mat.P \
-.deps/MAT3vec.P .deps/fg_geodesy.P .deps/fg_random.P .deps/polar.P \
-.deps/vector.P
+.deps/MAT3vec.P .deps/fg_geodesy.P .deps/fg_random.P \
+.deps/interpolater.P .deps/polar.P .deps/vector.P
SOURCES = $(libMath_la_SOURCES)
OBJECTS = $(libMath_la_OBJECTS)
#define _FG_GEODESY_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
/* fgGeocToGeod(lat_geoc, radius, *lat_geod, *alt, *sea_level_r)
* INPUTS:
* lat_geoc Geocentric latitude, radians, + = North
$Header$
$Log$
+Revision 1.3 1998/04/21 17:03:48 curt
+Prepairing for C++ integration.
+
Revision 1.2 1998/01/22 02:59:38 curt
Changed #ifdef FILE_H to #ifdef _FILE_H
--------------------------------------------------------------------------*/
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _FG_GEODESY_H */
/* $Log$
-/* Revision 1.2 1998/01/22 02:59:38 curt
-/* Changed #ifdef FILE_H to #ifdef _FILE_H
+/* Revision 1.3 1998/04/21 17:03:48 curt
+/* Prepairing for C++ integration.
/*
+ * Revision 1.2 1998/01/22 02:59:38 curt
+ * Changed #ifdef FILE_H to #ifdef _FILE_H
+ *
* Revision 1.1 1997/07/31 23:13:14 curt
* Initial revision.
*
#define _FG_RANDOM_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
/* Seed the random number generater with time() so we don't see the
* same sequence every time */
void fg_srandom(void);
double fg_random(void);
+#ifdef __cplusplus
+}
+#endif
+
+
#endif /* _FG_RANDOM_H */
/* $Log$
-/* Revision 1.2 1998/01/22 02:59:38 curt
-/* Changed #ifdef FILE_H to #ifdef _FILE_H
+/* Revision 1.3 1998/04/21 17:03:48 curt
+/* Prepairing for C++ integration.
/*
+ * Revision 1.2 1998/01/22 02:59:38 curt
+ * Changed #ifdef FILE_H to #ifdef _FILE_H
+ *
* Revision 1.1 1997/07/30 16:04:09 curt
* Moved random routines from Utils/ to Math/
*
#ifndef MAT3_HAS_BEEN_INCLUDED
#define MAT3_HAS_BEEN_INCLUDED
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* ----------------------------- Constants ------------------------------ */
/*
void MAT3cross_product(MAT3vec result,MAT3vec,MAT3vec);
void MAT3perp_vec(MAT3vec result_vec, MAT3vec vec, int is_unit);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* MAT3_HAS_BEEN_INCLUDED */
/* Copyright 1988, Brown Computer Graphics Group. All Rights Reserved. */
+
+#ifndef _MAT3DEFS_H
+#define _MAT3DEFS_H
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <stdio.h>
/* #include <Math/mat3err.h> */
#include <Math/mat3.h>
/* ------------------------- Global Variables ---------------------------- */
/* extern ERRid *MAT3_errid; */
+
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#endif /* _MAT3DEFS_H */
+#ifndef _MAT3ERR_H
+#define _MAT3ERR_H
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
#include "sph_errtypes.h"
#ifdef THINK_C
#define ERRregister_package(S) 100
+#ifdef __cplusplus
+}
+#endif
+
+
+#endif /* _MAT3ERR_H */
#define _POLAR_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
#include <Include/fg_types.h>
struct fgCartesianPoint fgRotateCartesianPoint(struct fgCartesianPoint p);
+#ifdef __cplusplus
+}
+#endif
+
+
#endif /* _POLAR_H */
/* $Log$
-/* Revision 1.7 1998/01/27 00:48:00 curt
-/* Incorporated Paul Bleisch's <bleisch@chromatic.com> new debug message
-/* system and commandline/config file processing code.
+/* Revision 1.8 1998/04/21 17:03:50 curt
+/* Prepairing for C++ integration.
/*
+ * Revision 1.7 1998/01/27 00:48:00 curt
+ * Incorporated Paul Bleisch's <bleisch@chromatic.com> new debug message
+ * system and commandline/config file processing code.
+ *
* Revision 1.6 1998/01/22 02:59:39 curt
* Changed #ifdef FILE_H to #ifdef _FILE_H
*
#define _VECTOR_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
#include <Math/mat3.h>
MAT3vec result);
+#ifdef __cplusplus
+}
+#endif
+
+
#endif /* _VECTOR_H */
/* $Log$
-/* Revision 1.3 1998/01/22 02:59:39 curt
-/* Changed #ifdef FILE_H to #ifdef _FILE_H
+/* Revision 1.4 1998/04/21 17:03:51 curt
+/* Prepairing for C++ integration.
/*
+ * Revision 1.3 1998/01/22 02:59:39 curt
+ * Changed #ifdef FILE_H to #ifdef _FILE_H
+ *
* Revision 1.2 1998/01/19 19:27:14 curt
* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
* This should simplify things tremendously.
#define _XGL_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
#include <GL/gl.h>
#include <GL/glu.h>
#include <stdio.h>
#endif
+
+#ifdef __cplusplus
+}
+#endif
+
+
#endif /* _XGL_H */
libdir = ${exec_prefix}/lib
+EXTRA_DIST = ChangeLog INDEX Make_vms.com Makefile.riscos README \
+ algorithm.txt descrip.mms example.c maketree.c minigzip.c zlib.3
+
lib_LTLIBRARIES = libz.la
libz_la_SOURCES = \
infutil.c \
infutil.h \
trees.c \
+ trees.h \
uncompr.c \
zconf.h \
zlib.h \
libdir = ${exec_prefix}/lib
+EXTRA_DIST = ChangeLog INDEX Make_vms.com Makefile.riscos README \
+ algorithm.txt descrip.mms example.c maketree.c minigzip.c zlib.3
+
lib_LTLIBRARIES = libz.la
libz_la_SOURCES = \
infutil.c \
infutil.h \
trees.c \
+ trees.h \
uncompr.c \
zconf.h \
zlib.h \