summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2006-06-02 12:34:00 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2006-06-02 12:34:00 -0300
commit475b0ecbf18be08ee824c4958ac33b7682891bbf (patch)
tree854e501480d5bc09f1c384177a399d09810de263
parent414359b2f103f94902a59926a44eab8b46296e0d (diff)
downloadlua-github-475b0ecbf18be08ee824c4958ac33b7682891bbf.tar.gz
new macro LUA_RELEASE
-rw-r--r--lapi.c4
-rw-r--r--lbaselib.c4
-rw-r--r--lua.c4
-rw-r--r--lua.h5
4 files changed, 9 insertions, 8 deletions
diff --git a/lapi.c b/lapi.c
index a1437e70..358de905 100644
--- a/lapi.c
+++ b/lapi.c
@@ -1,5 +1,5 @@
/*
-** $Id: lapi.c,v 2.52 2005/12/22 16:19:56 roberto Exp roberto $
+** $Id: lapi.c,v 2.53 2006/01/10 12:50:00 roberto Exp roberto $
** Lua API
** See Copyright Notice in lua.h
*/
@@ -32,7 +32,7 @@
const char lua_ident[] =
- "$Lua: " LUA_VERSION " " LUA_COPYRIGHT " $\n"
+ "$Lua: " LUA_RELEASE " " LUA_COPYRIGHT " $\n"
"$Authors: " LUA_AUTHORS " $\n"
"$URL: www.lua.org $\n";
diff --git a/lbaselib.c b/lbaselib.c
index bf3e3a39..4bd6a1f9 100644
--- a/lbaselib.c
+++ b/lbaselib.c
@@ -1,5 +1,5 @@
/*
-** $Id: lbaselib.c,v 1.189 2006/01/18 11:49:12 roberto Exp roberto $
+** $Id: lbaselib.c,v 1.190 2006/05/31 16:50:40 roberto Exp roberto $
** Basic library
** See Copyright Notice in lua.h
*/
@@ -619,7 +619,7 @@ static void base_open (lua_State *L) {
lua_setglobal(L, "_G");
/* open lib into global table */
luaL_register(L, "_G", base_funcs);
- lua_pushlstring(L, LUA_VERSION, 7);
+ lua_pushliteral(L, LUA_VERSION);
lua_setglobal(L, "_VERSION"); /* set global _VERSION */
/* `ipairs' and `pairs' need auxiliary functions as upvalues */
auxopen(L, "ipairs", luaB_ipairs, ipairsaux);
diff --git a/lua.c b/lua.c
index 8cf83087..b8cf32ed 100644
--- a/lua.c
+++ b/lua.c
@@ -1,5 +1,5 @@
/*
-** $Id: lua.c,v 1.158 2006/04/10 18:27:23 roberto Exp roberto $
+** $Id: lua.c,v 1.159 2006/05/24 14:16:39 roberto Exp roberto $
** Lua stand-alone interpreter
** See Copyright Notice in lua.h
*/
@@ -107,7 +107,7 @@ static int docall (lua_State *L, int narg, int clear) {
static void print_version (void) {
- l_message(NULL, LUA_VERSION " " LUA_COPYRIGHT);
+ l_message(NULL, LUA_RELEASE " " LUA_COPYRIGHT);
}
diff --git a/lua.h b/lua.h
index 0dd95d61..fd1e46e5 100644
--- a/lua.h
+++ b/lua.h
@@ -1,5 +1,5 @@
/*
-** $Id: lua.h,v 1.216 2006/01/10 12:50:13 roberto Exp roberto $
+** $Id: lua.h,v 1.217 2006/05/31 16:50:40 roberto Exp roberto $
** Lua - An Extensible Extension Language
** Lua.org, PUC-Rio, Brazil (http://www.lua.org)
** See Copyright Notice at the end of this file
@@ -16,7 +16,8 @@
#include "luaconf.h"
-#define LUA_VERSION "Lua 5.1.1"
+#define LUA_VERSION "Lua 5.1"
+#define LUA_RELEASE "Lua 5.1.1"
#define LUA_VERSION_NUM 501
#define LUA_COPYRIGHT "Copyright (C) 1994-2006 Lua.org, PUC-Rio"
#define LUA_AUTHORS "R. Ierusalimschy, L. H. de Figueiredo & W. Celes"