]> granicus.if.org Git - graphviz/commitdiff
Finish isrelateivepath function; add declaration to .h file
authorerg <devnull@localhost>
Wed, 20 May 2009 02:12:39 +0000 (02:12 +0000)
committererg <devnull@localhost>
Wed, 20 May 2009 02:12:39 +0000 (02:12 +0000)
cmd/gvpr/compile.c
cmd/gvpr/gprstate.c
cmd/gvpr/gprstate.h

index 90215c1aa889c8c78c7fe822a598519b99838c9d..2f7f1b1e215d25a6b096ecca26b70a233293f783 100644 (file)
@@ -18,6 +18,7 @@
 /*
  *  Compile-time and run-time interface between gpr and libexpr
  */
+
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
@@ -2356,5 +2357,3 @@ Agedge_t *openEdge(Agraph_t* g, Agnode_t * t, Agnode_t * h, char *key)
        agbindrec(ep, UDATA, sizeof(edata), 0);
     return ep;
 }
-
-
index 10e910f2485771cf3f952083a20d27a7453245ff..ab7ae976c80d7d0629d7ee15729dfbdaa0d87782 100644 (file)
@@ -56,14 +56,12 @@ Gpr_t *openGPRState()
 
     return state;
 }
+
+#ifdef WIN32
 int pathisrelative (char* path)
 {
-#ifdef WIN32
-       return PathIsRelative(path);
-#else
-       return 0;       /*FIX ME:code this part for UNIX*/
-#endif
-       
+    return PathIsRelative(path);
 
 }
+#endif
 
index bc421e3bd2f1bdeb71a20747318506e8e8f287ad..cbb1235f28500ac067fe87d95987257c2115ae2e 100644 (file)
@@ -59,6 +59,10 @@ extern "C" {
     extern void initGPRState(Gpr_t *, Vmalloc_t *, gpr_info *);
     extern int validTVT(int);
 
+#ifdef WIN32
+    extern int pathisrelative (char* path);
+#endif
+
 #endif
 
 #ifdef __cplusplus