summaryrefslogtreecommitdiff
path: root/lobject.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1998-05-18 19:26:03 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1998-05-18 19:26:03 -0300
commit054e0b888a45bc143b8e4cb7a6b77eba0350bb49 (patch)
tree5aff6a496078db9a2e068a04d484f46dca628319 /lobject.h
parentda252eeff7c64b034fa0c5acf25a5e8b2565bd4a (diff)
downloadlua-054e0b888a45bc143b8e4cb7a6b77eba0350bb49.tar.gz
lua-054e0b888a45bc143b8e4cb7a6b77eba0350bb49.tar.bz2
lua-054e0b888a45bc143b8e4cb7a6b77eba0350bb49.zip
number type in Lua changed for double (by default).
Diffstat (limited to 'lobject.h')
-rw-r--r--lobject.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/lobject.h b/lobject.h
index d2abaa1b..286261ae 100644
--- a/lobject.h
+++ b/lobject.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lobject.h,v 1.17 1998/03/06 16:54:42 roberto Exp $ 2** $Id: lobject.h,v 1.18 1998/03/09 21:49:52 roberto Exp roberto $
3** Type definitions for Lua objects 3** Type definitions for Lua objects
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -28,10 +28,11 @@
28** "real" is the type "number" of Lua 28** "real" is the type "number" of Lua
29** GREP LUA_NUMBER to change that 29** GREP LUA_NUMBER to change that
30*/ 30*/
31#ifndef real 31#ifndef LUA_NUM_TYPE
32#define real float 32#define LUA_NUM_TYPE double
33#endif 33#endif
34 34
35typedef LUA_NUM_TYPE real;
35 36
36#define Byte lua_Byte /* some systems have Byte as a predefined type */ 37#define Byte lua_Byte /* some systems have Byte as a predefined type */
37typedef unsigned char Byte; /* unsigned 8 bits */ 38typedef unsigned char Byte; /* unsigned 8 bits */