Browse Source

Fix lua LDFLAGS. Change plugin name to lua

Serj Kalichev 11 years ago
parent
commit
b2182151d1
3 changed files with 5 additions and 4 deletions
  1. 1 1
      plugins/lua/module.am
  2. 2 2
      plugins/lua/plugin_init.c
  3. 2 1
      plugins/lua/private.h

+ 1 - 1
plugins/lua/module.am

@@ -2,7 +2,7 @@ lib_LTLIBRARIES			+= clish_plugin_lua.la
 clish_plugin_lua_la_SOURCES	 = 
 clish_plugin_lua_la_LIBADD	 = @LUA_LIB@
 clish_plugin_lua_la_LDFLAGS	 = -avoid-version -module -shared
-clish_plugin_lua_la_LDFLAGS	+= -export-symbols-regex "^clish_plugin_lua_"
+clish_plugin_lua_la_LDFLAGS	+= -export-symbols-regex "^clish_plugin_"
 
 clish_plugin_lua_la_CPPFLAGS	 = $(AM_CPPFLAGS) @LUA_INCLUDE@
 

+ 2 - 2
plugins/lua/plugin_init.c

@@ -35,9 +35,9 @@ CLISH_PLUGIN_INIT
 	if(clish_plugin_init_lua(clish_shell))
 		return (-1);
 
-	clish_plugin__set_name(plugin, "lua_hooks");
+	clish_plugin__set_name(plugin, LUA_PLUGIN_NAME);
 
-	clish_plugin_add_sym(plugin, clish_plugin_lua_action, "hook_action");
+	clish_plugin_add_sym(plugin, clish_plugin_lua_action, "lua");
 
 	return 0;
 }

+ 2 - 1
plugins/lua/private.h

@@ -7,7 +7,8 @@
 #include <lualib.h>
 #include <lauxlib.h>
 
-#define LUA_UDATA	"lua state"
+#define LUA_UDATA "lua_state"
+#define LUA_PLUGIN_NAME "lua"
 
 extern char *scripts_path;
 void l_print_error(lua_State *, const char *, const char *, int);