summaryrefslogtreecommitdiff
path: root/lundump.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-07-08 09:43:23 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-07-08 09:43:23 -0300
commit16024861bd23ac9f837f956fbeec739878e5d895 (patch)
tree05cac8d123c6cfc05eaa56b806f18177dba39304 /lundump.h
parent3f43aaa23f9005a295056d0dce46a59565f1ef82 (diff)
downloadlua-github-16024861bd23ac9f837f956fbeec739878e5d895.tar.gz
new format for numbers in precompiled code (as strings)v3_2v3.2
Diffstat (limited to 'lundump.h')
-rw-r--r--lundump.h17
1 files changed, 4 insertions, 13 deletions
diff --git a/lundump.h b/lundump.h
index 0446ccdf..3f905cb0 100644
--- a/lundump.h
+++ b/lundump.h
@@ -1,5 +1,5 @@
/*
-** $Id: lundump.h,v 1.13 1999/03/29 16:16:18 lhf Exp lhf $
+** $Id: lundump.h,v 1.15 1999/07/02 19:34:26 lhf Exp $
** load pre-compiled Lua chunks
** See Copyright Notice in lua.h
*/
@@ -13,6 +13,8 @@
TProtoFunc* luaU_undump1 (ZIO* Z); /* load one chunk */
void luaU_badconstant (char* s, int i, TObject* o, TProtoFunc* tf);
/* handle cases that cannot happen */
+double luaU_str2d (char* b, char* where);
+ /* convert number from text */
/* definitions for headers of binary files */
#define VERSION 0x32 /* last format change was in 3.2 */
@@ -30,19 +32,8 @@ void luaU_badconstant (char* s, int i, TObject* o, TProtoFunc* tf);
#define NUMBER_FMT "%.16g" /* LUA_NUMBER */
#endif
-/* LUA_NUMBER
-* by default, numbers are stored in precompiled chunks as decimal strings.
-* this is completely portable and fast enough for most applications.
-* if you want to use this default, do nothing.
-* if you want additional speed at the expense of portability, move the line
-* below out of this comment.
-#define LUAC_NATIVE
-*/
-
-#ifdef LUAC_NATIVE
-/* a multiple of PI for testing number representation */
+/* a multiple of PI for testing native format */
/* multiplying by 1E8 gives non-trivial integer values */
#define TEST_NUMBER 3.14159265358979323846E8
-#endif
#endif