]> granicus.if.org Git - graphviz/commitdiff
windows api function PathIs Relative has been added
authorarif <devnull@localhost>
Tue, 19 May 2009 18:35:18 +0000 (18:35 +0000)
committerarif <devnull@localhost>
Tue, 19 May 2009 18:35:18 +0000 (18:35 +0000)
cmd/gvpr/compile.c
cmd/gvpr/gprstate.c
cmd/gvpr/gvpr.c

index 2f7f1b1e215d25a6b096ecca26b70a233293f783..90215c1aa889c8c78c7fe822a598519b99838c9d 100644 (file)
@@ -18,7 +18,6 @@
 /*
  *  Compile-time and run-time interface between gpr and libexpr
  */
-
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
@@ -2357,3 +2356,5 @@ Agedge_t *openEdge(Agraph_t* g, Agnode_t * t, Agnode_t * h, char *key)
        agbindrec(ep, UDATA, sizeof(edata), 0);
     return ep;
 }
+
+
index 8a60a5f5305e522504129f2f6d42d911bc5cd364..10e910f2485771cf3f952083a20d27a7453245ff 100644 (file)
  *
  */
 
+#ifdef WIN32
+#include "windows.h"
+#include "Shlwapi.h"
+#endif
+
 #include <gprstate.h>
 #include <error.h>
 #include <sfstr.h>
@@ -51,3 +56,14 @@ Gpr_t *openGPRState()
 
     return state;
 }
+int pathisrelative (char* path)
+{
+#ifdef WIN32
+       return PathIsRelative(path);
+#else
+       return 0;       /*FIX ME:code this part for UNIX*/
+#endif
+       
+
+}
+
index 9c7a881ad5e93aa22b2779ac29a86a6f78433e3e..4aa977612c121d2f9444ad41391b7c009c9aae06 100644 (file)
@@ -21,6 +21,7 @@
  * Written by Emden Gansner
  */
 
+
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
 #else
 #include "compat_getopt.h"
 #endif
-#ifdef WIN32
-#include <windows.h>
-#include <iostream.h>
-#include "Shlwapi.h"
-#endif
 
 char *Info[] = {
     "gvpr",                    /* Program */
@@ -204,7 +200,7 @@ static char *resolve(char *arg)
     size_t sz;
 
 #ifdef WIN32
-    if (!PathIsRelative (arg))
+    if (!pathisrelative (arg))
 #else
     if (strchr(arg, '/'))
 #endif