Changed #ifdef FILE_H to #ifdef _FILE_H

This commit is contained in:
curt
1998-01-22 02:59:23 +00:00
committed by Tim Moore
parent 24b5f05d5e
commit 327ccd93a4
7 changed files with 64 additions and 35 deletions

View 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.

View 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/
*

View 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/
*

View 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 ...
*

View File

@@ -24,6 +24,10 @@
**************************************************************************/
#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/
*

View 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/
*

View 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/
*