]> git.mxchange.org Git - flightgear.git/commitdiff
Changed #ifdef FILE_H to #ifdef _FILE_H
authorcurt <curt>
Thu, 22 Jan 1998 02:59:23 +0000 (02:59 +0000)
committercurt <curt>
Thu, 22 Jan 1998 02:59:23 +0000 (02:59 +0000)
37 files changed:
Aircraft/aircraft.h
Astro/moon.h
Astro/orbits.c
Astro/orbits.h
Astro/planets.h
Astro/sky.h
Astro/stars.h
Astro/sun.h
Cockpit/cockpit.h
Cockpit/hud.h
Controls/controls.h
FDM/flight.h
Joystick/joystick.h
LaRCsim/ls_cockpit.h
LaRCsim/ls_constants.h
LaRCsim/ls_generic.h
LaRCsim/ls_sim_control.h
LaRCsim/ls_sym.h
Main/GLUTkey.h
Main/Makefile
Main/fg_init.c
Main/fg_init.h
Main/views.h
Scenery/Makefile
Scenery/common.h
Scenery/geometry.h
Scenery/mesh.h
Scenery/obj.h
Scenery/scenery.h
Scenery/tilemgr.h
Scenery/tileutils.h
Slew/slew.h
Time/event.h
Time/fg_time.h
Time/fg_timer.h
Time/sunpos.h
Weather/weather.h

index 96e4c576fa169de9638314a56672a6d4db67e10a..b0b8ff3c1f370c5a0c6e0ad0be09a06a73a0ebf8 100644 (file)
@@ -24,8 +24,8 @@
  **************************************************************************/
 
 
-#ifndef AIRCRAFT_H
-#define AIRCRAFT_H
+#ifndef _AIRCRAFT_H
+#define _AIRCRAFT_H
 
 #include <Flight/flight.h>
 #include <Controls/controls.h>
@@ -47,14 +47,29 @@ extern struct fgAIRCRAFT current_aircraft;
 void fgAircraftOutputCurrent(struct fgAIRCRAFT *a);
 
 
-#endif /* AIRCRAFT_H */
+#endif /* _AIRCRAFT_H */
 
 
 /* $Log$
-/* Revision 1.8  1998/01/19 19:26:57  curt
-/* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
-/* This should simplify things tremendously.
+/* Revision 1.9  1998/01/22 02:59:23  curt
+/* Changed #ifdef FILE_H to #ifdef _FILE_H
 /*
+ * Revision 1.8  1998/01/19 19:26:57  curt
+ * Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+ * This should simplify things tremendously.
+ *
+ * Revision 1.7  1997/12/10 22:37:38  curt
+ * Prepended "fg"AIRCRAFT_H */
+
+
+/* $Log$
+/* Revision 1.9  1998/01/22 02:59:23  curt
+/* Changed #ifdef FILE_H to #ifdef _FILE_H
+/*
+ * Revision 1.8  1998/01/19 19:26:57  curt
+ * Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+ * This should simplify things tremendously.
+ *
  * Revision 1.7  1997/12/10 22:37:38  curt
  * Prepended "fg" on the name of all global structures that didn't have it yet.
  * i.e. "struct WEATHER {}" became "struct fgWEATHER {}"
index b81d98183e9cb6b6f3744d1171819d5720c743f6..b5f803e0631a9f20e7f7b49f59bd9cfe5cfbff4f 100644 (file)
@@ -22,8 +22,8 @@
  **************************************************************************/
 
 
-#ifndef _MOON_H_
-#define _MOON_H_
+#ifndef _MOON_H
+#define _MOON_H
 
 
 #include <Astro/orbits.h>
