aboutsummaryrefslogtreecommitdiff
path: root/src/select.c
diff options
context:
space:
mode:
authorDiego Nehab <diego.nehab@gmail.com>2019-03-11 00:08:41 -0300
committerGitHub <noreply@github.com>2019-03-11 00:08:41 -0300
commitc89a931cc31f219d51dd32a8a253d5ee3fbd31be (patch)
tree1fc604d7cbd6a42c801b92b145651d91c458dfa2 /src/select.c
parent2af4872a401cbd0c1255e19ee26620f0431dd9f5 (diff)
parent21514304be9e98a4386cb18542582068a59c5586 (diff)
downloadluasocket-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/select.c')
-rw-r--r--src/select.c10
1 files changed, 1 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