aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorE. Westbrook <github@westbrook.io>2019-02-25 15:58:30 -0700
committerE. Westbrook <github@westbrook.io>2019-02-25 15:58:30 -0700
commit2bf6730fd559e06727903eec77e52b29637c2af1 (patch)
tree2cd8a7739fae9bd75cd33ebde8c58fbd2f0b77d2
parentb95527e140fd0ec573ca0e83c5f64dffadd7e228 (diff)
downloadluasocket-2bf6730fd559e06727903eec77e52b29637c2af1.tar.gz
luasocket-2bf6730fd559e06727903eec77e52b29637c2af1.tar.bz2
luasocket-2bf6730fd559e06727903eec77e52b29637c2af1.zip
pragma.c: use LUASOCKET_PRIVATE
-rw-r--r--src/compat.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/compat.c b/src/compat.c
index 988fa68..1290f70 100644
--- a/src/compat.c
+++ b/src/compat.c
@@ -1,10 +1,11 @@
1#include "luasocket.h"
1#include "compat.h" 2#include "compat.h"
2 3
3#if LUA_VERSION_NUM==501 4#if LUA_VERSION_NUM==501
4/* 5/*
5** Adapted from Lua 5.2 6** Adapted from Lua 5.2
6*/ 7*/
7void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup) { 8LUASOCKET_PRIVATE void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup) {
8 luaL_checkstack(L, nup+1, "too many upvalues"); 9 luaL_checkstack(L, nup+1, "too many upvalues");
9 for (; l->name != NULL; l++) { /* fill the table with given functions */ 10 for (; l->name != NULL; l++) { /* fill the table with given functions */
10 int i; 11 int i;
@@ -20,7 +21,7 @@ void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup) {
20/* 21/*
21** Duplicated from Lua 5.2 22** Duplicated from Lua 5.2
22*/ 23*/
23void *luaL_testudata (lua_State *L, int ud, const char *tname) { 24LUASOCKET_PRIVATE void *luaL_testudata (lua_State *L, int ud, const char *tname) {
24 void *p = lua_touserdata(L, ud); 25 void *p = lua_touserdata(L, ud);
25 if (p != NULL) { /* value is a userdata? */ 26 if (p != NULL) { /* value is a userdata? */
26 if (lua_getmetatable(L, ud)) { /* does it have a metatable? */ 27 if (lua_getmetatable(L, ud)) { /* does it have a metatable? */