aboutsummaryrefslogtreecommitdiff
path: root/src/timeout.c
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2002-12-03 07:20:34 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2002-12-03 07:20:34 +0000
commit7da19138e37c4e0123860f1fecbceb80c3d2627d (patch)
tree8453f003a9ba212807d9c9590c2f2b850d323f0f /src/timeout.c
parentd7e80592a69c076991ed4f4cc15d5390e14d1f0b (diff)
downloadluasocket-7da19138e37c4e0123860f1fecbceb80c3d2627d.tar.gz
luasocket-7da19138e37c4e0123860f1fecbceb80c3d2627d.tar.bz2
luasocket-7da19138e37c4e0123860f1fecbceb80c3d2627d.zip
Faltam testes de ftp e smtp. O resto passa.
Diffstat (limited to 'src/timeout.c')
-rw-r--r--src/timeout.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/timeout.c b/src/timeout.c
index fdbc47a..940ddca 100644
--- a/src/timeout.c
+++ b/src/timeout.c
@@ -20,7 +20,7 @@
20/*=========================================================================*\ 20/*=========================================================================*\
21* Internal function prototypes 21* Internal function prototypes
22\*=========================================================================*/ 22\*=========================================================================*/
23#ifdef _DEBUG 23#ifdef LUASOCKET_DEBUG
24static int tm_lua_time(lua_State *L); 24static int tm_lua_time(lua_State *L);
25static int tm_lua_sleep(lua_State *L); 25static int tm_lua_sleep(lua_State *L);
26#endif 26#endif
@@ -123,7 +123,7 @@ int tm_gettime(void)
123void tm_open(lua_State *L) 123void tm_open(lua_State *L)
124{ 124{
125 (void) L; 125 (void) L;
126#ifdef _DEBUG 126#ifdef LUASOCKET_DEBUG
127 lua_pushcfunction(L, tm_lua_time); 127 lua_pushcfunction(L, tm_lua_time);
128 priv_newglobal(L, "_time"); 128 priv_newglobal(L, "_time");
129 lua_pushcfunction(L, tm_lua_sleep); 129 lua_pushcfunction(L, tm_lua_sleep);
@@ -137,7 +137,7 @@ void tm_open(lua_State *L)
137/*-------------------------------------------------------------------------*\ 137/*-------------------------------------------------------------------------*\
138* Returns the time the system has been up, in secconds. 138* Returns the time the system has been up, in secconds.
139\*-------------------------------------------------------------------------*/ 139\*-------------------------------------------------------------------------*/
140#ifdef _DEBUG 140#ifdef LUASOCKET_DEBUG
141static int tm_lua_time(lua_State *L) 141static int tm_lua_time(lua_State *L)
142{ 142{
143 lua_pushnumber(L, tm_gettime()/1000.0); 143 lua_pushnumber(L, tm_gettime()/1000.0);