]> granicus.if.org Git - graphviz/commitdiff
Move placement of gvplugin_package_record as it is used if if LTDL is not.
authorerg <devnull@localhost>
Thu, 30 Oct 2008 22:15:41 +0000 (22:15 +0000)
committererg <devnull@localhost>
Thu, 30 Oct 2008 22:15:41 +0000 (22:15 +0000)
lib/gvc/gvconfig.c

index 63a3a5a2ab08bf7c77ed2b058b827b8d5cd036fb..b6088f5b825ee46f228235c5a815eff5d912163b 100644 (file)
@@ -93,6 +93,16 @@ extern const int Demand_Loading;
 
  */
 
+static gvplugin_package_t * gvplugin_package_record(GVC_t * gvc, char *path, char *name)
+{
+    gvplugin_package_t *package = gmalloc(sizeof(gvplugin_package_t));
+    package->path = (path) ? strdup(path) : NULL;
+    package->name = strdup(name);
+    package->next = gvc->packages;
+    gvc->packages = package;
+    return package;
+}
+
 #ifdef ENABLE_LTDL
 /*
   separator - consume all non-token characters until next token.  This includes:
@@ -159,16 +169,6 @@ static char *token(int *nest, char **tokens)
     return t;
 }
 
-static gvplugin_package_t * gvplugin_package_record(GVC_t * gvc, char *path, char *name)
-{
-    gvplugin_package_t *package = gmalloc(sizeof(gvplugin_package_t));
-    package->path = (path) ? strdup(path) : NULL;
-    package->name = strdup(name);
-    package->next = gvc->packages;
-    gvc->packages = package;
-    return package;
-}
-
 static int gvconfig_plugin_install_from_config(GVC_t * gvc, char *s)
 {
     char *path, *name, *api;