From: erg Date: Fri, 12 Jan 2007 17:25:55 +0000 (+0000) Subject: Re-enable printf emulation on Windows, and make sure text window is turned off X-Git-Tag: LAST_LIBGRAPH~32^2~5717 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0df22efec7a42323660efa10534a272c1b9950df;p=graphviz Re-enable printf emulation on Windows, and make sure text window is turned off by default in dotty. Merge the Windows versions of dotty.c and lneato.c. --- diff --git a/cmd/dotty/mswin32/dotty.c b/cmd/dotty/mswin32/dotty.c index b347a426e..027e9ffae 100644 --- a/cmd/dotty/mswin32/dotty.c +++ b/cmd/dotty/mswin32/dotty.c @@ -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 (