select: pragma visibility

This commit is contained in:
E. Westbrook 2019-02-27 20:59:01 -07:00
parent ce6a08d57d
commit c2245f35c5
2 changed files with 5 additions and 9 deletions

View File

@ -4,10 +4,6 @@
\*=========================================================================*/ \*=========================================================================*/
#include "luasocket.h" #include "luasocket.h"
#include "lua.h"
#include "lauxlib.h"
#include "compat.h"
#include "socket.h" #include "socket.h"
#include "timeout.h" #include "timeout.h"
#include "select.h" #include "select.h"
@ -33,13 +29,10 @@ static luaL_Reg func[] = {
{NULL, NULL} {NULL, NULL}
}; };
/*=========================================================================*\
* Exported functions
\*=========================================================================*/
/*-------------------------------------------------------------------------*\ /*-------------------------------------------------------------------------*\
* Initializes module * Initializes module
\*-------------------------------------------------------------------------*/ \*-------------------------------------------------------------------------*/
LUASOCKET_PRIVATE int select_open(lua_State *L) { int select_open(lua_State *L) {
lua_pushstring(L, "_SETSIZE"); lua_pushstring(L, "_SETSIZE");
lua_pushinteger(L, FD_SETSIZE); lua_pushinteger(L, FD_SETSIZE);
lua_rawset(L, -3); lua_rawset(L, -3);
@ -219,4 +212,3 @@ static void make_assoc(lua_State *L, int tab) {
i = i+1; i = i+1;
} }
} }

View File

@ -10,6 +10,10 @@
* true if there is data ready for reading (required for buffered input). * true if there is data ready for reading (required for buffered input).
\*=========================================================================*/ \*=========================================================================*/
#pragma GCC visibility push(hidden)
int select_open(lua_State *L); int select_open(lua_State *L);
#pragma GCC visibility pop
#endif /* SELECT_H */ #endif /* SELECT_H */