From: erg Date: Wed, 20 May 2009 02:12:39 +0000 (+0000) Subject: Finish isrelateivepath function; add declaration to .h file X-Git-Tag: LAST_LIBGRAPH~32^2~2040 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9c273438f0c0fe113f9a196298f03cb6d23265e4;p=graphviz Finish isrelateivepath function; add declaration to .h file --- diff --git a/cmd/gvpr/compile.c b/cmd/gvpr/compile.c index 90215c1aa..2f7f1b1e2 100644 --- a/cmd/gvpr/compile.c +++ b/cmd/gvpr/compile.c @@ -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; } - - diff --git a/cmd/gvpr/gprstate.c b/cmd/gvpr/gprstate.c index 10e910f24..ab7ae976c 100644 --- a/cmd/gvpr/gprstate.c +++ b/cmd/gvpr/gprstate.c @@ -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 diff --git a/cmd/gvpr/gprstate.h b/cmd/gvpr/gprstate.h index bc421e3bd..cbb1235f2 100644 --- a/cmd/gvpr/gprstate.h +++ b/cmd/gvpr/gprstate.h @@ -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