]> git.mxchange.org Git - flightgear.git/commitdiff
Fixed a problems where a pointer to a function was being passed around. In
authorcurt <curt>
Tue, 21 Apr 1998 17:01:43 +0000 (17:01 +0000)
committercurt <curt>
Tue, 21 Apr 1998 17:01:43 +0000 (17:01 +0000)
one place this functions arguments were defined as ( void ) while in another
place they were defined as ( int ).  The correct answer was ( int ).

Prepairing for C++ integration.

Time/event.h
Time/fg_time.h
Time/fg_timer.c
Time/fg_timer.h
Time/sunpos.h

index 6532878c03f484ea9c8b0f8c83e2796ad757f0fb..1d650ff129e6273d4d2ee3034f826cabff8d006e 100644 (file)
 #define _EVENT_H
 
 
+#ifdef __cplusplus                                                          
+extern "C" {                            
+#endif                                   
+
+
 #define FG_EVENT_SUSP 0
 #define FG_EVENT_READY 1
 #define FG_EVENT_QUEUED 2
@@ -61,13 +66,25 @@ void fgEventPrintStats( void );
 void fgEventProcess( void );
 
 
+#ifdef __cplusplus
+}
+#endif
+
+
 #endif /* _EVENT_H */
 
 
 /* $Log$
-/* Revision 1.3  1998/01/22 02:59:43  curt
-/* Changed #ifdef FILE_H to #ifdef _FILE_H
+/* Revision 1.4  1998/04/21 17:01:43  curt
+/* Fixed a problems where a pointer to a function was being passed around.  In
+/* one place this functions arguments were defined as ( void ) while in another
+/* place they were defined as ( int ).  The correct answer was ( int ).
+/*
+/* Prepairing for C++ integration.
 /*
+ * 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.
index c520166d51107de039411989a826bb4ca992d7d8..4cc905142a4494ff8515bf0c2a753bca03250548 100644 (file)
 #define _FG_TIME_H
 
 
+#ifdef __cplusplus                                                          
+extern "C" {                            
+#endif                                   
+
+
 #include <config.h>
 
 #ifdef HAVE_WINDOWS_H
@@ -111,13 +116,25 @@ void fgTimeInit(struct fgTIME *t);
 void fgTimeUpdate(fgFLIGHT *f, struct fgTIME *t);
 
 
+#ifdef __cplusplus
+}
+#endif
+
+
 #endif /* _FG_TIME_H */
 
 
 /* $Log$
-/* Revision 1.18  1998/04/08 23:35:40  curt
-/* Tweaks to Gnu automake/autoconf system.
+/* Revision 1.19  1998/04/21 17:01:44  curt
+/* Fixed a problems where a pointer to a function was being passed around.  In
+/* one place this functions arguments were defined as ( void ) while in another
+/* place they were defined as ( int ).  The correct answer was ( int ).
+/*
+/* Prepairing for C++ integration.
 /*
+ * Revision 1.18  1998/04/08 23:35:40  curt
+ * Tweaks to Gnu automake/autoconf system.
+ *
  * Revision 1.17  1998/04/03 22:12:56  curt
  * Converting to Gnu autoconf system.
  * Centralized time handling differences.
index e5536bcba2396f96bd1aab477bbbbff83825a885..94548696e9f172ffb153c55d044b9e786300150c 100644 (file)
@@ -61,7 +61,7 @@ void fgTimerCatch( void ) {
 
 /* this routine initializes the interval timer to generate a SIGALRM after
  * the specified interval (dt) */
-void fgTimerInit(float dt, void (*f)()) {
+void fgTimerInit(float dt, void (*f)( int )) {
     int terr;
     int isec;
     float usec;
@@ -110,10 +110,17 @@ int fgGetTimeInterval( void ) {
 
 
 /* $Log$
-/* Revision 1.11  1998/04/03 22:12:56  curt
-/* Converting to Gnu autoconf system.
-/* Centralized time handling differences.
+/* Revision 1.12  1998/04/21 17:01:44  curt
+/* Fixed a problems where a pointer to a function was being passed around.  In
+/* one place this functions arguments were defined as ( void ) while in another
+/* place they were defined as ( int ).  The correct answer was ( int ).
 /*
+/* Prepairing for C++ integration.
+/*
+ * Revision 1.11  1998/04/03 22:12:56  curt
+ * Converting to Gnu autoconf system.
+ * Centralized time handling differences.
+ *
  * Revision 1.10  1998/01/31 00:43:45  curt
  * Added MetroWorks patches from Carmen Volpe.
  *
index 7d1e4ef2017367d5cf2ff4bdefe7bf1e6d91cf27..7f425f6d3059f52fb215cb91bc468888ae0a2c0b 100644 (file)
 #define _FG_TIMER_H
 
 
+#ifdef __cplusplus                                                          
+extern "C" {                            
+#endif                                   
+
+
 extern unsigned long int fgSimTime;
 
 /* this routine initializes the interval timer to generate a SIGALRM
  * after the specified interval (dt) the function f() will be called
  * at each signal */
-void fgTimerInit( float dt, void (*f)( void ) );
+void fgTimerInit( float dt, void (*f)( int ) );
 
 /* This function returns the number of milleseconds since the last
    time it was called. */
 int fgGetTimeInterval( void );
 
 
+#ifdef __cplusplus
+}
+#endif
+
+
 #endif /* _FG_TIMER_H */
 
 
 /* $Log$
-/* Revision 1.4  1998/01/22 02:59:43  curt
-/* Changed #ifdef FILE_H to #ifdef _FILE_H
+/* Revision 1.5  1998/04/21 17:01:45  curt
+/* Fixed a problems where a pointer to a function was being passed around.  In
+/* one place this functions arguments were defined as ( void ) while in another
+/* place they were defined as ( int ).  The correct answer was ( int ).
+/*
+/* Prepairing for C++ integration.
 /*
+ * 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.
index ff9a0bb48ea50171a12d623b07daf81509a02550..a55d80d5813a5f496e8ce71213a6ae4d84d3ffe1 100644 (file)
 #define _SUNPOS_H
 
 
+#ifdef __cplusplus                                                          
+extern "C" {                            
+#endif                                   
+
+
 #include <time.h>
 
 #include <Include/fg_types.h>
@@ -50,4 +55,9 @@ void fgUpdateSunPos( void );
 void fgSunPosition(time_t ssue, double *lon, double *lat);
 
 
+#ifdef __cplusplus
+}
+#endif
+
+
 #endif /* _SUNPOS_H */