aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-07-25 12:02:41 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-07-25 12:02:41 -0300
commit85c1461422a8a97a25ee385793def9c89e70739c (patch)
tree8ba8ec0d5500067760800bba65ea7499db30adf6
parent5ba556d27a0114d43941335fab4968c51dd1cef5 (diff)
downloadlua-85c1461422a8a97a25ee385793def9c89e70739c.tar.gz
lua-85c1461422a8a97a25ee385793def9c89e70739c.tar.bz2
lua-85c1461422a8a97a25ee385793def9c89e70739c.zip
new macros LUA_VERSION_{MAJOR/MINOR/RELEASE}
-rw-r--r--lua.h10
-rw-r--r--luaconf.h8
2 files changed, 12 insertions, 6 deletions
diff --git a/lua.h b/lua.h
index 87c81e75..9b3c10ef 100644
--- a/lua.h
+++ b/lua.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lua.h,v 1.270 2010/05/12 14:09:20 roberto Exp roberto $ 2** $Id: lua.h,v 1.271 2010/07/02 12:01:53 roberto Exp roberto $
3** Lua - A Scripting Language 3** Lua - A Scripting Language
4** Lua.org, PUC-Rio, Brazil (http://www.lua.org) 4** Lua.org, PUC-Rio, Brazil (http://www.lua.org)
5** See Copyright Notice at the end of this file 5** See Copyright Notice at the end of this file
@@ -16,8 +16,12 @@
16#include "luaconf.h" 16#include "luaconf.h"
17 17
18 18
19#define LUA_VERSION "Lua 5.2" 19#define LUA_VERSION_MAJOR "5"
20#define LUA_RELEASE "Lua 5.2.0" 20#define LUA_VERSION_MINOR "2"
21#define LUA_VERSION_RELEASE "0"
22
23#define LUA_VERSION "Lua " LUA_VERSION_MAJOR "." LUA_VERSION_MINOR
24#define LUA_RELEASE LUA_VERSION "." LUA_VERSION_RELEASE
21#define LUA_VERSION_NUM 502 25#define LUA_VERSION_NUM 502
22#define LUA_COPYRIGHT LUA_RELEASE " Copyright (C) 1994-2010 Lua.org, PUC-Rio" 26#define LUA_COPYRIGHT LUA_RELEASE " Copyright (C) 1994-2010 Lua.org, PUC-Rio"
23#define LUA_AUTHORS "R. Ierusalimschy, L. H. de Figueiredo, W. Celes" 27#define LUA_AUTHORS "R. Ierusalimschy, L. H. de Figueiredo, W. Celes"
diff --git a/luaconf.h b/luaconf.h
index 3755e7c7..8a81f189 100644
--- a/luaconf.h
+++ b/luaconf.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: luaconf.h,v 1.139 2010/05/28 14:27:07 roberto Exp roberto $ 2** $Id: luaconf.h,v 1.140 2010/07/18 14:34:45 roberto Exp roberto $
3** Configuration file for Lua 3** Configuration file for Lua
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -90,9 +90,11 @@
90 LUA_CDIR"?.dll;" LUA_CDIR"loadall.dll;" ".\\?.dll" 90 LUA_CDIR"?.dll;" LUA_CDIR"loadall.dll;" ".\\?.dll"
91 91
92#else /* }{ */ 92#else /* }{ */
93
94#define LUA_VDIR LUA_VERSION_MAJOR "." LUA_VERSION_MINOR "/"
93#define LUA_ROOT "/usr/local/" 95#define LUA_ROOT "/usr/local/"
94#define LUA_LDIR LUA_ROOT "share/lua/5.2/" 96#define LUA_LDIR LUA_ROOT "share/lua/" LUA_VDIR
95#define LUA_CDIR LUA_ROOT "lib/lua/5.2/" 97#define LUA_CDIR LUA_ROOT "lib/lua/" LUA_VDIR
96#define LUA_PATH_DEFAULT \ 98#define LUA_PATH_DEFAULT \
97 LUA_LDIR"?.lua;" LUA_LDIR"?/init.lua;" \ 99 LUA_LDIR"?.lua;" LUA_LDIR"?/init.lua;" \
98 LUA_CDIR"?.lua;" LUA_CDIR"?/init.lua;" "./?.lua" 100 LUA_CDIR"?.lua;" LUA_CDIR"?/init.lua;" "./?.lua"