defintions for lua_number2str and lua_str2number don't need to be public

This commit is contained in:
Roberto Ierusalimschy
2002-06-05 09:34:19 -03:00
parent 94c2449d25
commit fa23301251
3 changed files with 15 additions and 13 deletions

10
lvm.c
View File

@@ -1,12 +1,11 @@
/*
** $Id: lvm.c,v 1.233 2002/05/27 20:35:40 roberto Exp roberto $
** $Id: lvm.c,v 1.234 2002/06/03 14:08:43 roberto Exp roberto $
** Lua virtual machine
** See Copyright Notice in lua.h
*/
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -25,6 +24,13 @@
#include "lvm.h"
/* function to convert a lua_Number to a string */
#ifndef lua_number2str
#include <stdio.h>
#define lua_number2str(s,n) sprintf((s), LUA_NUMBER_FMT, (n))
#endif
/* limit for table tag-method chains (to avoid loops) */
#define MAXTAGLOOP 10000