/* 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;
/* $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.
*
#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);
/* $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.
*
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;
/* $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.
*
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 */
/* $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.
*
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)
#---------------------------------------------------------------------------
# $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
#