aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/utils/iwinfo
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-05-21 12:34:18 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-05-21 12:34:18 +0000
commit0e45d6b379b92747a02b4a596b566f1a295c54a4 (patch)
tree480751d9248fd18e4c0ab74d555b8647193f8e40 /package/network/utils/iwinfo
parentaed6501d7acf2854386e1a11044a884a3be4f063 (diff)
downloadmaster-187ad058-0e45d6b379b92747a02b4a596b566f1a295c54a4.tar.gz
master-187ad058-0e45d6b379b92747a02b4a596b566f1a295c54a4.tar.bz2
master-187ad058-0e45d6b379b92747a02b4a596b566f1a295c54a4.zip
iwinfo: remove old lua compat macros
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40816 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/utils/iwinfo')
-rw-r--r--package/network/utils/iwinfo/src/include/iwinfo/lua.h31
1 files changed, 0 insertions, 31 deletions
diff --git a/package/network/utils/iwinfo/src/include/iwinfo/lua.h b/package/network/utils/iwinfo/src/include/iwinfo/lua.h
index ad79897260..8b76b25556 100644
--- a/package/network/utils/iwinfo/src/include/iwinfo/lua.h
+++ b/package/network/utils/iwinfo/src/include/iwinfo/lua.h
@@ -45,18 +45,6 @@
#define LUA_REG(type,op) \
{ #op, iwinfo_L_##type##_##op }
-#define LUA_WRAP_INT(type,op) \
- static int iwinfo_L_##type##_##op(lua_State *L) \
- { \
- const char *ifname = luaL_checkstring(L, 1); \
- int rv; \
- if( !type##_get_##op(ifname, &rv) ) \
- lua_pushnumber(L, rv); \
- else \
- lua_pushnil(L); \
- return 1; \
- }
-
#define LUA_WRAP_INT_OP(type,op) \
static int iwinfo_L_##type##_##op(lua_State *L) \
{ \
@@ -69,19 +57,6 @@
return 1; \
}
-#define LUA_WRAP_STRING(type,op) \
- static int iwinfo_L_##type##_##op(lua_State *L) \
- { \
- const char *ifname = luaL_checkstring(L, 1); \
- char rv[IWINFO_BUFSIZE]; \
- memset(rv, 0, IWINFO_BUFSIZE); \
- if( !type##_get_##op(ifname, rv) ) \
- lua_pushstring(L, rv); \
- else \
- lua_pushnil(L); \
- return 1; \
- }
-
#define LUA_WRAP_STRING_OP(type,op) \
static int iwinfo_L_##type##_##op(lua_State *L) \
{ \
@@ -95,12 +70,6 @@
return 1; \
}
-#define LUA_WRAP_STRUCT(type,op) \
- static int iwinfo_L_##type##_##op(lua_State *L) \
- { \
- return iwinfo_L_##op(L, type##_get_##op); \
- }
-
#define LUA_WRAP_STRUCT_OP(type,op) \
static int iwinfo_L_##type##_##op(lua_State *L) \
{ \