Browse Source

detail

v5-2
Roberto Ierusalimschy 24 years ago
parent
commit
cd3d446957
  1. 5
      llimits.h
  2. 4
      lstate.c

5
llimits.h

@ -1,5 +1,5 @@
/*
** $Id: llimits.h,v 1.15 2000/09/29 12:42:13 roberto Exp roberto $
** $Id: llimits.h,v 1.16 2000/10/03 14:03:21 roberto Exp roberto $
** Limits, basic types, and some other "installation-dependent" definitions
** See Copyright Notice in lua.h
*/
@ -42,7 +42,8 @@
typedef LUA_NUM_TYPE Number;
/* function to convert a Number to a string */
#define lua_number2str(s,n) sprintf((s), "%.16g", (n))
#define NUMBER_FMT "%.16g" /* LUA_NUMBER */
#define lua_number2str(s,n) sprintf((s), NUMBER_FMT, (n))
/* function to convert a string to a Number */
#define lua_str2number(s,p) strtod((s), (p))

4
lstate.c

@ -1,5 +1,5 @@
/*
** $Id: lstate.c,v 1.42 2000/09/29 12:42:13 roberto Exp roberto $
** $Id: lstate.c,v 1.43 2000/10/05 13:00:17 roberto Exp roberto $
** Global State
** See Copyright Notice in lua.h
*/
@ -89,7 +89,7 @@ lua_State *lua_open (int stacksize) {
lua_close(L);
return NULL;
}
L->GCthreshold = L->nblocks*4;
L->GCthreshold = 2*L->nblocks;
return L;
}

Loading…
Cancel
Save