From b7eab24f1443df22dd16b87179dd106f9ba966f2 Mon Sep 17 00:00:00 2001
From: curt <curt>
Date: Tue, 27 Jan 1998 00:47:59 +0000
Subject: [PATCH] Incorporated Paul Bleisch's <bleisch@chromatic.com> new debug
 message system and commandline/config file processing code.

---
 Math/fg_geodesy.c | 16 ++++++++++++----
 Math/fg_random.c  | 11 ++++++++---
 Math/polar.c      | 12 ++++++++----
 Math/polar.h      | 10 +++++++---
 4 files changed, 35 insertions(+), 14 deletions(-)

diff --git a/Math/fg_geodesy.c b/Math/fg_geodesy.c
index aefb751ea..e90ac85d0 100644
--- a/Math/fg_geodesy.c
+++ b/Math/fg_geodesy.c
@@ -14,7 +14,7 @@
 #include <math.h>
 
 #include <Math/fg_geodesy.h>
-#include <Include/constants.h>
+#include <Include/fg_constants.h>
 
 
 /* ONE_SECOND is pi/180/60/60, or about 100 feet at earths' equator */
@@ -140,6 +140,10 @@ void fgGeodToGeoc( double lat_geod, double alt, double *sl_radius,
 
 $Header$
 $Log$
+Revision 1.4  1998/01/27 00:47:59  curt
+Incorporated Paul Bleisch's <bleisch@chromatic.com> new debug message
+system and commandline/config file processing code.
+
 Revision 1.3  1998/01/19 19:27:12  curt
 Merged in make system changes from Bob Kuehne <rpk@sgi.com>
 This should simplify things tremendously.
@@ -201,10 +205,14 @@ Initial Flight Gear revision.
 
 
 /* $Log$
-/* Revision 1.3  1998/01/19 19:27:12  curt
-/* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
-/* This should simplify things tremendously.
+/* Revision 1.4  1998/01/27 00:47:59  curt
+/* Incorporated Paul Bleisch's <bleisch@chromatic.com> new debug message
+/* system and commandline/config file processing code.
 /*
+ * Revision 1.3  1998/01/19 19:27:12  curt
+ * Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+ * This should simplify things tremendously.
+ *
  * Revision 1.2  1997/12/15 23:54:54  curt
  * Add xgl wrappers for debugging.
  * Generate terrain normals on the fly.
diff --git a/Math/fg_random.c b/Math/fg_random.c
index 5a2f588ea..73ed67f14 100644
--- a/Math/fg_random.c
+++ b/Math/fg_random.c
@@ -27,6 +27,7 @@
 #include <stdio.h>
 #include <stdlib.h>         /* for random(), srandom() */
 #include <time.h>           /* for time() to seed srandom() */        
+#include <Main/fg_debug.h>
 
 #include "fg_random.h"
 
@@ -41,7 +42,7 @@
 /* Seed the random number generater with time() so we don't see the
  * same sequence every time */
 void fg_srandom(void) {
-    printf("Seeding random number generater\n");
+    fgPrintf( FG_MATH, FG_INFO, "Seeding random number generater\n");
 
 #ifdef USE_RAND
     srand(time(NULL));
@@ -62,9 +63,13 @@ double fg_random(void) {
 
 
 /* $Log$
-/* Revision 1.2  1997/12/30 20:47:48  curt
-/* Integrated new event manager with subsystem initializations.
+/* Revision 1.3  1998/01/27 00:47:59  curt
+/* Incorporated Paul Bleisch's <bleisch@chromatic.com> new debug message
+/* system and commandline/config file processing code.
 /*
+ * Revision 1.2  1997/12/30 20:47:48  curt
+ * Integrated new event manager with subsystem initializations.
+ *
  * Revision 1.1  1997/07/30 16:04:09  curt
  * Moved random routines from Utils/ to Math/
  *
diff --git a/Math/polar.c b/Math/polar.c
index 3d8d7ba24..1bd1283b2 100644
--- a/Math/polar.c
+++ b/Math/polar.c
@@ -28,7 +28,7 @@
 #include <stdio.h>
 
 #include <Math/polar.h>
-#include <Include/constants.h>
+#include <Include/fg_constants.h>
 
 
 /* we can save these values between calls for efficiency */
@@ -101,10 +101,14 @@ struct fgCartesianPoint fgRotateCartesianPoint(struct fgCartesianPoint p) {
 
 
 /* $Log$
-/* Revision 1.4  1998/01/19 19:27:12  curt
-/* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
-/* This should simplify things tremendously.
+/* Revision 1.5  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.4  1998/01/19 19:27:12  curt
+ * Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+ * This should simplify things tremendously.
+ *
  * Revision 1.3  1997/12/15 23:54:54  curt
  * Add xgl wrappers for debugging.
  * Generate terrain normals on the fly.
diff --git a/Math/polar.h b/Math/polar.h
index 3fdc7846e..cc7ff3cdb 100644
--- a/Math/polar.h
+++ b/Math/polar.h
@@ -28,7 +28,7 @@
 #define _POLAR_H
 
 
-#include <Include/types.h>
+#include <Include/fg_types.h>
 
 
 /* Convert a polar coordinate to a cartesian coordinate.  Lon and Lat
@@ -63,9 +63,13 @@ struct fgCartesianPoint fgRotateCartesianPoint(struct fgCartesianPoint p);
 
 
 /* $Log$
-/* Revision 1.6  1998/01/22 02:59:39  curt
-/* Changed #ifdef FILE_H to #ifdef _FILE_H
+/* 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
+ *
  * Revision 1.5  1998/01/19 19:27:13  curt
  * Merged in make system changes from Bob Kuehne <rpk@sgi.com>
  * This should simplify things tremendously.