diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1998-05-18 19:26:03 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1998-05-18 19:26:03 -0300 |
commit | 054e0b888a45bc143b8e4cb7a6b77eba0350bb49 (patch) | |
tree | 5aff6a496078db9a2e068a04d484f46dca628319 | |
parent | da252eeff7c64b034fa0c5acf25a5e8b2565bd4a (diff) | |
download | lua-054e0b888a45bc143b8e4cb7a6b77eba0350bb49.tar.gz lua-054e0b888a45bc143b8e4cb7a6b77eba0350bb49.tar.bz2 lua-054e0b888a45bc143b8e4cb7a6b77eba0350bb49.zip |
number type in Lua changed for double (by default).
-rw-r--r-- | lobject.h | 7 | ||||
-rw-r--r-- | lua.h | 4 | ||||
-rw-r--r-- | makefile | 4 | ||||
-rw-r--r-- | manual.tex | 6 |
4 files changed, 12 insertions, 9 deletions
@@ -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 | ||
35 | typedef 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 */ |
37 | typedef unsigned char Byte; /* unsigned 8 bits */ | 38 | typedef unsigned char Byte; /* unsigned 8 bits */ |
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lua.h,v 1.16 1998/03/06 16:54:42 roberto Exp roberto $ | 2 | ** $Id: lua.h,v 1.17 1998/03/06 18:47:42 roberto Exp roberto $ |
3 | ** Lua - An Extensible Extension Language | 3 | ** Lua - An Extensible Extension Language |
4 | ** TeCGraf: Grupo de Tecnologia em Computacao Grafica, PUC-Rio, Brazil | 4 | ** TeCGraf: Grupo de Tecnologia em Computacao Grafica, PUC-Rio, Brazil |
5 | ** e-mail: lua@tecgraf.puc-rio.br | 5 | ** e-mail: lua@tecgraf.puc-rio.br |
@@ -43,7 +43,7 @@ | |||
43 | #ifndef lua_h | 43 | #ifndef lua_h |
44 | #define lua_h | 44 | #define lua_h |
45 | 45 | ||
46 | #define LUA_VERSION "Lua 3.1 (alpha)" | 46 | #define LUA_VERSION "Lua 3.1" |
47 | #define LUA_COPYRIGHT "Copyright (C) 1994-1998 TeCGraf" | 47 | #define LUA_COPYRIGHT "Copyright (C) 1994-1998 TeCGraf" |
48 | #define LUA_AUTHORS "W. Celes, R. Ierusalimschy & L. H. de Figueiredo" | 48 | #define LUA_AUTHORS "W. Celes, R. Ierusalimschy & L. H. de Figueiredo" |
49 | 49 | ||
@@ -1,5 +1,5 @@ | |||
1 | # | 1 | # |
2 | ## $Id: makefile,v 1.9 1998/01/02 17:46:32 roberto Exp roberto $ | 2 | ## $Id: makefile,v 1.10 1998/01/05 17:12:54 roberto Exp roberto $ |
3 | ## Makefile | 3 | ## Makefile |
4 | ## See Copyright Notice in lua.h | 4 | ## See Copyright Notice in lua.h |
5 | # | 5 | # |
@@ -17,6 +17,8 @@ | |||
17 | # | 17 | # |
18 | # define LUA_COMPAT2_5 if yous system does need to be compatible with | 18 | # define LUA_COMPAT2_5 if yous system does need to be compatible with |
19 | # version 2.5 (or older) | 19 | # version 2.5 (or older) |
20 | # | ||
21 | #define LUA_NUM_TYPE if you need numbers to be different from double | ||
20 | 22 | ||
21 | CONFIG = -DPOPEN -D_POSIX_SOURCE | 23 | CONFIG = -DPOPEN -D_POSIX_SOURCE |
22 | #CONFIG = -DLUA_COMPAT2_5 -DOLD_ANSI -DDEBUG | 24 | #CONFIG = -DLUA_COMPAT2_5 -DOLD_ANSI -DDEBUG |
@@ -1,4 +1,4 @@ | |||
1 | % $Id: manual.tex,v 1.7 1998/03/30 18:17:55 roberto Exp roberto $ | 1 | % $Id: manual.tex,v 1.8 1998/04/02 16:09:16 roberto Exp roberto $ |
2 | 2 | ||
3 | \documentstyle[fullpage,11pt,bnf]{article} | 3 | \documentstyle[fullpage,11pt,bnf]{article} |
4 | 4 | ||
@@ -38,7 +38,7 @@ Waldemar Celes | |||
38 | \tecgraf\ --- Computer Science Department --- PUC-Rio | 38 | \tecgraf\ --- Computer Science Department --- PUC-Rio |
39 | } | 39 | } |
40 | 40 | ||
41 | \date{\small \verb$Date: 1998/03/30 18:17:55 $} | 41 | \date{\small \verb$Date: 1998/04/02 16:09:16 $} |
42 | 42 | ||
43 | \maketitle | 43 | \maketitle |
44 | 44 | ||
@@ -235,7 +235,7 @@ There are six \Index{basic types} in Lua: \Def{nil}, \Def{number}, | |||
235 | \Def{string}, \Def{function}, \Def{userdata}, and \Def{table}. | 235 | \Def{string}, \Def{function}, \Def{userdata}, and \Def{table}. |
236 | \emph{Nil} is the type of the value \nil, | 236 | \emph{Nil} is the type of the value \nil, |
237 | whose main property is to be different from any other value. | 237 | whose main property is to be different from any other value. |
238 | \emph{Number} represents real (floating-point) numbers, | 238 | \emph{Number} represents real (floating-point with double precision) numbers, |
239 | while \emph{string} has the usual meaning; | 239 | while \emph{string} has the usual meaning; |
240 | notice that Lua is \Index{eight-bit clean}, | 240 | notice that Lua is \Index{eight-bit clean}, |
241 | and so strings can contain any ISO character, | 241 | and so strings can contain any ISO character, |