Revision: 44851
http://brlcad.svn.sourceforge.net/brlcad/?rev=44851&view=rev
Author: brlcad
Date: 2011-06-09 03:38:49 +0000 (Thu, 09 Jun 2011)
Log Message:
-----------
let both of them work together, wrap in COMPILE_STANDALONE instead of ambiguous
if 0
Modified Paths:
--------------
brlcad/trunk/src/mged/points/main.c
Modified: brlcad/trunk/src/mged/points/main.c
===================================================================
--- brlcad/trunk/src/mged/points/main.c 2011-06-09 03:20:59 UTC (rev 44850)
+++ brlcad/trunk/src/mged/points/main.c 2011-06-09 03:38:49 UTC (rev 44851)
@@ -31,17 +31,13 @@
extern FILE *yyin;
extern int yyparse (void);
+#include "tcl.h"
+ClientData *cdata = NULL;
+Tcl_Interp *twerp = NULL;
-#if 0
-int main(int argc, char *argv[])
-#else
-# include "tcl.h"
- ClientData *cdata;
- Tcl_Interp *twerp;
-
- int parse_point_file(ClientData clientData, Tcl_Interp *interp, int argc,
char *argv[])
-#endif
+int
+parse_point_file(ClientData clientData, Tcl_Interp *interp, int argc, char
*argv[])
{
long int datapoints;
@@ -93,6 +89,15 @@
return 0;
}
+
+#ifdef COMPILE_STANDALONE
+int
+main(int argc, char *argv[]) {
+ return parse_point_file(cdata, twerp, argc, argv);
+}
+#endif
+
+
/*
* Local Variables:
* mode: C
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits