Skip to content

Commit

Permalink
Imported from ../lua-5.1.2.tar.gz.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lua Team committed Mar 29, 2007
1 parent 482d375 commit ace1089
Show file tree
Hide file tree
Showing 29 changed files with 443 additions and 266 deletions.
2 changes: 1 addition & 1 deletion 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-2007 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 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 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
13 changes: 5 additions & 8 deletions 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 Down Expand Up @@ -37,7 +38,7 @@ 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 +48,7 @@ TO_MAN= lua.1 luac.1

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

all: $(PLAT)

Expand Down Expand Up @@ -119,11 +120,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 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 doc/amazon.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
51 changes: 39 additions & 12 deletions doc/contents.html
Expand Up @@ -2,31 +2,59 @@
<HEAD>
<TITLE>Lua 5.1 reference manual - contents</TITLE>
<LINK REL="stylesheet" TYPE="text/css" HREF="lua.css">
<style type="text/css">
<STYLE TYPE="text/css">
ul {
list-style-type: none ;
list-style-position: outside ;
}
</style>
</STYLE>
</HEAD>

<BODY>

<HR>
<H1>
<A HREF="http://www.lua.org/"><IMG SRC="logo.gif" ALT="Lua" BORDER=0></A>
Reference manual for Lua 5.1
<A HREF="http://www.lua.org/"><IMG SRC="logo.gif" ALT="" BORDER=0></A>
Lua 5.1 Reference Manual
</H1>

This is an online version of
<BLOCKQUOTE>
<A HREF="http://www.amazon.com/exec/obidos/ASIN/8590379833/lua-indexmanual-20">
<IMG SRC="cover.png" ALT="" TITLE="buy from Amazon" BORDER=1 ALIGN="left" HSPACE=12>
</A>
<B>Lua 5.1 Reference Manual</B>
<BR>by R. Ierusalimschy, L. H. de Figueiredo, W. Celes
<BR>Lua.org, August 2006
<BR>ISBN 85-903798-3-3
<BR><A HREF="http://www.amazon.com/exec/obidos/ASIN/8590379833/lua-indexmanual-20">
<IMG SRC="amazon.gif" ALT="[Buy from Amazon]" BORDER=0></A>
<BR CLEAR="all">
</BLOCKQUOTE>
<P>

Buy a paper copy and
<A HREF="http://www.lua.org/donations.html">help to support</A>
the Lua project.
<P>

<A HREF="manual.html">start</A>
&middot;
<A HREF="#contents">contents</A>
&middot;
<A HREF="#index">index</A>
&middot;
<A HREF="http://www.lua.org/manual/5.1/errata.html">errata</A>
<HR>
<SMALL>
Copyright &copy; 2006-2007 Lua.org, PUC-Rio.
Freely available under the terms of the
<a href="http://www.lua.org/license.html#5">Lua license</a>.
</SMALL>
<P>

<H2><A NAME="contents">Contents</A></H2>
<UL style="padding: 0">
<LI><A HREF="manual.html">Top</A>
<LI><A HREF="manual.html#1">1 - Introduction</A>
<LI><A HREF="manual.html#2">2 - The Language</A>
<UL>
Expand Down Expand Up @@ -107,13 +135,12 @@ <H2><A NAME="contents">Contents</A></H2>
<LI><A HREF="manual.html#7.3">7.3 - Changes in the API</A>
</UL>
<LI><A HREF="manual.html#8">8 - The Complete Syntax of Lua</A>

</UL>

<H2><A NAME="index">Index</A></H2>
<TABLE>
<TABLE WIDTH="100%">
<TR VALIGN="top">
<TD WIDTH="20%">
<TD>
<H3><A NAME="functions">Lua functions</A></H3>
<A HREF="manual.html#pdf-_G">_G</A><BR>
<A HREF="manual.html#pdf-_VERSION">_VERSION</A><BR>
Expand Down Expand Up @@ -146,7 +173,7 @@ <H3><A NAME="functions">Lua functions</A></H3>
<A HREF="manual.html#pdf-xpcall">xpcall</A><BR>

</TD>
<TD WIDTH="30%">
<TD>
<H3>&nbsp;</H3>
<A HREF="manual.html#pdf-coroutine.create">coroutine.create</A><BR>
<A HREF="manual.html#pdf-coroutine.resume">coroutine.resume</A><BR>
Expand Down Expand Up @@ -254,7 +281,7 @@ <H3>&nbsp;</H3>
<A HREF="manual.html#pdf-table.sort">table.sort</A><BR>

</TD>
<TD WIDTH="25%">
<TD>
<H3>C API</H3>
<A HREF="manual.html#lua_Alloc">lua_Alloc</A><BR>
<A HREF="manual.html#lua_CFunction">lua_CFunction</A><BR>
Expand Down Expand Up @@ -419,10 +446,10 @@ <H3>auxiliary library</H3>
<HR>
<SMALL>
Last update:
Tue Jun 6 14:55:31 BRT 2006
Fri Mar 23 08:33:19 BRT 2007
</SMALL>
<!--
Last change: reformatted index
Last change: minor edit
-->

</BODY>
Expand Down
Binary file added doc/cover.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 21 additions & 2 deletions doc/lua.css
Expand Up @@ -2,16 +2,24 @@ body {
color: #000000 ;
background-color: #FFFFFF ;
font-family: sans-serif ;
text-align: justify ;
margin-right: 20px ;
margin-left: 20px ;
}

h1, h2, h3, h4 {
font-weight: normal ;
font-style: italic ;
}

a:link {
color: #000080 ;
background-color: #FFFFFF ;
background-color: inherit ;
text-decoration: none ;
}

a:visited {
background-color: #FFFFFF ;
background-color: inherit ;
text-decoration: none ;
}

Expand All @@ -20,3 +28,14 @@ a:link:hover, a:visited:hover {
background-color: #E0E0FF ;
}

a:link:active, a:visited:active {
color: #FF0000 ;
}

hr {
border: 0 ;
height: 1px ;
color: #a0a0a0 ;
background-color: #a0a0a0 ;
}

7 changes: 7 additions & 0 deletions doc/manual.css
@@ -0,0 +1,7 @@
h3 code {
font-family: inherit ;
}

pre {
font-size: 105% ;
}

0 comments on commit ace1089

Please sign in to comment.