@@ -47,14 +47,17 @@ struct CelestialCoord fgCalculateMoon(struct OrbElements Params,
 
 extern struct OrbElements pltOrbElements[9];
 
-#endif /* _MOON_H_ */
+#endif /* _MOON_H */
 
 
 /* $Log$
-/* Revision 1.3  1998/01/19 19:26:58  curt
-/* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
-/* This should simplify things tremendously.
+/* Revision 1.4  1998/01/22 02:59:27  curt
+/* Changed #ifdef FILE_H to #ifdef _FILE_H
 /*
+ * Revision 1.3  1998/01/19 19:26:58  curt
+ * Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+ * This should simplify things tremendously.
+ *
  * Revision 1.2  1998/01/19 18:40:17  curt
  * Tons of little changes to clean up the code and to remove fatal errors
  * when building with the c++ compiler.
index 5ce2ae9405737b043bd2a628ee3b5b30b9fa8243..432dfc7dd35811df13e3242e69faee143942fa24 100644 (file)
@@ -23,6 +23,7 @@
  **************************************************************************/
 
 
+#include <math.h>
 #include <string.h>
 
 #include <Astro/orbits.h>
@@ -81,7 +82,7 @@ double fgCalcEccAnom(double M, double e)
         do
         {
                E1 = E0 - (E0 - e * sin(E0) - M) / (1 - e * cos(E0));
-            diff = abs(E0 - E1);
+            diff = fabs(E0 - E1);
             E0 = E1;
                }
         while (diff > fgDegToRad(0.001));
@@ -173,10 +174,13 @@ void fgSolarSystemUpdate(struct OrbElements *planet, struct fgTIME t)
 
 
 /* $Log$
-/* Revision 1.2  1998/01/19 19:26:58  curt
-/* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
-/* This should simplify things tremendously.
+/* Revision 1.3  1998/01/22 02:59:27  curt
+/* Changed #ifdef FILE_H to #ifdef _FILE_H
 /*
+ * Revision 1.2  1998/01/19 19:26:58  curt
+ * Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+ * This should simplify things tremendously.
+ *
  * Revision 1.1  1998/01/07 03:16:17  curt
  * Moved from .../Src/Scenery/ to .../Src/Astro/
  *
index daf99dc27b0f463b5310e52b3f9c155262a8ff1a..d9ceb9dec42d7adf584f1de4b5f4658f9addf6c0 100644 (file)
@@ -23,8 +23,8 @@
  **************************************************************************/
 
 
-#ifndef ORBITS_H
-#define ORBITS_H
+#ifndef _ORBITS_H
+#define _ORBITS_H
 
 
 #include <stdio.h>
@@ -77,14 +77,17 @@ void fgSolarSystemInit(struct fgTIME t);
 void fgSolarSystemUpdate(struct OrbElements *planets, struct fgTIME t);
 
 
-#endif /* ORBITS_H */
+#endif /* _ORBITS_H */
 
 
 /* $Log$
-/* Revision 1.2  1998/01/19 19:26:58  curt
-/* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
-/* This should simplify things tremendously.
+/* Revision 1.3  1998/01/22 02:59:27  curt
+/* Changed #ifdef FILE_H to #ifdef _FILE_H
 /*
+ * Revision 1.2  1998/01/19 19:26:58  curt
+ * Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+ * This should simplify things tremendously.
+ *
  * Revision 1.1  1998/01/07 03:16:17  curt
  * Moved from .../Src/Scenery/ to .../Src/Astro/
  *
index 6cf8748967586b65226a4e9133732c630ce74624..d5f10b9030829f64ef3a8b90a035bb733e3ac837 100644 (file)
@@ -23,8 +23,8 @@
  **************************************************************************/
 
 
-#ifndef PLANETS_H
-#define PLANETS_H
+#ifndef _PLANETS_H
+#define _PLANETS_H
 
 
 struct CelestialCoord fgCalculatePlanet(struct OrbElements planet,
@@ -35,9 +35,12 @@ struct CelestialCoord fgCalculatePlanet(struct OrbElements planet,
 
 
 /* $Log$
-/* Revision 1.1  1998/01/07 03:16:18  curt
-/* Moved from .../Src/Scenery/ to .../Src/Astro/
+/* Revision 1.2  1998/01/22 02:59:28  curt
+/* Changed #ifdef FILE_H to #ifdef _FILE_H
 /*
+ * Revision 1.1  1998/01/07 03:16:18  curt
+ * Moved from .../Src/Scenery/ to .../Src/Astro/
+ *
  * Revision 1.3  1997/12/30 16:36:53  curt
  * Merged in Durk's changes ...
  *
index 0479a4b96c186ca87c1da9d20c08fd308ce573af..7e1275ddc9a081986f0d2fb44ab0d68146a3838e 100644 (file)
  **************************************************************************/
 
 
+#ifndef _SKY_H
+#define _SKY_H
+
+
 /* (Re)generate the display list */
 void fgSkyInit( void );
 
@@ -34,11 +38,17 @@ void fgSkyColorsInit( void );
 void fgSkyRender( void );
 
 
+#endif /* _SKY_H */
+
+
 /* $Log$
-/* Revision 1.2  1998/01/19 18:40:17  curt
-/* Tons of little changes to clean up the code and to remove fatal errors
-/* when building with the c++ compiler.
+/* Revision 1.3  1998/01/22 02:59:28  curt
+/* Changed #ifdef FILE_H to #ifdef _FILE_H
 /*
+ * Revision 1.2  1998/01/19 18:40:17  curt
+ * Tons of little changes to clean up the code and to remove fatal errors
+ * when building with the c++ compiler.
+ *
  * Revision 1.1  1998/01/07 03:16:19  curt
  * Moved from .../Src/Scenery/ to .../Src/Astro/
  *
index b08ffda9502d86cb44cc27a53d9c514dc8c672bf..e510f7b56236c1b811ea8563faec5d9ba9ef205c 100644 (file)
@@ -24,8 +24,8 @@
  **************************************************************************/
 
 
-#ifndef STARS_H
-#define STARS_H
+#ifndef _STARS_H
+#define _STARS_H
 
 
 #define FG_MAX_STARS 500
@@ -40,14 +40,17 @@ void fgStarsRender( void );
 extern struct OrbElements pltOrbElements[9];
 extern struct fgTIME cur_time_params;
 
-#endif /* STARS_H */
+#endif /* _STARS_H */
 
 
 /* $Log$
-/* Revision 1.2  1998/01/19 18:40:18  curt
-/* Tons of little changes to clean up the code and to remove fatal errors
-/* when building with the c++ compiler.
+/* Revision 1.3  1998/01/22 02:59:28  curt
+/* Changed #ifdef FILE_H to #ifdef _FILE_H
 /*
+ * Revision 1.2  1998/01/19 18:40:18  curt
+ * Tons of little changes to clean up the code and to remove fatal errors
+ * when building with the c++ compiler.
+ *
  * Revision 1.1  1998/01/07 03:16:20  curt
  * Moved from .../Src/Scenery/ to .../Src/Astro/
  *
index 9683462cc0bd7c8cd9c742cbfd332125a2fbcd29..4f4a7be3a3e8799ea35b4312070c7ee41af287f6 100644 (file)
@@ -23,8 +23,8 @@
  **************************************************************************/
 
 
-#ifndef SUN_H
-#define SUN_H
+#ifndef _SUN_H
+#define _SUN_H
 
 
 struct SunPos fgCalcSunPos(struct OrbElements sunParams);
@@ -37,14 +37,17 @@ void fgSunInit( void );
 void fgSunRender( void );
 
 
-#endif /* SUN_H */
+#endif /* _SUN_H */
 
 
 /* $Log$
-/* Revision 1.2  1998/01/19 18:40:19  curt
-/* Tons of little changes to clean up the code and to remove fatal errors
-/* when building with the c++ compiler.
+/* Revision 1.3  1998/01/22 02:59:29  curt
+/* Changed #ifdef FILE_H to #ifdef _FILE_H
 /*
+ * Revision 1.2  1998/01/19 18:40:19  curt
+ * Tons of little changes to clean up the code and to remove fatal errors
+ * when building with the c++ compiler.
+ *
  * Revision 1.1  1998/01/07 03:16:21  curt
  * Moved from .../Src/Scenery/ to .../Src/Astro/
  *
index a70d4a7a8f209d90370021c76f2fc181c4c18245..6de1d0ca1de323a0e58620046975b93d479d7661 100644 (file)
  **************************************************************************/
  
 
+#ifndef _COCKPIT_H
+#define _COCKPIT_H
+
+
 #include <Cockpit/hud.h>
 
 
@@ -42,11 +46,17 @@ struct fgCOCKPIT *fgCockpitInit( struct fgAIRCRAFT cur_aircraft );
 void fgCockpitUpdate( void );
 
 
+#endif /* _COCKPIT_H */
+
+
 /* $Log$
-/* Revision 1.4  1998/01/19 19:27:01  curt
-/* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
-/* This should simplify things tremendously.
+/* Revision 1.5  1998/01/22 02:59:29  curt
+/* Changed #ifdef FILE_H to #ifdef _FILE_H
 /*
+ * Revision 1.4  1998/01/19 19:27:01  curt
+ * Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+ * This should simplify things tremendously.
+ *
  * Revision 1.3  1998/01/19 18:40:19  curt
  * Tons of little changes to clean up the code and to remove fatal errors
  * when building with the c++ compiler.
index 1425c74f97345c06f878df8690d4c7a42b3a22cb..012ab584231f69b82651f8fcc3c7737ed8579776 100644 (file)
@@ -24,8 +24,8 @@
  **************************************************************************/
 
 
-#ifndef HUD_H
-#define HUD_H
+#ifndef _HUD_H
+#define _HUD_H
 
 
 #include <Aircraft/aircraft.h>
@@ -229,14 +229,17 @@ void fgUpdateHUD( Hptr hud );
 void fgUpdateHUD2( struct HUD *hud );
 
 
-#endif /* HUD_H */
+#endif /* _HUD_H */
 
 
 /* $Log$
-/* Revision 1.5  1998/01/19 19:27:01  curt
-/* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
-/* This should simplify things tremendously.
+/* Revision 1.6  1998/01/22 02:59:30  curt
+/* Changed #ifdef FILE_H to #ifdef _FILE_H
 /*
+ * Revision 1.5  1998/01/19 19:27:01  curt
+ * Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+ * This should simplify things tremendously.
+ *
  * Revision 1.4  1998/01/19 18:40:21  curt
  * Tons of little changes to clean up the code and to remove fatal errors
  * when building with the c++ compiler.
index d9f6ec5d16e3b78fe0685adc5f58072a8f2b7d65..333c59913559d96a20a4160780c86b519f2a1518 100644 (file)
@@ -24,8 +24,8 @@
  **************************************************************************/
 
 
-#ifndef CONTROLS_H
-#define CONTROLS_H
+#ifndef _CONTROLS_H
+#define _CONTROLS_H
 
 
 #include "../Include/limits.h"
@@ -76,15 +76,17 @@ void fgThrottleMove(int engine, double amt);
 void fgThrottleSet(int engine, double pos);
 
 
-
-#endif /* CONTROLS_H */
+#endif /* _CONTROLS_H */
 
 
 /* $Log$
-/* Revision 1.8  1998/01/19 18:40:22  curt
-/* Tons of little changes to clean up the code and to remove fatal errors
-/* when building with the c++ compiler.
+/* Revision 1.9  1998/01/22 02:59:31  curt
+/* Changed #ifdef FILE_H to #ifdef _FILE_H
 /*
+ * Revision 1.8  1998/01/19 18:40:22  curt
+ * Tons of little changes to clean up the code and to remove fatal errors
+ * when building with the c++ compiler.
+ *
  * Revision 1.7  1997/12/15 23:54:36  curt
  * Add xgl wrappers for debugging.
  * Generate terrain normals on the fly.
index 6e15911b4ff2c0e706c4da63b301a75af4217032..20b00262302fe5d2dc6421858c68f8b51f4629f7 100644 (file)
@@ -24,8 +24,8 @@
  **************************************************************************/
 
 
-#ifndef FLIGHT_H
-#define FLIGHT_H
+#ifndef _FLIGHT_H
+#define _FLIGHT_H
 
 
 #include <Flight/Slew/slew.h>
@@ -392,14 +392,17 @@ int fgFlightModelInit(int model, struct fgFLIGHT *f, double dt);
 int fgFlightModelUpdate(int model, struct fgFLIGHT *f, int multiloop);
 
 
-#endif /* FLIGHT_H */
+#endif /* _FLIGHT_H */
 
 
 /* $Log$
-/* Revision 1.11  1998/01/19 19:27:03  curt
-/* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
-/* This should simplify things tremendously.
+/* Revision 1.12  1998/01/22 02:59:32  curt
+/* Changed #ifdef FILE_H to #ifdef _FILE_H
 /*
+ * Revision 1.11  1998/01/19 19:27:03  curt
+ * Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+ * This should simplify things tremendously.
+ *
  * Revision 1.10  1997/12/10 22:37:43  curt
  * Prepended "fg" on the name of all global structures that didn't have it yet.
  * i.e. "struct WEATHER {}" became "struct fgWEATHER {}"
index f363ead6bebbce802a498f289a59e24a03b4deff..3c9d0c6ed2f8a33ce3dd933bc630c5d2df7ae837 100644 (file)
  **************************************************************************/
 
 
+#ifndef _JOYSTICK_H
+#define _JOYSTICK_H
+
+
 int fgJoystickInit( int joy_num );
 int fgJoystickRead( double *joy_x, double *joy_y, int *joy_b1, int *joy_b2 );
 
 
+#endif /* _JOYSTICK_H */
+
+
 /* $Log$
-/* Revision 1.1  1997/08/29 18:06:55  curt
-/* Initial revision.
+/* Revision 1.2  1998/01/22 02:59:36  curt
+/* Changed #ifdef FILE_H to #ifdef _FILE_H
 /*
+ * Revision 1.1  1997/08/29 18:06:55  curt
+ * Initial revision.
+ *
  */
index 4680881d82a6f02fbd52841df983a3a26b416466..f240472436b10d096f71e8b118ad5ec9f9559e68 100644 (file)
@@ -35,6 +35,9 @@
 
 $Header$
 $Log$
+Revision 1.3  1998/01/22 02:59:32  curt
+Changed #ifdef FILE_H to #ifdef _FILE_H
+
 Revision 1.2  1997/05/31 19:16:27  curt
 Elevator trim added.
 
@@ -54,6 +57,11 @@ Initial Flight Gear revision.
 
 --------------------------------------------------------------------------*/
 
+
+#ifndef _LS_COCKPIT_H
+#define _LS_COCKPIT_H
+
+
 typedef struct {
     float   long_stick, lat_stick, rudder_pedal;
     float   long_trim;
@@ -83,3 +91,6 @@ extern COCKPIT cockpit_;
 #define SB_extend      cockpit_.sb_extend
 #define SB_retract     cockpit_.sb_retract
 #define Gear_sel_up    cockpit_.gear_sel_up
+
+
+#endif /* _LS_COCKPIT_H */
index bdd123d86a90c5877ee814325b47c49e5961e73d..2393f4c5dc6b7dd232665bc63f432ed5f4b9d0ba 100644 (file)
 
 --------------------------------------------------------------------------*/
 
+#ifndef _LS_CONSTANTS
+#define _LS_CONSTANTS
+
+
 #ifndef CONSTANTS
 
 #define CONSTANTS -1
 
 #endif
 
+
+#endif /* _LS_CONSTANTS_H */
+
+
 /*------------------------- end of ls_constants.h -------------------------*/
index a996aef4a3dca49219a9d762f297bc6bb98c21ee..02cdaf210be920328726da0c56795be8ead8591d 100644 (file)
 
 --------------------------------------------------------------------------*/
 
+
+#ifndef _LS_GENERIC_H
+#define _LS_GENERIC_H
+
+
 typedef struct {
 
 /*================== Mass properties and geometry values ==================*/
@@ -401,4 +406,8 @@ typedef struct {
 
 extern GENERIC generic_;       /* usually defined in ls_main.c */
 
+
+#endif /* _LS_GENERIC_H */
+
+
 /*---------------------------  end of ls_generic.h  ------------------------*/
index c37f559f50557c18c6ff0236cb6e24a062d5cfa8..4cae282c4b943bb60c77c8ba67bec9319cafc4b9 100644 (file)
@@ -40,6 +40,9 @@
 
 $Header$
 $Log$
+Revision 1.3  1998/01/22 02:59:33  curt
+Changed #ifdef FILE_H to #ifdef _FILE_H
+
 Revision 1.2  1998/01/06 01:20:17  curt
 Tweaks to help building with MSVC++
 
@@ -67,6 +70,12 @@ Initial Flight Gear revision.
                
 
 --------------------------------------------------------------------------*/
+
+
+#ifndef _LS_SIM_CONTROL_H
+#define _LS_SIM_CONTROL_H
+
+
 #include <stdio.h>
 
 #ifndef SIM_CONTROL
@@ -113,4 +122,8 @@ extern SIM_CONTROL sim_control_;
 
 #endif
 
+
+#endif /* _LS_SIM_CONTROL_H */
+
+
 /*------------------------  end of ls_sim_control.h ----------------------*/
index a5c53b12ea93e1316b07ab9f729a68997648d3d8..4f032720cf3b956643ff7b7a87c0b3f26c05fdde 100644 (file)
@@ -40,6 +40,9 @@
 
 $Header$
 $Log$
+Revision 1.2  1998/01/22 02:59:34  curt
+Changed #ifdef FILE_H to #ifdef _FILE_H
+
 Revision 1.1  1997/05/29 00:10:00  curt
 Initial Flight Gear revision.
 
@@ -81,6 +84,10 @@ Initial Flight Gear revision.
 
 --------------------------------------------------------------------------*/
 
+#ifndef _LS_SYM_H
+#define _LS_SYM_H
+
+
 /* Return codes */
 
 #define SYM_NOT_LOADED -2
@@ -151,5 +158,6 @@ extern void         ls_set_sym_val( symbol_rec *symrec, double value );
           and error message is printed on stderr.                      */
 
 
+#endif /* _LS_SYM_H */
 
 
index 3b867ae0c277ad5c2df2dfb146b152ffc8af6f9a..671eabece92b781782b01f88e1a479988b44670a 100644 (file)
@@ -24,8 +24,8 @@
  **************************************************************************/
 
 
-#ifndef GLUTKEY_H
-#define GLUTKEY_H
+#ifndef _GLUTKEY_H
+#define _GLUTKEY_H
 
 
 #ifdef GLUT
@@ -40,13 +40,16 @@ void GLUTkey(unsigned char k, int x, int y);
 void GLUTspecialkey(int k, int x, int y);
 
 
-#endif /* GLUTKEY_H */
+#endif /* _GLUTKEY_H */
 
 
 /* $Log$
-/* Revision 1.5  1997/07/23 21:52:23  curt
-/* Put comments around the text after an #endif for increased portability.
+/* Revision 1.6  1998/01/22 02:59:36  curt
+/* Changed #ifdef FILE_H to #ifdef _FILE_H
 /*
+ * Revision 1.5  1997/07/23 21:52:23  curt
+ * Put comments around the text after an #endif for increased portability.
+ *
  * Revision 1.4  1997/06/02 03:40:06  curt
  * A tiny bit more view tweaking.
  *
index ca3eb0b81af23fc3f05c24b3fb36139b49536a38..e9cc61b8a67b0cdb96d6b927a5b19d7553c6cdf5 100644 (file)
@@ -29,14 +29,13 @@ CFILES = fg_init.c views.c $(INTERFACE_FILES)
 
 FGLIBS = -lAircraft -lAstro -lCockpit -lControls -lFlight \
        -lJoystick -lLaRCsim -lSlew -lScenery -lTime -lWeather -lMath \
-       -lc \
        $(NULL)
 
 
 LCDEFS = -DGLUT
 LLDFLAGS =
 LDLIBS = $(FGLIBS) $(FG_DEBUG_LIBS) \
-       $(INTERFACE_LIBS) $(GRAPHICS_LIBS) -lm -lfl
+       $(INTERFACE_LIBS) $(GRAPHICS_LIBS) -lm
 
 include $(FG_ROOT_SRC)/commondefs
 
@@ -52,6 +51,9 @@ include $(COMMONRULES)
 
 #---------------------------------------------------------------------------
 # $Log$
+# Revision 1.43  1998/01/22 02:59:37  curt
+# Changed #ifdef FILE_H to #ifdef _FILE_H
+#
 # Revision 1.42  1998/01/21 21:11:34  curt
 # Misc. tweaks.
 #
index 1d6ddd3b1331dcaae738a1b4404937fe48682853..9b95510bb4e3f2ed9cccd97eb4e3ca02cdaf9e77 100644 (file)
@@ -113,25 +113,20 @@ void fgInitSubsystems( void ) {
     /* Initial Position at (P13) GLOBE airport */
     FG_Longitude = ( -398391.28 / 3600.0 ) * DEG_TO_RAD;
     FG_Latitude  = (  120070.41 / 3600.0 ) * DEG_TO_RAD;
+    FG_Runway_altitude = (3234.5 + 300);
     FG_Altitude = FG_Runway_altitude + 3.758099;
     
     /* Initial Position at (SEZ) SEDONA airport */
-    /* FG_Longitude = -111.774176 * DEG_TO_RAD; */
-    /* FG_Latitude  = 34.834343 * DEG_TO_RAD; */
-    /* FG_Runway_altitude = 4827; */
+    /* FG_Longitude = (-111.7884614 + 0.02) * DEG_TO_RAD; */
+    /* FG_Latitude  = (  34.8486289 - 0.04) * DEG_TO_RAD; */
+    /* FG_Runway_altitude = (4827 + 800); */
     /* FG_Altitude = FG_Runway_altitude + 3.758099; */
-    
-    /* Initial Position SE of (SEZ) SEDONA airport */
-    /* FG_Longitude = -111.724176 * DEG_TO_RAD; */
-    /* FG_Latitude  = 34.744343 * DEG_TO_RAD; */
-    /* FG_Runway_altitude = 7427; */
-    /* FG_Altitude = FG_Runway_altitude + 3.758099; */
-    
+        
     /* Initial Position at (HSP) Hot Springs, VA */
-    FG_Longitude = (-79.8338964 /*+ 0.02*/) * DEG_TO_RAD;
-    FG_Latitude  = ( 37.9514564 /*+ 0.05*/) * DEG_TO_RAD;
-    FG_Runway_altitude = (792 /*+ 1500*/);
-    FG_Altitude = FG_Runway_altitude + 3.758099;
+    /* FG_Longitude = (-79.8338964 + 0.02) * DEG_TO_RAD; */
+    /* FG_Latitude  = ( 37.9514564 + 0.05) * DEG_TO_RAD; */
+    /* FG_Runway_altitude = (792 + 1500); */
+    /* FG_Altitude = FG_Runway_altitude + 3.758099; */
     
     /* Initial Position at (ANE) Anoka County airport */
     /* FG_Longitude = -93.2113889 * DEG_TO_RAD; */
@@ -140,7 +135,7 @@ void fgInitSubsystems( void ) {
     /* FG_Altitude = FG_Runway_altitude + 3.758099; */
     
     /* Initial Position north of the city of Globe */
-    /* FG_Longitude = ( -398673.28 / 3600.0 ) * DEG_TO_RAD; */
+    /* FGto do the install_Longitude = ( -398673.28 / 3600.0 ) * DEG_TO_RAD; */
     /* FG_Latitude  = (  120625.64 / 3600.0 ) * DEG_TO_RAD; */
     /* FG_Longitude = ( -397867.44 / 3600.0 ) * DEG_TO_RAD; */
     /* FG_Latitude  = (  119548.21 / 3600.0 ) * DEG_TO_RAD; */
@@ -161,8 +156,7 @@ void fgInitSubsystems( void ) {
     /* FG_Longitude = ( 88128.00 / 3600.0 ) * DEG_TO_RAD; */
     /* FG_Latitude  = ( 93312.00 / 3600.0 ) * DEG_TO_RAD; */
 
-    printf("Initial position is: (%.4f, %.4f, %.2f)\n", 
+     printf("Initial position is: (%.4f, %.4f, %.2f)\n", 
           FG_Longitude * RAD_TO_DEG, FG_Latitude * RAD_TO_DEG, 
           FG_Altitude * FEET_TO_METER);
 
@@ -299,9 +293,12 @@ void fgInitSubsystems( void ) {
 
 
 /* $Log$
-/* Revision 1.33  1998/01/21 21:11:34  curt
-/* Misc. tweaks.
+/* Revision 1.34  1998/01/22 02:59:37  curt
+/* Changed #ifdef FILE_H to #ifdef _FILE_H
 /*
+ * Revision 1.33  1998/01/21 21:11:34  curt
+ * Misc. tweaks.
+ *
  * Revision 1.32  1998/01/19 19:27:08  curt
  * Merged in make system changes from Bob Kuehne <rpk@sgi.com>
  * This should simplify things tremendously.
index 4b4372be29c77c6603f8d10fbca30b1aba26796c..46c8d9b931553206430aafaf34089bb0fe332bcb 100644 (file)
@@ -24,8 +24,8 @@
  **************************************************************************/
 
 
-#ifndef FG_INIT_H
-#define FG_INIT_H
+#ifndef _FG_INIT_H
+#define _FG_INIT_H
 
 
 /* General house keeping initializations */
@@ -37,11 +37,14 @@ void fgInitGeneral( void );
 void fgInitSubsystems( void );
 
 
-#endif /* FG_INIT_H */
+#endif /* _FG_INIT_H */
 
 
 /* $Log$
-/* Revision 1.1  1997/08/23 01:46:20  curt
-/* Initial revision.
+/* Revision 1.2  1998/01/22 02:59:38  curt
+/* Changed #ifdef FILE_H to #ifdef _FILE_H
 /*
+ * Revision 1.1  1997/08/23 01:46:20  curt
+ * Initial revision.
+ *
  */
index f74a986c362fe3594ea120acf15d252d488ead27..04dde790196dcd06e1ff75a332558dfa10cba061 100644 (file)
@@ -24,8 +24,8 @@
  **************************************************************************/
 
 
-#ifndef VIEWS_H
-#define VIEWS_H
+#ifndef _VIEWS_H
+#define _VIEWS_H
 
 
 #include <Include/types.h>
@@ -85,14 +85,17 @@ void fgViewInit(struct fgVIEW *v);
 void fgViewUpdate(struct fgFLIGHT *f, struct fgVIEW *v, struct fgLIGHT *l);
 
 
-#endif /* VIEWS_H */
+#endif /* _VIEWS_H */
 
 
 /* $Log$
-/* Revision 1.6  1998/01/19 19:27:10  curt
-/* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
-/* This should simplify things tremendously.
+/* Revision 1.7  1998/01/22 02:59:38  curt
+/* Changed #ifdef FILE_H to #ifdef _FILE_H
 /*
+ * Revision 1.6  1998/01/19 19:27:10  curt
+ * Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+ * This should simplify things tremendously.
+ *
  * Revision 1.5  1997/12/22 04:14:32  curt
  * Aligned sky with sun so dusk/dawn effects can be correct relative to the sun.
  *
index cd0787ec036a41bce01ebf87f9484e970dcd6e75..87786dc632f70f4187b681ed7444bb65e406e2e5 100644 (file)
 # (Log is kept at end of this file)
 #---------------------------------------------------------------------------
 
+
 ARLIBRARY = libScenery.a
 TARGETS = $(ARLIBRARY)
 
-CFILES = common.c geometry.c mesh.c obj.c scenery.c tilemgr.c tileutils.c
+CFILES = common.c geometry.c mesh.c obj.c scenery.c texload.c \
+       tilemgr.c tileutils.c
 CXXFILES = 
 
 LDIRT = $(FG_ROOT_LIB)/$(ARLIBRARY)
index 0273d214d65d28e547bec0cbf7c519104d162709..d7d7639b48342f0e482f0f6f0eeaa3904bb27b08 100644 (file)
@@ -24,8 +24,8 @@
  **************************************************************************/
 
 
-#ifndef COMMON_H
-#define COMMON_H
+#ifndef _COMMON_H
+#define _COMMON_H
 
 
 /* Maximum length for an identifier */
 char *strip_quotes(char *s);
 
 
-#endif /* COMMON_H */
+#endif /* _COMMON_H */
 
 
 /* $Log$
-/* Revision 1.3  1997/07/23 21:52:24  curt
-/* Put comments around the text after an #endif for increased portability.
+/* Revision 1.4  1998/01/22 02:59:40  curt
+/* Changed #ifdef FILE_H to #ifdef _FILE_H
 /*
+ * Revision 1.3  1997/07/23 21:52:24  curt
+ * Put comments around the text after an #endif for increased portability.
+ *
  * Revision 1.2  1997/05/23 15:40:41  curt
  * Added GNU copyright headers.
  *
index 28de28c8ca39ef79925ec3ffa6aa202b7ddd9910..f62a22f876d3926cb3a08b47a24224b9f01991ac 100644 (file)
@@ -24,8 +24,8 @@
  **************************************************************************/
 
 
-#ifndef GEOMETRY_H
-#define GEOMETRY_H
+#ifndef _GEOMETRY_H
+#define _GEOMETRY_H
 
 
 #define VRML_BOX       0
@@ -52,14 +52,17 @@ void vrmlHandleGeometry( void );
 int vrmlFreeGeometry( void );
 
 
-#endif /* GEOMETRY_H */
+#endif /* _GEOMETRY_H */
 
 
 /* $Log$
-/* Revision 1.3  1998/01/19 18:40:36  curt
-/* Tons of little changes to clean up the code and to remove fatal errors
-/* when building with the c++ compiler.
+/* Revision 1.4  1998/01/22 02:59:40  curt
+/* Changed #ifdef FILE_H to #ifdef _FILE_H
 /*
+ * Revision 1.3  1998/01/19 18:40:36  curt
+ * Tons of little changes to clean up the code and to remove fatal errors
+ * when building with the c++ compiler.
+ *
  * Revision 1.2  1997/07/23 21:52:25  curt
  * Put comments around the text after an #endif for increased portability.
  *
index fe67be4d8bf6b3881af1f1ace1285baf12999fde..e08c539e2dac38c5450986fba1bdb4bd10cc445a 100644 (file)
@@ -24,8 +24,8 @@
  **************************************************************************/
 
 
-#ifndef MESH_H
-#define MESH_H
+#ifndef _MESH_H
+#define _MESH_H
 
 
 #include <GL/glut.h>
@@ -78,14 +78,17 @@ double mesh_altitude(double lon, double lat);
 GLint mesh_to_OpenGL(struct MESH *m);
 
 
-#endif /* MESH_H */
+#endif /* _MESH_H */
 
 
 /* $Log$
-/* Revision 1.8  1998/01/19 18:40:37  curt
-/* Tons of little changes to clean up the code and to remove fatal errors
-/* when building with the c++ compiler.
+/* Revision 1.9  1998/01/22 02:59:41  curt
+/* Changed #ifdef FILE_H to #ifdef _FILE_H
 /*
+ * Revision 1.8  1998/01/19 18:40:37  curt
+ * Tons of little changes to clean up the code and to remove fatal errors
+ * when building with the c++ compiler.
+ *
  * Revision 1.7  1997/08/27 03:30:29  curt
  * Changed naming scheme of basic shared structures.
  *
index 02ed97534d57de8ad3287f65d6d2059d360a6353..7c10cd749836cbe519c7f2f1784350e153eb64fa 100644 (file)
@@ -24,8 +24,8 @@
  **************************************************************************/
 
 
-#ifndef OBJ_H
-#define OBJ_H
+#ifndef _OBJ_H
+#define _OBJ_H
 
 
 #ifdef WIN32
 GLint fgObjLoad(char *file, struct fgCartesianPoint *ref);
 
 
-#endif /* OBJ_H */
+#endif /* _OBJ_H */
 
 
 /* $Log$
-/* Revision 1.3  1998/01/19 19:27:17  curt
-/* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
-/* This should simplify things tremendously.
+/* Revision 1.4  1998/01/22 02:59:41  curt
+/* Changed #ifdef FILE_H to #ifdef _FILE_H
 /*
+ * Revision 1.3  1998/01/19 19:27:17  curt
+ * Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+ * This should simplify things tremendously.
+ *
  * Revision 1.2  1998/01/13 00:23:10  curt
  * Initial changes to support loading and management of scenery tiles.  Note,
  * there's still a fair amount of work left to be done.
index b47b27cfdd0ef12b6a428e1d01b8015171b63e97..3ff1ab729489ccbfce15e4c176dbaa6713cba37e 100644 (file)
@@ -24,8 +24,8 @@
  **************************************************************************/
 
 
-#ifndef SCENERY_H
-#define SCENERY_H
+#ifndef _SCENERY_H
+#define _SCENERY_H
 
 
 #include <Include/types.h>
@@ -59,14 +59,17 @@ void fgSceneryUpdate(double lon, double lat, double elev);
 void fgSceneryRender( void );
 
 
-#endif /* SCENERY_H */
+#endif /* _SCENERY_H */
 
 
 /* $Log$
-/* Revision 1.14  1998/01/19 19:27:17  curt
-/* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
-/* This should simplify things tremendously.
+/* Revision 1.15  1998/01/22 02:59:41  curt
+/* Changed #ifdef FILE_H to #ifdef _FILE_H
 /*
+ * Revision 1.14  1998/01/19 19:27:17  curt
+ * Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+ * This should simplify things tremendously.
+ *
  * Revision 1.13  1998/01/19 18:40:38  curt
  * Tons of little changes to clean up the code and to remove fatal errors
  * when building with the c++ compiler.
index c43db6f08b5e1c052f14985e0da73f9acf520429..d61146846f7de316c3f113b58fa5444a0375e4e4 100644 (file)
  **************************************************************************/
 
 
+#ifndef _TILEMGR_H
+#define _TILEMGR_H
+
+
 /* Initialize the Tile Manager subsystem */
 void fgTileMgrInit( void );
 
@@ -37,11 +41,17 @@ void fgTileMgrUpdate( void );
 void fgTileMgrRender( void );
 
 
+#endif /* _TILEMGR_H */
+
+
 /* $Log$
-/* Revision 1.3  1998/01/19 18:40:38  curt
-/* Tons of little changes to clean up the code and to remove fatal errors
-/* when building with the c++ compiler.
+/* Revision 1.4  1998/01/22 02:59:42  curt
+/* Changed #ifdef FILE_H to #ifdef _FILE_H
 /*
+ * Revision 1.3  1998/01/19 18:40:38  curt
+ * Tons of little changes to clean up the code and to remove fatal errors
+ * when building with the c++ compiler.
+ *
  * Revision 1.2  1998/01/13 00:23:11  curt
  * Initial changes to support loading and management of scenery tiles.  Note,
  * there's still a fair amount of work left to be done.
index 29ea5940af590de792a95c6f2910578558b9ae95..0031845c4ea803f4bcdf66dfa89e7d05003dfe05 100644 (file)
@@ -24,8 +24,8 @@
  **************************************************************************/
 
 
-#ifndef TILEUTILS_H
-#define TILEUTILS_H
+#ifndef _TILEUTILS_H
+#define _TILEUTILS_H
 
 
 struct bucket {
@@ -73,13 +73,16 @@ void gen_idx_array(struct bucket *p1, struct bucket *tiles,
                          int width, int height);
 
 
-#endif /* TILEUTILS_H */
+#endif /* _TILEUTILS_H */
 
 
 /* $Log$
-/* Revision 1.5  1998/01/14 02:19:05  curt
-/* Makde offset_bucket visible to outside.
+/* Revision 1.6  1998/01/22 02:59:42  curt
+/* Changed #ifdef FILE_H to #ifdef _FILE_H
 /*
+ * Revision 1.5  1998/01/14 02:19:05  curt
+ * Makde offset_bucket visible to outside.
+ *
  * Revision 1.4  1998/01/13 00:23:12  curt
  * Initial changes to support loading and management of scenery tiles.  Note,
  * there's still a fair amount of work left to be done.
index 57e572aa1c0fd8fc4fa19d1a27a46e1ba2171d96..7f4606dc76b6c5d73678598fddfc3141f05f43c7 100644 (file)
@@ -24,8 +24,8 @@
  **************************************************************************/
 
 
-#ifndef SLEW_H
-#define SLEW_H
+#ifndef _SLEW_H
+#define _SLEW_H
 
 
 /* reset flight params to a specific position */ 
@@ -35,14 +35,17 @@ void fgSlewInit(double pos_x, double pos_y, double pos_z, double heading);
 void fgSlewUpdate( void );
 
 
-#endif /* SLEW_H */
+#endif /* _SLEW_H */
 
 
 /* $Log$
-/* Revision 1.3  1998/01/19 18:40:30  curt
-/* Tons of little changes to clean up the code and to remove fatal errors
-/* when building with the c++ compiler.
+/* Revision 1.4  1998/01/22 02:59:34  curt
+/* Changed #ifdef FILE_H to #ifdef _FILE_H
 /*
+ * Revision 1.3  1998/01/19 18:40:30  curt
+ * Tons of little changes to clean up the code and to remove fatal errors
+ * when building with the c++ compiler.
+ *
  * Revision 1.2  1997/07/23 21:52:20  curt
  * Put comments around the text after an #endif for increased portability.
  *
index 88033c1f9518da74ac1362a32fb54762954f9e4e..6532878c03f484ea9c8b0f8c83e2796ad757f0fb 100644 (file)
  **************************************************************************/
 
 
+#ifndef _EVENT_H
+#define _EVENT_H
+
+
 #define FG_EVENT_SUSP 0
 #define FG_EVENT_READY 1
 #define FG_EVENT_QUEUED 2
@@ -57,11 +61,17 @@ void fgEventPrintStats( void );
 void fgEventProcess( void );
 
 
+#endif /* _EVENT_H */
+
+
 /* $Log$
-/* Revision 1.2  1998/01/19 18:40:39  curt
-/* Tons of little changes to clean up the code and to remove fatal errors
-/* when building with the c++ compiler.
+/* Revision 1.3  1998/01/22 02:59:43  curt
+/* Changed #ifdef FILE_H to #ifdef _FILE_H
 /*
+ * Revision 1.2  1998/01/19 18:40:39  curt
+ * Tons of little changes to clean up the code and to remove fatal errors
+ * when building with the c++ compiler.
+ *
  * Revision 1.1  1997/12/30 04:19:22  curt
  * Initial revision.
  *
index 226efa92bcac605ef937fe68d95e862d1249a7cb..6e39cdb39f467adb392cc5cbfd56038b7e3368bd 100644 (file)
@@ -24,8 +24,8 @@
  **************************************************************************/
 
 
-#ifndef FG_TIME_H
-#define FG_TIME_H
+#ifndef _FG_TIME_H
+#define _FG_TIME_H
 
 
 #ifdef WIN32
@@ -95,14 +95,17 @@ void fgTimeInit(struct fgTIME *t);
 void fgTimeUpdate(struct fgFLIGHT *f, struct fgTIME *t);
 
 
-#endif /* FG_TIME_H */
+#endif /* _FG_TIME_H */
 
 
 /* $Log$
-/* Revision 1.13  1998/01/19 19:27:20  curt
-/* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
-/* This should simplify things tremendously.
+/* Revision 1.14  1998/01/22 02:59:43  curt
+/* Changed #ifdef FILE_H to #ifdef _FILE_H
 /*
+ * Revision 1.13  1998/01/19 19:27:20  curt
+ * Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+ * This should simplify things tremendously.
+ *
  * Revision 1.12  1998/01/05 18:44:37  curt
  * Add an option to advance/decrease time from keyboard.
  *
index e6bd25e84d0e8d031d99abc25e783f4b404d48f2..7d1e4ef2017367d5cf2ff4bdefe7bf1e6d91cf27 100644 (file)
@@ -24,8 +24,8 @@
  **************************************************************************/
 
 
-#ifndef FG_TIMER_H
-#define FG_TIMER_H
+#ifndef _FG_TIMER_H
+#define _FG_TIMER_H
 
 
 extern unsigned long int fgSimTime;
@@ -40,14 +40,17 @@ void fgTimerInit( float dt, void (*f)( void ) );
 int fgGetTimeInterval( void );
 
 
-#endif /* FG_TIMER_H */
+#endif /* _FG_TIMER_H */
 
 
 /* $Log$
-/* Revision 1.3  1998/01/19 18:40:40  curt
-/* Tons of little changes to clean up the code and to remove fatal errors
-/* when building with the c++ compiler.
+/* Revision 1.4  1998/01/22 02:59:43  curt
+/* Changed #ifdef FILE_H to #ifdef _FILE_H
 /*
+ * Revision 1.3  1998/01/19 18:40:40  curt
+ * Tons of little changes to clean up the code and to remove fatal errors
+ * when building with the c++ compiler.
+ *
  * Revision 1.2  1997/07/23 21:52:27  curt
  * Put comments around the text after an #endif for increased portability.
  *
index 81dd125a82b3cee8ab19e4ec9a42b3a9f6b4336f..2c16b06e8fe2af137a04f126d75bb26c0d20fa57 100644 (file)
@@ -36,8 +36,8 @@
  */
 
 
-#ifndef SUNPOS_H
-#define SUNPOS_H
+#ifndef _SUNPOS_H
+#define _SUNPOS_H
 
 
 #include <time.h>
@@ -50,4 +50,4 @@ void fgUpdateSunPos( void );
 void fgSunPosition(time_t ssue, double *lon, double *lat);
 
 
-#endif /* SUNPOS_H */
+#endif /* _SUNPOS_H */
index a6684ec34494eb4d2a3b7135d9217accb42c129f..21fc749be6b6c12234438bbe5e77513be525e7b2 100644 (file)
@@ -24,8 +24,8 @@
  **************************************************************************/
 
 
-#ifndef WEATHER_H
-#define WEATHER_H
+#ifndef _WEATHER_H
+#define _WEATHER_H
 
 
 /* holds the current weather values */
@@ -43,14 +43,17 @@ void fgWeatherInit( void );
 void fgWeatherUpdate( void );
 
 
-#endif /* WEATHER_H */
+#endif /* _WEATHER_H */
 
 
 /* $Log$
-/* Revision 1.7  1998/01/19 18:40:41  curt
-/* Tons of little changes to clean up the code and to remove fatal errors
-/* when building with the c++ compiler.
+/* Revision 1.8  1998/01/22 02:59:44  curt
+/* Changed #ifdef FILE_H to #ifdef _FILE_H
 /*
+ * Revision 1.7  1998/01/19 18:40:41  curt
+ * Tons of little changes to clean up the code and to remove fatal errors
+ * when building with the c++ compiler.
+ *
  * Revision 1.6  1997/12/30 22:22:47  curt
  * Further integration of event manager.
  *