diff options
author | E. Westbrook <github@westbrook.io> | 2019-02-25 16:01:21 -0700 |
---|---|---|
committer | E. Westbrook <github@westbrook.io> | 2019-02-25 16:01:21 -0700 |
commit | 30a0a6003b3150af8b317cc8e39ebfa43636e2d0 (patch) | |
tree | 4df2903893ef5ddc843affde88616044999a8621 /src | |
parent | 87c2dee13e05d5474e2acde7f5dca29edd589335 (diff) | |
download | luasocket-30a0a6003b3150af8b317cc8e39ebfa43636e2d0.tar.gz luasocket-30a0a6003b3150af8b317cc8e39ebfa43636e2d0.tar.bz2 luasocket-30a0a6003b3150af8b317cc8e39ebfa43636e2d0.zip |
udp.c: use LUASOCKET_PRIVATE
Diffstat (limited to 'src')
-rw-r--r-- | src/udp.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -2,8 +2,7 @@ | |||
2 | * UDP object | 2 | * UDP object |
3 | * LuaSocket toolkit | 3 | * LuaSocket toolkit |
4 | \*=========================================================================*/ | 4 | \*=========================================================================*/ |
5 | #include <string.h> | 5 | #include "luasocket.h" |
6 | #include <stdlib.h> | ||
7 | 6 | ||
8 | #include "lua.h" | 7 | #include "lua.h" |
9 | #include "lauxlib.h" | 8 | #include "lauxlib.h" |
@@ -15,6 +14,9 @@ | |||
15 | #include "options.h" | 14 | #include "options.h" |
16 | #include "udp.h" | 15 | #include "udp.h" |
17 | 16 | ||
17 | #include <string.h> | ||
18 | #include <stdlib.h> | ||
19 | |||
18 | /* min and max macros */ | 20 | /* min and max macros */ |
19 | #ifndef MIN | 21 | #ifndef MIN |
20 | #define MIN(x, y) ((x) < (y) ? x : y) | 22 | #define MIN(x, y) ((x) < (y) ? x : y) |
@@ -122,7 +124,7 @@ static luaL_Reg func[] = { | |||
122 | /*-------------------------------------------------------------------------*\ | 124 | /*-------------------------------------------------------------------------*\ |
123 | * Initializes module | 125 | * Initializes module |
124 | \*-------------------------------------------------------------------------*/ | 126 | \*-------------------------------------------------------------------------*/ |
125 | int udp_open(lua_State *L) { | 127 | LUASOCKET_PRIVATE int udp_open(lua_State *L) { |
126 | /* create classes */ | 128 | /* create classes */ |
127 | auxiliar_newclass(L, "udp{connected}", udp_methods); | 129 | auxiliar_newclass(L, "udp{connected}", udp_methods); |
128 | auxiliar_newclass(L, "udp{unconnected}", udp_methods); | 130 | auxiliar_newclass(L, "udp{unconnected}", udp_methods); |