aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2001-06-19 19:31:22 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2001-06-19 19:31:22 +0000
commitc16b6d931243bed0d41f2fe1b7fced48fa493268 (patch)
tree861801082ad562e69f2ce67c335b1d694a80f73d /src
parentce0ad4c6b687aa6ff8aa24ef510e6e8716f9e995 (diff)
downloadluasocket-c16b6d931243bed0d41f2fe1b7fced48fa493268.tar.gz
luasocket-c16b6d931243bed0d41f2fe1b7fced48fa493268.tar.bz2
luasocket-c16b6d931243bed0d41f2fe1b7fced48fa493268.zip
LUASOCKET_API now prefixes all exported function declarations.
Diffstat (limited to 'src')
-rw-r--r--src/luasocket.c2
-rw-r--r--src/luasocket.h9
2 files changed, 9 insertions, 2 deletions
diff --git a/src/luasocket.c b/src/luasocket.c
index 96733b5..f72615a 100644
--- a/src/luasocket.c
+++ b/src/luasocket.c
@@ -1660,7 +1660,7 @@ static int receive_word(lua_State *L, p_sock sock)
1660* Initializes the library interface with Lua and the socket library. 1660* Initializes the library interface with Lua and the socket library.
1661* Defines the symbols exported to Lua. 1661* Defines the symbols exported to Lua.
1662\*-------------------------------------------------------------------------*/ 1662\*-------------------------------------------------------------------------*/
1663void lua_socketlibopen(lua_State *L) 1663LUASOCKET_API void lua_socketlibopen(lua_State *L)
1664{ 1664{
1665 struct luaL_reg funcs[] = { 1665 struct luaL_reg funcs[] = {
1666 {"bind", global_tcpbind}, 1666 {"bind", global_tcpbind},
diff --git a/src/luasocket.h b/src/luasocket.h
index 4402c02..a580b2c 100644
--- a/src/luasocket.h
+++ b/src/luasocket.h
@@ -21,9 +21,16 @@
21/* note that 576 bytes is the maximum safe value */ 21/* note that 576 bytes is the maximum safe value */
22 22
23/*-------------------------------------------------------------------------*\ 23/*-------------------------------------------------------------------------*\
24* This macro prefixes all exported API functions
25\*-------------------------------------------------------------------------*/
26#ifndef LUASOCKET_API
27#define LUASOCKET_API extern
28#endif
29
30/*-------------------------------------------------------------------------*\
24* Initializes the library interface with Lua and the socket library. 31* Initializes the library interface with Lua and the socket library.
25* Defines the symbols exported to Lua. 32* Defines the symbols exported to Lua.
26\*-------------------------------------------------------------------------*/ 33\*-------------------------------------------------------------------------*/
27void lua_socketlibopen(lua_State *L); 34LUASOCKET_API void lua_socketlibopen(lua_State *L);
28 35
29#endif /* _LUASOCKET_H_ */ 36#endif /* _LUASOCKET_H_ */