aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorE. Westbrook <github@westbrook.io>2019-02-27 20:59:01 -0700
committerE. Westbrook <github@westbrook.io>2019-03-10 00:04:20 -0700
commitc2245f35c500b44bde6295f3f47cffd1c7b7e260 (patch)
treefc1f429cada1c1197924b0dd0e871019ecc77b74 /src
parentce6a08d57de42f8f2a78fd63b1b2bc90b3cc0156 (diff)
downloadluasocket-c2245f35c500b44bde6295f3f47cffd1c7b7e260.tar.gz
luasocket-c2245f35c500b44bde6295f3f47cffd1c7b7e260.tar.bz2
luasocket-c2245f35c500b44bde6295f3f47cffd1c7b7e260.zip
select: pragma visibility
Diffstat (limited to 'src')
-rw-r--r--src/select.c10
-rw-r--r--src/select.h4
2 files changed, 5 insertions, 9 deletions
diff --git a/src/select.c b/src/select.c
index b615b19..bb47c45 100644
--- a/src/select.c
+++ b/src/select.c
@@ -4,10 +4,6 @@
4\*=========================================================================*/ 4\*=========================================================================*/
5#include "luasocket.h" 5#include "luasocket.h"
6 6
7#include "lua.h"
8#include "lauxlib.h"
9#include "compat.h"
10
11#include "socket.h" 7#include "socket.h"
12#include "timeout.h" 8#include "timeout.h"
13#include "select.h" 9#include "select.h"
@@ -33,13 +29,10 @@ static luaL_Reg func[] = {
33 {NULL, NULL} 29 {NULL, NULL}
34}; 30};
35 31
36/*=========================================================================*\
37* Exported functions
38\*=========================================================================*/
39/*-------------------------------------------------------------------------*\ 32/*-------------------------------------------------------------------------*\
40* Initializes module 33* Initializes module
41\*-------------------------------------------------------------------------*/ 34\*-------------------------------------------------------------------------*/
42LUASOCKET_PRIVATE int select_open(lua_State *L) { 35int select_open(lua_State *L) {
43 lua_pushstring(L, "_SETSIZE"); 36 lua_pushstring(L, "_SETSIZE");
44 lua_pushinteger(L, FD_SETSIZE); 37 lua_pushinteger(L, FD_SETSIZE);
45 lua_rawset(L, -3); 38 lua_rawset(L, -3);
@@ -219,4 +212,3 @@ static void make_assoc(lua_State *L, int tab) {
219 i = i+1; 212 i = i+1;
220 } 213 }
221} 214}
222
diff --git a/src/select.h b/src/select.h
index 8750200..95272db 100644
--- a/src/select.h
+++ b/src/select.h
@@ -10,6 +10,10 @@
10* true if there is data ready for reading (required for buffered input). 10* true if there is data ready for reading (required for buffered input).
11\*=========================================================================*/ 11\*=========================================================================*/
12 12
13#pragma GCC visibility push(hidden)
14
13int select_open(lua_State *L); 15int select_open(lua_State *L);
14 16
17#pragma GCC visibility pop
18
15#endif /* SELECT_H */ 19#endif /* SELECT_H */