]> granicus.if.org Git - graphviz/commitdiff
add some builtins to tcldot and gv language bindings
authorellson <devnull@localhost>
Sat, 30 Jul 2005 17:40:04 +0000 (17:40 +0000)
committerellson <devnull@localhost>
Sat, 30 Jul 2005 17:40:04 +0000 (17:40 +0000)
tclpkg/gv/builtins.c
tclpkg/tcldot/builtins.c

index a97ee53ca4e30f1c12b98664e2d9602ea81da3bb..e045f6128f565858bc62bf4964dea86d4d1cfc39 100644 (file)
@@ -22,24 +22,16 @@ struct lt_symlist
     void* address;
 };
 
-#if 0
-const char *gvplugin_dot_layout_name = "gvplugin_dot_layout_LTX_library";
-const char *gvplugin_neato_layout_name = "gvplugin_neato_layout_LTX_library";
-const char *gvplugin_usershape_gd_name = "gvplugin_usershape_gd_LTX_library";
-
-extern gvplugin_library_t *gvplugin_dot_layout_LTX_library;
-extern gvplugin_library_t *gvplugin_neato_layout_LTX_library;
-extern gvplugin_library_t *gvplugin_usershape_gd_LTX_library;
+#if 1
+extern gvplugin_library_t gvplugin_dot_layout_LTX_library;
+extern gvplugin_library_t gvplugin_neato_layout_LTX_library;
+extern gvplugin_library_t gvplugin_usershape_gd_LTX_library;
 
 const struct lt_symlist lt_preloaded_symbols[] = {
-    {  gvplugin_dot_layout_name,
-       (void*)gvplugin_dot_layout_LTX_library },
-    {  gvplugin_neato_layout_name, 
-       (void*)gvplugin_neato_layout_LTX_library },
-    {  gvplugin_usershape_gd_name, 
-       (void*)gvplugin_usershape_gd_LTX_library },
-    {  0,
-       0 }
+    { "gvplugin_dot_layout_LTX_library", (void*)(&gvplugin_dot_layout_LTX_library) },
+    { "gvplugin_neato_layout_LTX_library", (void*)(&gvplugin_neato_layout_LTX_library) },
+    { "gvplugin_usershape_gd_LTX_library", (void*)(&gvplugin_usershape_gd_LTX_library) },
+    { 0, 0 }
 };
 #else
 const struct lt_symlist lt_preloaded_symbols[] = {{0,0,},};
index a97ee53ca4e30f1c12b98664e2d9602ea81da3bb..e045f6128f565858bc62bf4964dea86d4d1cfc39 100644 (file)
@@ -22,24 +22,16 @@ struct lt_symlist
     void* address;
 };
 
-#if 0
-const char *gvplugin_dot_layout_name = "gvplugin_dot_layout_LTX_library";
-const char *gvplugin_neato_layout_name = "gvplugin_neato_layout_LTX_library";
-const char *gvplugin_usershape_gd_name = "gvplugin_usershape_gd_LTX_library";
-
-extern gvplugin_library_t *gvplugin_dot_layout_LTX_library;
-extern gvplugin_library_t *gvplugin_neato_layout_LTX_library;
-extern gvplugin_library_t *gvplugin_usershape_gd_LTX_library;
+#if 1
+extern gvplugin_library_t gvplugin_dot_layout_LTX_library;
+extern gvplugin_library_t gvplugin_neato_layout_LTX_library;
+extern gvplugin_library_t gvplugin_usershape_gd_LTX_library;
 
 const struct lt_symlist lt_preloaded_symbols[] = {
-    {  gvplugin_dot_layout_name,
-       (void*)gvplugin_dot_layout_LTX_library },
-    {  gvplugin_neato_layout_name, 
-       (void*)gvplugin_neato_layout_LTX_library },
-    {  gvplugin_usershape_gd_name, 
-       (void*)gvplugin_usershape_gd_LTX_library },
-    {  0,
-       0 }
+    { "gvplugin_dot_layout_LTX_library", (void*)(&gvplugin_dot_layout_LTX_library) },
+    { "gvplugin_neato_layout_LTX_library", (void*)(&gvplugin_neato_layout_LTX_library) },
+    { "gvplugin_usershape_gd_LTX_library", (void*)(&gvplugin_usershape_gd_LTX_library) },
+    { 0, 0 }
 };
 #else
 const struct lt_symlist lt_preloaded_symbols[] = {{0,0,},};