]> git.mxchange.org Git - flightgear.git/commitdiff
More c++ compile tweaks.
authorcurt <curt>
Tue, 3 Mar 1998 16:00:52 +0000 (16:00 +0000)
committercurt <curt>
Tue, 3 Mar 1998 16:00:52 +0000 (16:00 +0000)
AssemTris/assemtris.c
FixNode/fixnode.c
FixNode/fixnode.h
FixNode/main.c
FixNode/triload.c
FixNode/triload.h
Tri2obj/tri2obj.c
Tri2obj/tri2obj.h

index e1e1413a1b07ebd20e6b86bb2e5140ba7a68728f..ab53c1a1cb916415807080b58f43b8b491f8c9d0 100644 (file)
@@ -41,7 +41,7 @@
 
 int nodecount = 0;
 
-double nodes[MAX_NODES][3];
+static double nodes[MAX_NODES][3];
 
 
 struct fgBUCKET my_index;
@@ -454,9 +454,12 @@ int main(int argc, char **argv) {
 
 
 /* $Log$
-/* Revision 1.4  1998/01/31 00:41:23  curt
-/* Made a few changes converting floats to doubles.
+/* Revision 1.5  1998/03/03 16:00:52  curt
+/* More c++ compile tweaks.
 /*
+ * Revision 1.4  1998/01/31 00:41:23  curt
+ * Made a few changes converting floats to doubles.
+ *
  * Revision 1.3  1998/01/27 18:37:00  curt
  * Lots of updates to get back in sync with changes made over in .../Src/
  *
index 8c3aee33a1b5d0d350b84ae6300f7854e4657952..afd7070828095ab1f0baa619ad46bbe974ef8b0b 100644 (file)
@@ -34,7 +34,7 @@
 
 
 /* load the node information */
-void fixnodes(char *filename, struct MESH *m) {
+void fixnodes(char *filename, struct MESH *m, double nodes[MAX_NODES][3]) {
     char toname[256];
     FILE *fd;
     int i;
@@ -77,9 +77,12 @@ void fixnodes(char *filename, struct MESH *m) {
 
 
 /* $Log$
-/* Revision 1.3  1998/01/09 23:03:08  curt
-/* Restructured to split 1deg x 1deg dem's into 64 subsections.
+/* Revision 1.4  1998/03/03 16:00:57  curt
+/* More c++ compile tweaks.
 /*
+ * Revision 1.3  1998/01/09 23:03:08  curt
+ * Restructured to split 1deg x 1deg dem's into 64 subsections.
+ *
  * Revision 1.2  1997/12/02 13:12:07  curt
  * Updated to fix every node.
  *
index 303eb6286a54c702b4276578f4463196e8de7206..ee6501ac38f380ff915f932767f927aa11365feb 100644 (file)
 #include <stdio.h>
 #include <string.h>
 
-/* #include "fixnode.h" */
+#include "triload.h"
 #include "../Dem2node/mesh.h"
 
 
 /* load the node information */
-void fixnodes(char *basename, struct MESH *m);
+void fixnodes(char *basename, struct MESH *m, double nodes[MAX_NODES][3]);
 
 
 #endif /* FIXNODE_H */
 
 
 /* $Log$
-/* Revision 1.2  1997/12/02 13:12:07  curt
-/* Updated to fix every node.
+/* Revision 1.3  1998/03/03 16:00:58  curt
+/* More c++ compile tweaks.
 /*
+ * Revision 1.2  1997/12/02 13:12:07  curt
+ * Updated to fix every node.
+ *
  * Revision 1.1  1997/11/27 00:17:33  curt
  * Initial revision.
  *
index 002c495cfa6190c7a36185324238c8a9436e27c8..c2caca7e14ee79b21846e1510225773019714e12 100644 (file)
 
 
 /* Original DEM which is used to interpolate z values */
-struct MESH dem_mesh;
+static struct MESH dem_mesh;
 
+/* Node list */
+static double nodes[MAX_NODES][3];
 
 /* find all the matching files in the specified directory and fix them */
 void process_files(char *root_path) {
@@ -65,9 +67,9 @@ void process_files(char *root_path) {
                printf("File = %s\n", file_path);
 
                /* load the input data files */
-               triload(file_path);
+               triload(file_path, nodes);
 
-               fixnodes(file_path, &dem_mesh);
+               fixnodes(file_path, &dem_mesh, nodes);
            }
        }
     }
@@ -97,9 +99,12 @@ int main(int argc, char **argv) {
 
 
 /* $Log$
-/* Revision 1.3  1998/01/09 23:03:08  curt
-/* Restructured to split 1deg x 1deg dem's into 64 subsections.
+/* Revision 1.4  1998/03/03 16:00:58  curt
+/* More c++ compile tweaks.
 /*
+ * Revision 1.3  1998/01/09 23:03:08  curt
+ * Restructured to split 1deg x 1deg dem's into 64 subsections.
+ *
  * Revision 1.2  1997/12/02 13:12:07  curt
  * Updated to fix every node.
  *
index f0510bd2700a55826d1a4c672cbc231920f1d544..72d9427f988d50d8926534d6a31c97de35ab9333 100644 (file)
 
 
 int nodecount;
-double nodes[MAX_NODES][3];
 
 
 /* load the node information */
-void triload(char *filename) {
+void triload(char *filename, double nodes[MAX_NODES][3]) {
     FILE *node;
     int dim, junk1, junk2;
     int i;
@@ -67,9 +66,12 @@ void triload(char *filename) {
 
 
 /* $Log$
-/* Revision 1.2  1998/01/09 23:03:09  curt
-/* Restructured to split 1deg x 1deg dem's into 64 subsections.
+/* Revision 1.3  1998/03/03 16:00:59  curt
+/* More c++ compile tweaks.
 /*
+ * Revision 1.2  1998/01/09 23:03:09  curt
+ * Restructured to split 1deg x 1deg dem's into 64 subsections.
+ *
  * Revision 1.1  1997/11/27 00:17:35  curt
  * Initial revision.
  *
index 2d84f8e7480da55791a2121d354c6d29d2b3d72e..8b5e32451e5b4a4c0cbfa6beb90f55ae8d7e006f 100644 (file)
 
 
 extern int nodecount, tricount;
-double nodes[MAX_NODES][3];
 
 
 /* Initialize a new mesh structure */
-void triload(char *basename);
+void triload(char *basename, double nodes[MAX_NODES][3]);
 
 
 #endif /* TRILOAD_H */
 
 
 /* $Log$
-/* Revision 1.2  1998/01/09 23:03:09  curt
-/* Restructured to split 1deg x 1deg dem's into 64 subsections.
+/* Revision 1.3  1998/03/03 16:00:59  curt
+/* More c++ compile tweaks.
 /*
+ * Revision 1.2  1998/01/09 23:03:09  curt
+ * Restructured to split 1deg x 1deg dem's into 64 subsections.
+ *
  * Revision 1.1  1997/11/27 00:17:35  curt
  * Initial revision.
  *
index 93fb4f9b67c23db05e406dd80e0be21fcc356ee9..e44f5559d5613bcd67de9dd3fc429186f7ca1a69 100644 (file)
 
 int nodecount, tricount;
 int normalcount = 0;
-struct fgCartesianPoint nodes[MAX_NODES];
-int tris[MAX_TRIS][3];
-int new_tris[MAX_TRIS][3];
+static struct fgCartesianPoint nodes[MAX_NODES];
+static int tris[MAX_TRIS][3];
 
-double normals[MAX_NODES][3];
+static double normals[MAX_NODES][3];
 
 struct fgBUCKET my_index;
 struct fgBUCKET ne_index, nw_index, sw_index, se_index;
@@ -640,9 +639,12 @@ int main(int argc, char **argv) {
 
 
 /* $Log$
-/* Revision 1.10  1998/01/31 00:41:27  curt
-/* Made a few changes converting floats to doubles.
+/* Revision 1.11  1998/03/03 16:01:00  curt
+/* More c++ compile tweaks.
 /*
+ * Revision 1.10  1998/01/31 00:41:27  curt
+ * Made a few changes converting floats to doubles.
+ *
  * Revision 1.9  1998/01/27 18:37:04  curt
  * Lots of updates to get back in sync with changes made over in .../Src/
  *
index 0b867edaf137c51817a33a47f1fa80a084e4252f..e53ae1d0d4a4cac0921a10278209cc9f8c0d6832 100644 (file)
 #define MAX_TRIS  400000
 
 
-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 */
 void triload(char *basename, char *basepath);
 
@@ -50,9 +44,12 @@ void triload(char *basename, char *basepath);
 
 
 /* $Log$
-/* Revision 1.4  1998/01/17 01:25:40  curt
-/* Added support for shared normals.
+/* Revision 1.5  1998/03/03 16:01:00  curt
+/* More c++ compile tweaks.
 /*
+ * Revision 1.4  1998/01/17 01:25:40  curt
+ * Added support for shared normals.
+ *
  * Revision 1.3  1997/11/15 18:05:06  curt
  * minor tweaks ...
  *