Skip to content

Commit

Permalink
Updated Lua from 5.1.1 to 5.1.3.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Mar 18, 2008
1 parent fd32f1b commit 19f0450
Show file tree
Hide file tree
Showing 70 changed files with 1,236 additions and 717 deletions.
2 changes: 1 addition & 1 deletion src/lua-5.1.1/COPYRIGHT
Expand Up @@ -9,7 +9,7 @@ For details and rationale, see http://www.lua.org/license.html .

===============================================================================

Copyright (C) 1994-2006 Lua.org, PUC-Rio.
Copyright (C) 1994-2008 Lua.org, PUC-Rio.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion src/lua-5.1.1/HISTORY
Expand Up @@ -14,7 +14,7 @@ HISTORY for Lua 5.1
API:
+ new functions: lua_createtable, lua_get(set)field, lua_push(to)integer.
+ user supplies memory allocator (lua_open becomes lua_newstate).
+ luaopen_* functionst must be called through Lua.
+ luaopen_* functions must be called through Lua.
Implementation:
+ new configuration scheme via luaconf.h.
+ incremental garbage collection.
Expand Down
9 changes: 6 additions & 3 deletions src/lua-5.1.1/INSTALL
Expand Up @@ -8,7 +8,10 @@ INSTALL for Lua 5.1
Building Lua on Unix systems should be very easy. First do "make" and
see if your platform is listed. If so, just do "make xxx", where xxx
is your platform name. The platforms currently supported are:
ansi bsd generic linux macosx mingw posix solaris
aix ansi bsd freebsd generic linux macosx mingw posix solaris

If your platform is not listed, try the closest one or posix, generic,
ansi, in this order.

See below for customization instructions and for instructions on how
to build with other Windows compilers.
Expand Down Expand Up @@ -81,8 +84,8 @@ INSTALL for Lua 5.1

compiler: library, luac.c print.c

If you use Visual Studio .NET, you can use etc/luavs.bat
in its "Command Prompt".
If you use Visual Studio .NET, you can use etc/luavs.bat in its
"Command Prompt".

If all you want is to build the Lua interpreter, you may put all .c files
in a single project, except for luac.c and print.c. Or just use etc/all.c.
Expand Down
31 changes: 11 additions & 20 deletions src/lua-5.1.1/Makefile
Expand Up @@ -9,7 +9,8 @@ PLAT= none

# Where to install. The installation starts in the src directory, so take care
# if INSTALL_TOP is not an absolute path. (Man pages are installed from the
# doc directory.)
# doc directory.) You may want to make these paths consistent with LUA_ROOT,
# LUA_LDIR, and LUA_CDIR in luaconf.h (and also with etc/lua.pc).
#
INSTALL_TOP= /usr/local
INSTALL_BIN= $(INSTALL_TOP)/bin
Expand All @@ -19,25 +20,20 @@ INSTALL_MAN= $(INSTALL_TOP)/man/man1
INSTALL_LMOD= $(INSTALL_TOP)/share/lua/$V
INSTALL_CMOD= $(INSTALL_TOP)/lib/lua/$V

# How to install. You may prefer "install" instead of "cp" if you have it.
# To remove debug information from binaries, use "install -s" in INSTALL_EXEC.
#
INSTALL_EXEC= $(CP)
INSTALL_DATA= $(CP)
#INSTALL_EXEC= $(INSTALL) -m 0755
#INSTALL_DATA= $(INSTALL) -m 0644
# How to install. If you don't have "install" (unlikely) then get install-sh at
# http://dev.w3.org/cvsweb/libwww/config/install-sh
# or use cp instead.
INSTALL_EXEC= $(INSTALL) -p -m 0755
INSTALL_DATA= $(INSTALL) -p -m 0644

# Utilities.
CP= cp
FIND= find
INSTALL= install
MKDIR= mkdir
RANLIB= ranlib

# == END OF USER SETTINGS. NO NEED TO CHANGE ANYTHING BELOW THIS LINE =========

# Convenience platforms targets.
PLATS= aix ansi bsd generic linux macosx mingw posix solaris
PLATS= aix ansi bsd freebsd generic linux macosx mingw posix solaris

# What to install.
TO_BIN= lua luac
Expand All @@ -47,7 +43,7 @@ TO_MAN= lua.1 luac.1

# Lua version and release.
V= 5.1
R= 5.1.1
R= 5.1.3

all: $(PLAT)

Expand All @@ -63,10 +59,9 @@ install: dummy
cd src && $(INSTALL_DATA) $(TO_INC) $(INSTALL_INC)
cd src && $(INSTALL_DATA) $(TO_LIB) $(INSTALL_LIB)
cd doc && $(INSTALL_DATA) $(TO_MAN) $(INSTALL_MAN)
# $(RANLIB) $(INSTALL_LIB)/$(TO_LIB)

local:
$(MAKE) install INSTALL_TOP=.. INSTALL_EXEC="cp -p" INSTALL_DATA="cp -p"
$(MAKE) install INSTALL_TOP=..

none:
@echo "Please do"
Expand Down Expand Up @@ -119,11 +114,7 @@ lecho:
@$(MAKE) echo | grep = | sed -e 's/= /= "/' -e 's/$$/"/' #-e 's/""/nil/'
@echo "-- EOF"

# show what has changed since we unpacked
newer:
@$(FIND) . -newer MANIFEST -type f

# list targets that do not create files (but not all makes understand .PHONY)
.PHONY: all $(PLATS) clean test install local none dummy echo pecho lecho newer
.PHONY: all $(PLATS) clean test install local none dummy echo pecho lecho

# (end of Makefile)
4 changes: 2 additions & 2 deletions src/lua-5.1.1/README
Expand Up @@ -24,8 +24,8 @@ See HISTORY for a summary of changes since the last released version.
* Installation
------------
Lua is implemented in pure ANSI C, and compiles unmodified in all known
platforms that have an ANSI C compiler. Under Unix, simply typing "make"
should work. See INSTALL for detailed instructions.
platforms that have an ANSI C compiler. In most Unix-like platforms, simply
do "make" with a suitable target. See INSTALL for detailed instructions.

* Origin
------
Expand Down
Binary file added src/lua-5.1.1/doc/amazon.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 19f0450

Please sign in to comment.