]> git.mxchange.org Git - flightgear.git/commitdiff
Tweaks for compiling with g++
authorcurt <curt>
Tue, 3 Mar 1998 15:36:11 +0000 (15:36 +0000)
committercurt <curt>
Tue, 3 Mar 1998 15:36:11 +0000 (15:36 +0000)
FixObj/obj.c
FixObj/obj.h
SplitTris/splittris.c
SplitTris/splittris.h
Tools/Makefile

index 8f704957ffaf7e0cb477a34392a9d041799179a2..3971aac83141fb2bbd3d0e2163d7faa89b97f641 100644 (file)
 
 
 /* what do ya' know, here's some global variables */
-double nodes[MAXNODES][3];
-double normals[MAXNODES][3];
+static double nodes[MAXNODES][3];
+static double normals[MAXNODES][3];
 
-int ccw_list[MAXNODES];
+static int ccw_list[MAXNODES];
 int ccw_list_ptr;
 
-int cw_list[MAXNODES];
+static int cw_list[MAXNODES];
 int cw_list_ptr;
 
 FILE *in, *out;
@@ -288,9 +288,12 @@ void obj_fix(char *infile, char *outfile) {
 
 
 /* $Log$
-/* Revision 1.5  1998/03/03 03:37:03  curt
-/* Cumulative tweaks.
+/* Revision 1.6  1998/03/03 15:36:12  curt
+/* Tweaks for compiling with g++
 /*
+ * Revision 1.5  1998/03/03 03:37:03  curt
+ * Cumulative tweaks.
+ *
  * Revision 1.4  1998/01/31 00:41:25  curt
  * Made a few changes converting floats to doubles.
  *
index 954a088a77f285215bc3c942b4dce38472d345e9..4fd07f42fee175fb8f82fdfcb3d9357f163be93a 100644 (file)
 
 #define MAXNODES 100000
 
-extern double nodes[MAXNODES][3];
-extern double normals[MAXNODES][3];
-extern int stack[MAXNODES];
-
 
 /* Load a .obj file */
 void obj_fix(char *infile, char *outfile);
@@ -43,9 +39,12 @@ void obj_fix(char *infile, char *outfile);
 
 
 /* $Log$
-/* Revision 1.3  1998/01/31 00:41:25  curt
-/* Made a few changes converting floats to doubles.
+/* Revision 1.4  1998/03/03 15:36:13  curt
+/* Tweaks for compiling with g++
 /*
+ * Revision 1.3  1998/01/31 00:41:25  curt
+ * Made a few changes converting floats to doubles.
+ *
  * Revision 1.2  1998/01/09 23:03:13  curt
  * Restructured to split 1deg x 1deg dem's into 64 subsections.
  *
index 9c8f7bfb1c505f7ef5193abc6abd0f2b1458d90f..36b8db35678eb6ee29b152c85b7cef0bbe28a3ea 100644 (file)
 int nodecount, tricount;
 double xmin, xmax, ymin, ymax;
 
-double nodes_orig[MAX_NODES][3];
-int tris[MAX_TRIS][3];
-int new_tris[MAX_TRIS][3];
+static double nodes_orig[MAX_NODES][3];
+static int tris[MAX_TRIS][3];
+/* static int new_tris[MAX_TRIS][3]; */
 
-struct fgCartesianPoint nodes_cart[MAX_NODES];
+static struct fgCartesianPoint nodes_cart[MAX_NODES];
 
 struct fgBUCKET ne_index, nw_index, sw_index, se_index;
 struct fgBUCKET north_index, south_index, east_index, west_index;
@@ -612,9 +612,12 @@ int main(int argc, char **argv) {
 
 
 /* $Log$
-/* Revision 1.5  1998/03/03 03:37:04  curt
-/* Cumulative tweaks.
+/* Revision 1.6  1998/03/03 15:36:13  curt
+/* Tweaks for compiling with g++
 /*
+ * Revision 1.5  1998/03/03 03:37:04  curt
+ * Cumulative tweaks.
+ *
  * Revision 1.4  1998/01/31 00:41:26  curt
  * Made a few changes converting floats to doubles.
  *
index abd7621b424985a98d0fe3c4840ddf6ff9002b46..6ed50d6728792805efe29c9d4f4b80e7a636ef65 100644 (file)
@@ -37,9 +37,6 @@
 
 
 extern int nodecount, tricount;
-extern struct fgCartesianPoint nodes[MAX_NODES];
-extern int tris[MAX_TRIS][3];
-extern int new_tris[MAX_TRIS][3];
 
 
 /* Initialize a new mesh structure */
@@ -50,9 +47,12 @@ void triload(char *basename);
 
 
 /* $Log$
-/* Revision 1.2  1998/01/15 02:49:25  curt
-/* Misc. housekeeping.
+/* Revision 1.3  1998/03/03 15:36:13  curt
+/* Tweaks for compiling with g++
 /*
+ * Revision 1.2  1998/01/15 02:49:25  curt
+ * Misc. housekeeping.
+ *
  * Revision 1.1  1998/01/14 02:11:32  curt
  * Initial revision.
  *
index 15a75ef912158641ee75ef9c6f2a424b1f0fe457..25970e1835c490bd3d38684b6948c3ef2a76b592 100644 (file)
@@ -27,8 +27,8 @@
 include $(FG_ROOT_SRC)/commondefs
 
 
-SUBDIRS = AssemTris Dem2node DemRaw2Ascii FixNode FixObj SplitTris Stripe_u \
-       Tri2obj Triangle
+SUBDIRS = AssemTris Dem2node DemRaw2Ascii FixNode FixObj SplitTris \
+       Stripe_u Tri2obj Triangle
 ORDEREDDIRS = $(SUBDIRS)
 
 
@@ -90,6 +90,9 @@ bin-zip:
 
 #---------------------------------------------------------------------------
 # $Log$
+# Revision 1.10  1998/03/03 15:36:11  curt
+# Tweaks for compiling with g++
+#
 # Revision 1.9  1998/03/03 01:21:17  curt
 # Added DemRaw2Ascii
 #