]> git.mxchange.org Git - flightgear.git/blobdiff - LaRCsim/ls_init.c
Tons of little changes to clean up the code and to remove fatal errors
[flightgear.git] / LaRCsim / ls_init.c
index 399929e874fe8e88f0f581d067dbb97ebbf45037..b563e64688cf56bf617819f130a535107fbe6791 100644 (file)
 
 $Header$
 $Log$
+Revision 1.4  1998/01/19 18:40:26  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/05 22:19:25  curt
+#ifdef'd out some unused code that was problematic for MSVC++ to compile.
+
 Revision 1.2  1997/05/29 22:39:58  curt
 Working on incorporating the LaRCsim flight model.
 
@@ -87,6 +94,9 @@ static char rcsid[] = "$Id$";
 #include <stdio.h>
 #include "ls_types.h"
 #include "ls_sym.h"
+#include "ls_step.h"
+#include "ls_init.h"
+#include "navion_init.h"
 
 /* temp */
 #include "ls_generic.h"
@@ -114,16 +124,16 @@ typedef struct
 
 extern SCALAR Simtime;
 
-static int Symbols_loaded = 0;
+/* static int Symbols_loaded = 0; */
 static int Number_of_Continuous_States = 0;
 static int Number_of_Discrete_States = 0;
 static cont_state_rec  Continuous_States[ MAX_NUMBER_OF_CONTINUOUS_STATES ];
 static disc_state_rec  Discrete_States[  MAX_NUMBER_OF_DISCRETE_STATES ];
 
 
-void ls_init_init()
-{
-    int i, error;
+void ls_init_init( void ) {
+    int i;
+    /* int error; */
 
     if (Number_of_Continuous_States == 0)
        {
@@ -175,9 +185,8 @@ void ls_init_init()
     */
 }
 
-void ls_init()
-{
-    int i;
+void ls_init( void ) {
+    /* int i; */
 
     Simtime = 0;
 
@@ -210,6 +219,8 @@ void ls_init()
 }
 
 
+#ifdef COMPILE_THIS_CODE_THIS_USELESS_CODE
+
 char *ls_init_get_set(char *buffer, char *eob)
 /* This routine parses the settings file for "init" entries. */
 {
@@ -308,7 +319,7 @@ char *ls_init_get_set(char *buffer, char *eob)
 
     return bufptr;
 }
-
+#endif /* COMPILE_THIS_CODE_THIS_USELESS_CODE */
 
 
 void ls_init_put_set( FILE *fp )
@@ -341,11 +352,10 @@ void ls_init_put_set( FILE *fp )
     return;
 }
 
-void ls_save_current_as_ic()
-{
+void ls_save_current_as_ic( void ) {
     /* Save current states as initial conditions */
 
-    int i, error;
+    /* int i, error; */
 
     /* commented out by CLO 
     for(i=0;i<Number_of_Continuous_States;i++)