diff options
author | Diego Nehab <diego.nehab@gmail.com> | 2019-03-11 00:08:41 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-11 00:08:41 -0300 |
commit | c89a931cc31f219d51dd32a8a253d5ee3fbd31be (patch) | |
tree | 1fc604d7cbd6a42c801b92b145651d91c458dfa2 /src/except.c | |
parent | 2af4872a401cbd0c1255e19ee26620f0431dd9f5 (diff) | |
parent | 21514304be9e98a4386cb18542582068a59c5586 (diff) | |
download | luasocket-c89a931cc31f219d51dd32a8a253d5ee3fbd31be.tar.gz luasocket-c89a931cc31f219d51dd32a8a253d5ee3fbd31be.tar.bz2 luasocket-c89a931cc31f219d51dd32a8a253d5ee3fbd31be.zip |
Merge pull request #271 from ewestbrook/pragmavisibility
Use visibility pragma around declarations instead of attributes on definitions
Diffstat (limited to 'src/except.c')
-rw-r--r-- | src/except.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/except.c b/src/except.c index dab70e7..9c3317f 100644 --- a/src/except.c +++ b/src/except.c | |||
@@ -3,14 +3,8 @@ | |||
3 | * LuaSocket toolkit | 3 | * LuaSocket toolkit |
4 | \*=========================================================================*/ | 4 | \*=========================================================================*/ |
5 | #include "luasocket.h" | 5 | #include "luasocket.h" |
6 | |||
7 | #include <stdio.h> | ||
8 | |||
9 | #include "lua.h" | ||
10 | #include "lauxlib.h" | ||
11 | #include "compat.h" | ||
12 | |||
13 | #include "except.h" | 6 | #include "except.h" |
7 | #include <stdio.h> | ||
14 | 8 | ||
15 | #if LUA_VERSION_NUM < 502 | 9 | #if LUA_VERSION_NUM < 502 |
16 | #define lua_pcallk(L, na, nr, err, ctx, cont) \ | 10 | #define lua_pcallk(L, na, nr, err, ctx, cont) \ |
@@ -126,7 +120,7 @@ static int global_protect(lua_State *L) { | |||
126 | /*-------------------------------------------------------------------------*\ | 120 | /*-------------------------------------------------------------------------*\ |
127 | * Init module | 121 | * Init module |
128 | \*-------------------------------------------------------------------------*/ | 122 | \*-------------------------------------------------------------------------*/ |
129 | LUASOCKET_PRIVATE int except_open(lua_State *L) { | 123 | int except_open(lua_State *L) { |
130 | lua_newtable(L); /* metatable for wrapped exceptions */ | 124 | lua_newtable(L); /* metatable for wrapped exceptions */ |
131 | lua_pushboolean(L, 0); | 125 | lua_pushboolean(L, 0); |
132 | lua_setfield(L, -2, "__metatable"); | 126 | lua_setfield(L, -2, "__metatable"); |