]> granicus.if.org Git - graphviz/commitdiff
Re-enable printf emulation on Windows, and make sure text window is turned off
authorerg <devnull@localhost>
Fri, 12 Jan 2007 17:25:55 +0000 (17:25 +0000)
committererg <devnull@localhost>
Fri, 12 Jan 2007 17:25:55 +0000 (17:25 +0000)
by default in dotty.
Merge the Windows versions of dotty.c and lneato.c.

cmd/dotty/mswin32/dotty.c

index b347a426eeb4e719406c2eae295a97de4072e294..027e9ffae5d8c201195b0eaff06cb52636954954 100644 (file)
@@ -29,6 +29,13 @@ static char *shellpath;
 static char *buildpath (char *);
 static void panic (char *, int, char *, char *, ...);
 
+static char* lneato =
+#ifdef LNEATO
+  "dotty.protogt.lserver='neato';";
+#else
+  "";
+#endif
+
 int PASCAL WinMain (
     HANDLE hInstance, HANDLE hPrevInstance, LPSTR lpCmdLine, int nCmdShow
 ) {
@@ -54,14 +61,13 @@ int PASCAL WinMain (
     }
     if (lpCmdLine[0] == 0)
         sprintf (
-            /* cmd, "%s -e \"load('dotty.lefty');dotty.simple(null);\"", path */
-           cmd, "%s -e \"load('dotty.lefty');dotty.createviewandgraph(null,'file',null,null);\"", path
+           cmd, "%s -e \"load('dotty.lefty');%sdotty.createviewandgraph(null,'file',null,null);txtview('off');\"",
+           path, lneato
         );
     else
         sprintf (
-            /* cmd, "%s -e \"load('dotty.lefty');dotty.simple('%Ns');\"", */
-           cmd, "%s -e \"load('dotty.lefty');dotty.createviewandgraph('%Ns','file',null,null);\"",
-            path, lpCmdLine
+           cmd, "%s -e \"load('dotty.lefty');%sdotty.createviewandgraph('%Ns','file',null,null);txtview('off');\"",
+            path, lneato, lpCmdLine
         );
 
     CreateProcess (