aboutsummaryrefslogtreecommitdiff
path: root/lvm.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-06-05 09:34:19 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-06-05 09:34:19 -0300
commitfa233012511e42740cb3ed12d553ad8f0a8e49d2 (patch)
tree566b2370f1096e8ddcf6ace08a1e6660d9a7448f /lvm.c
parent94c2449d25d0e00d72c2aa22904d6ff2cbb11ee2 (diff)
downloadlua-fa233012511e42740cb3ed12d553ad8f0a8e49d2.tar.gz
lua-fa233012511e42740cb3ed12d553ad8f0a8e49d2.tar.bz2
lua-fa233012511e42740cb3ed12d553ad8f0a8e49d2.zip
defintions for lua_number2str and lua_str2number don't need to be public
Diffstat (limited to 'lvm.c')
-rw-r--r--lvm.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/lvm.c b/lvm.c
index 10ba9cd5..5413c901 100644
--- a/lvm.c
+++ b/lvm.c
@@ -1,12 +1,11 @@
1/* 1/*
2** $Id: lvm.c,v 1.233 2002/05/27 20:35:40 roberto Exp roberto $ 2** $Id: lvm.c,v 1.234 2002/06/03 14:08:43 roberto Exp roberto $
3** Lua virtual machine 3** Lua virtual machine
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
6 6
7 7
8#include <stdarg.h> 8#include <stdarg.h>
9#include <stdio.h>
10#include <stdlib.h> 9#include <stdlib.h>
11#include <string.h> 10#include <string.h>
12 11
@@ -25,6 +24,13 @@
25#include "lvm.h" 24#include "lvm.h"
26 25
27 26
27/* function to convert a lua_Number to a string */
28#ifndef lua_number2str
29#include <stdio.h>
30#define lua_number2str(s,n) sprintf((s), LUA_NUMBER_FMT, (n))
31#endif
32
33
28/* limit for table tag-method chains (to avoid loops) */ 34/* limit for table tag-method chains (to avoid loops) */
29#define MAXTAGLOOP 10000 35#define MAXTAGLOOP 10000
30 36