Skip to content

Commit 4fd8751

Browse files
Lua Teamrepogen
authored andcommitted
Lua 5.2.4
1 parent 357e7cd commit 4fd8751

15 files changed

Lines changed: 187 additions & 68 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ TO_MAN= lua.1 luac.1
4646

4747
# Lua version and release.
4848
V= 5.2
49-
R= $V.3
49+
R= $V.4
5050

5151
# Targets start here.
5252
all: $(PLAT)

README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
This is Lua 5.2.3, released on 11 Nov 2013.
2+
This is Lua 5.2.4, released on 25 Feb 2015.
33

44
For installation instructions, license details, and
55
further information about Lua, see doc/readme.html.

doc/contents.html

Lines changed: 89 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
<STYLE TYPE="text/css">
88
ul {
99
list-style-type: none ;
10-
list-style-position: outside ;
1110
}
1211
</STYLE>
1312
</HEAD>
@@ -33,7 +32,7 @@ <H1>
3332
<A HREF="#index">index</A>
3433
<HR>
3534
<SMALL>
36-
Copyright &copy; 2011&ndash;2013 Lua.org, PUC-Rio.
35+
Copyright &copy; 2011&ndash;2015 Lua.org, PUC-Rio.
3736
Freely available under the terms of the
3837
<A HREF="http://www.lua.org/license.html">Lua license</A>.
3938
</SMALL>
@@ -139,10 +138,10 @@ <H2><A NAME="index">Index</A></H2>
139138
<TD>
140139
<H3><A NAME="functions">Lua functions</A></H3>
141140
<P>
141+
<A HREF="manual.html#6.1">basic</A><BR>
142142
<A HREF="manual.html#pdf-_G">_G</A><BR>
143143
<A HREF="manual.html#pdf-_VERSION">_VERSION</A><BR>
144144

145-
<P>
146145
<A HREF="manual.html#pdf-assert">assert</A><BR>
147146
<A HREF="manual.html#pdf-collectgarbage">collectgarbage</A><BR>
148147
<A HREF="manual.html#pdf-dofile">dofile</A><BR>
@@ -168,6 +167,7 @@ <H3><A NAME="functions">Lua functions</A></H3>
168167
<A HREF="manual.html#pdf-xpcall">xpcall</A><BR>
169168

170169
<P>
170+
<A HREF="manual.html#6.7">bit32</A><BR>
171171
<A HREF="manual.html#pdf-bit32.arshift">bit32.arshift</A><BR>
172172
<A HREF="manual.html#pdf-bit32.band">bit32.band</A><BR>
173173
<A HREF="manual.html#pdf-bit32.bnot">bit32.bnot</A><BR>
@@ -182,6 +182,7 @@ <H3><A NAME="functions">Lua functions</A></H3>
182182
<A HREF="manual.html#pdf-bit32.rshift">bit32.rshift</A><BR>
183183

184184
<P>
185+
<A HREF="manual.html#6.2">coroutine</A><BR>
185186
<A HREF="manual.html#pdf-coroutine.create">coroutine.create</A><BR>
186187
<A HREF="manual.html#pdf-coroutine.resume">coroutine.resume</A><BR>
187188
<A HREF="manual.html#pdf-coroutine.running">coroutine.running</A><BR>
@@ -190,6 +191,7 @@ <H3><A NAME="functions">Lua functions</A></H3>
190191
<A HREF="manual.html#pdf-coroutine.yield">coroutine.yield</A><BR>
191192

192193
<P>
194+
<A HREF="manual.html#6.10">debug</A><BR>
193195
<A HREF="manual.html#pdf-debug.debug">debug.debug</A><BR>
194196
<A HREF="manual.html#pdf-debug.getuservalue">debug.getuservalue</A><BR>
195197
<A HREF="manual.html#pdf-debug.gethook">debug.gethook</A><BR>
@@ -208,15 +210,7 @@ <H3><A NAME="functions">Lua functions</A></H3>
208210
<A HREF="manual.html#pdf-debug.upvaluejoin">debug.upvaluejoin</A><BR>
209211

210212
<P>
211-
<A HREF="manual.html#pdf-file:close">file:close</A><BR>
212-
<A HREF="manual.html#pdf-file:flush">file:flush</A><BR>
213-
<A HREF="manual.html#pdf-file:lines">file:lines</A><BR>
214-
<A HREF="manual.html#pdf-file:read">file:read</A><BR>
215-
<A HREF="manual.html#pdf-file:seek">file:seek</A><BR>
216-
<A HREF="manual.html#pdf-file:setvbuf">file:setvbuf</A><BR>
217-
<A HREF="manual.html#pdf-file:write">file:write</A><BR>
218-
219-
<P>
213+
<A HREF="manual.html#6.8">io</A><BR>
220214
<A HREF="manual.html#pdf-io.close">io.close</A><BR>
221215
<A HREF="manual.html#pdf-io.flush">io.flush</A><BR>
222216
<A HREF="manual.html#pdf-io.input">io.input</A><BR>
@@ -231,11 +225,19 @@ <H3><A NAME="functions">Lua functions</A></H3>
231225
<A HREF="manual.html#pdf-io.tmpfile">io.tmpfile</A><BR>
232226
<A HREF="manual.html#pdf-io.type">io.type</A><BR>
233227
<A HREF="manual.html#pdf-io.write">io.write</A><BR>
228+
<A HREF="manual.html#pdf-file:close">file:close</A><BR>
229+
<A HREF="manual.html#pdf-file:flush">file:flush</A><BR>
230+
<A HREF="manual.html#pdf-file:lines">file:lines</A><BR>
231+
<A HREF="manual.html#pdf-file:read">file:read</A><BR>
232+
<A HREF="manual.html#pdf-file:seek">file:seek</A><BR>
233+
<A HREF="manual.html#pdf-file:setvbuf">file:setvbuf</A><BR>
234+
<A HREF="manual.html#pdf-file:write">file:write</A><BR>
234235

235236
</TD>
236237
<TD>
237238
<H3>&nbsp;</H3>
238239
<P>
240+
<A HREF="manual.html#6.6">math</A><BR>
239241
<A HREF="manual.html#pdf-math.abs">math.abs</A><BR>
240242
<A HREF="manual.html#pdf-math.acos">math.acos</A><BR>
241243
<A HREF="manual.html#pdf-math.asin">math.asin</A><BR>
@@ -267,6 +269,7 @@ <H3>&nbsp;</H3>
267269
<A HREF="manual.html#pdf-math.tanh">math.tanh</A><BR>
268270

269271
<P>
272+
<A HREF="manual.html#6.9">os</A><BR>
270273
<A HREF="manual.html#pdf-os.clock">os.clock</A><BR>
271274
<A HREF="manual.html#pdf-os.date">os.date</A><BR>
272275
<A HREF="manual.html#pdf-os.difftime">os.difftime</A><BR>
@@ -280,6 +283,7 @@ <H3>&nbsp;</H3>
280283
<A HREF="manual.html#pdf-os.tmpname">os.tmpname</A><BR>
281284

282285
<P>
286+
<A HREF="manual.html#6.3">package</A><BR>
283287
<A HREF="manual.html#pdf-package.config">package.config</A><BR>
284288
<A HREF="manual.html#pdf-package.cpath">package.cpath</A><BR>
285289
<A HREF="manual.html#pdf-package.loaded">package.loaded</A><BR>
@@ -290,6 +294,7 @@ <H3>&nbsp;</H3>
290294
<A HREF="manual.html#pdf-package.searchpath">package.searchpath</A><BR>
291295

292296
<P>
297+
<A HREF="manual.html#6.4">string</A><BR>
293298
<A HREF="manual.html#pdf-string.byte">string.byte</A><BR>
294299
<A HREF="manual.html#pdf-string.char">string.char</A><BR>
295300
<A HREF="manual.html#pdf-string.dump">string.dump</A><BR>
@@ -306,13 +311,22 @@ <H3>&nbsp;</H3>
306311
<A HREF="manual.html#pdf-string.upper">string.upper</A><BR>
307312

308313
<P>
314+
<A HREF="manual.html#6.5">table</A><BR>
309315
<A HREF="manual.html#pdf-table.concat">table.concat</A><BR>
310316
<A HREF="manual.html#pdf-table.insert">table.insert</A><BR>
311317
<A HREF="manual.html#pdf-table.pack">table.pack</A><BR>
312318
<A HREF="manual.html#pdf-table.remove">table.remove</A><BR>
313319
<A HREF="manual.html#pdf-table.sort">table.sort</A><BR>
314320
<A HREF="manual.html#pdf-table.unpack">table.unpack</A><BR>
315321

322+
<H3><A NAME="env">environment<BR>variables</A></H3>
323+
<A HREF="manual.html#pdf-LUA_CPATH">LUA_CPATH</A><BR>
324+
<A HREF="manual.html#pdf-LUA_CPATH_5_2">LUA_CPATH_5_2</A><BR>
325+
<A HREF="manual.html#pdf-LUA_INIT">LUA_INIT</A><BR>
326+
<A HREF="manual.html#pdf-LUA_INIT_5_2">LUA_INIT_5_2</A><BR>
327+
<A HREF="manual.html#pdf-LUA_PATH">LUA_PATH</A><BR>
328+
<A HREF="manual.html#pdf-LUA_PATH_5_2">LUA_PATH_5_2</A><BR>
329+
316330
</TD>
317331
<TD>
318332
<H3>C API</H3>
@@ -516,17 +530,78 @@ <H3>auxiliary library</H3>
516530
<A HREF="manual.html#luaL_unref">luaL_unref</A><BR>
517531
<A HREF="manual.html#luaL_where">luaL_where</A><BR>
518532

533+
<H3><A NAME="library">standard library</A></H3>
534+
<P>
535+
<A HREF="manual.html#pdf-luaopen_base">luaopen_base</A><BR>
536+
<A HREF="manual.html#pdf-luaopen_bit32">luaopen_bit32</A><BR>
537+
<A HREF="manual.html#pdf-luaopen_coroutine">luaopen_coroutine</A><BR>
538+
<A HREF="manual.html#pdf-luaopen_debug">luaopen_debug</A><BR>
539+
<A HREF="manual.html#pdf-luaopen_io">luaopen_io</A><BR>
540+
<A HREF="manual.html#pdf-luaopen_math">luaopen_math</A><BR>
541+
<A HREF="manual.html#pdf-luaopen_os">luaopen_os</A><BR>
542+
<A HREF="manual.html#pdf-luaopen_package">luaopen_package</A><BR>
543+
<A HREF="manual.html#pdf-luaopen_string">luaopen_string</A><BR>
544+
<A HREF="manual.html#pdf-luaopen_table">luaopen_table</A><BR>
545+
546+
<H3><A NAME="constants">constants</A></H3>
547+
<A HREF="manual.html#pdf-LUA_ERRERR">LUA_ERRERR</A><BR>
548+
<A HREF="manual.html#pdf-LUA_ERRFILE">LUA_ERRFILE</A><BR>
549+
<A HREF="manual.html#pdf-LUA_ERRGCMM">LUA_ERRGCMM</A><BR>
550+
<A HREF="manual.html#pdf-LUA_ERRMEM">LUA_ERRMEM</A><BR>
551+
<A HREF="manual.html#pdf-LUA_ERRRUN">LUA_ERRRUN</A><BR>
552+
<A HREF="manual.html#pdf-LUA_ERRSYNTAX">LUA_ERRSYNTAX</A><BR>
553+
<A HREF="manual.html#pdf-LUA_HOOKCALL">LUA_HOOKCALL</A><BR>
554+
<A HREF="manual.html#pdf-LUA_HOOKCOUNT">LUA_HOOKCOUNT</A><BR>
555+
<A HREF="manual.html#pdf-LUA_HOOKLINE">LUA_HOOKLINE</A><BR>
556+
<A HREF="manual.html#pdf-LUA_HOOKRET">LUA_HOOKRET</A><BR>
557+
<A HREF="manual.html#pdf-LUA_HOOKTAILCALL">LUA_HOOKTAILCALL</A><BR>
558+
<A HREF="manual.html#pdf-LUA_MASKCALL">LUA_MASKCALL</A><BR>
559+
<A HREF="manual.html#pdf-LUA_MASKCOUNT">LUA_MASKCOUNT</A><BR>
560+
<A HREF="manual.html#pdf-LUA_MASKLINE">LUA_MASKLINE</A><BR>
561+
<A HREF="manual.html#pdf-LUA_MASKRET">LUA_MASKRET</A><BR>
562+
<A HREF="manual.html#pdf-LUA_MINSTACK">LUA_MINSTACK</A><BR>
563+
<A HREF="manual.html#pdf-LUA_MULTRET">LUA_MULTRET</A><BR>
564+
<A HREF="manual.html#pdf-LUA_NOREF">LUA_NOREF</A><BR>
565+
<A HREF="manual.html#pdf-LUA_OK">LUA_OK</A><BR>
566+
<A HREF="manual.html#pdf-LUA_OPADD">LUA_OPADD</A><BR>
567+
<A HREF="manual.html#pdf-LUA_OPDIV">LUA_OPDIV</A><BR>
568+
<A HREF="manual.html#pdf-LUA_OPEQ">LUA_OPEQ</A><BR>
569+
<A HREF="manual.html#pdf-LUA_OPLE">LUA_OPLE</A><BR>
570+
<A HREF="manual.html#pdf-LUA_OPLT">LUA_OPLT</A><BR>
571+
<A HREF="manual.html#pdf-LUA_OPMOD">LUA_OPMOD</A><BR>
572+
<A HREF="manual.html#pdf-LUA_OPMUL">LUA_OPMUL</A><BR>
573+
<A HREF="manual.html#pdf-LUA_OPPOW">LUA_OPPOW</A><BR>
574+
<A HREF="manual.html#pdf-LUA_OPSUB">LUA_OPSUB</A><BR>
575+
<A HREF="manual.html#pdf-LUA_OPUNM">LUA_OPUNM</A><BR>
576+
<A HREF="manual.html#pdf-LUA_REFNIL">LUA_REFNIL</A><BR>
577+
<A HREF="manual.html#pdf-LUA_REGISTRYINDEX">LUA_REGISTRYINDEX</A><BR>
578+
<A HREF="manual.html#pdf-LUA_RIDX_GLOBALS">LUA_RIDX_GLOBALS</A><BR>
579+
<A HREF="manual.html#pdf-LUA_RIDX_MAINTHREAD">LUA_RIDX_MAINTHREAD</A><BR>
580+
<A HREF="manual.html#pdf-LUA_TBOOLEAN">LUA_TBOOLEAN</A><BR>
581+
<A HREF="manual.html#pdf-LUA_TFUNCTION">LUA_TFUNCTION</A><BR>
582+
<A HREF="manual.html#pdf-LUA_TLIGHTUSERDATA">LUA_TLIGHTUSERDATA</A><BR>
583+
<A HREF="manual.html#pdf-LUA_TNIL">LUA_TNIL</A><BR>
584+
<A HREF="manual.html#pdf-LUA_TNONE">LUA_TNONE</A><BR>
585+
<A HREF="manual.html#pdf-LUA_TNUMBER">LUA_TNUMBER</A><BR>
586+
<A HREF="manual.html#pdf-LUA_TSTRING">LUA_TSTRING</A><BR>
587+
<A HREF="manual.html#pdf-LUA_TTABLE">LUA_TTABLE</A><BR>
588+
<A HREF="manual.html#pdf-LUA_TTHREAD">LUA_TTHREAD</A><BR>
589+
<A HREF="manual.html#pdf-LUA_TUSERDATA">LUA_TUSERDATA</A><BR>
590+
<A HREF="manual.html#pdf-LUA_USE_APICHECK">LUA_USE_APICHECK</A><BR>
591+
<A HREF="manual.html#pdf-LUA_YIELD">LUA_YIELD</A><BR>
592+
<A HREF="manual.html#pdf-LUAL_BUFFERSIZE">LUAL_BUFFERSIZE</A><BR>
593+
519594
</TD>
520595
</TR>
521596
</TABLE>
522597

523598
<HR>
524599
<SMALL CLASS="footer">
525600
Last update:
526-
Tue Mar 12 11:22:18 BRT 2013
601+
Mon Feb 23 22:24:36 BRT 2015
527602
</SMALL>
528603
<!--
529-
Last change: revised for Lua 5.2.2
604+
Last change: revised for Lua 5.2.4
530605
-->
531606

532607
</BODY>

doc/lua.css

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ body {
1111
background-color: #FFFFFF ;
1212
font-family: Helvetica, Arial, sans-serif ;
1313
text-align: justify ;
14+
line-height: 1.25 ;
1415
}
1516

1617
h1, h2, h3, h4 {
@@ -53,12 +54,17 @@ a:visited {
5354
a:link:hover, a:visited:hover {
5455
color: #000080 ;
5556
background-color: #D0D0FF ;
57+
border-radius: 4px ;
5658
}
5759

5860
a:link:active, a:visited:active {
5961
color: #FF0000 ;
6062
}
6163

64+
h1 a img {
65+
vertical-align: text-bottom ;
66+
}
67+
6268
hr {
6369
border: 0 ;
6470
height: 1px ;
@@ -86,11 +92,15 @@ table hr {
8692
input[type=text] {
8793
border: solid #a0a0a0 2px ;
8894
border-radius: 2em ;
89-
-moz-border-radius: 2em ;
9095
background-image: url('images/search.png') ;
91-
background-repeat: no-repeat;
96+
background-repeat: no-repeat ;
9297
background-position: 4px center ;
9398
padding-left: 20px ;
9499
height: 2em ;
95100
}
96101

102+
pre.session {
103+
background-color: #F8F8F8 ;
104+
padding: 1em ;
105+
border-radius: 8px ;
106+
}

doc/manual.html

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ <h1>
1919
by Roberto Ierusalimschy, Luiz Henrique de Figueiredo, Waldemar Celes
2020
<p>
2121
<small>
22-
Copyright &copy; 2011&ndash;2013 Lua.org, PUC-Rio.
22+
Copyright &copy; 2011&ndash;2015 Lua.org, PUC-Rio.
2323
Freely available under the terms of the
2424
<a href="http://www.lua.org/license.html">Lua license</a>.
2525
</small>
@@ -33,7 +33,7 @@ <h1>
3333
<!-- ====================================================================== -->
3434
<p>
3535

36-
<!-- $Id: manual.of,v 1.103 2013/03/14 18:51:56 roberto Exp $ -->
36+
<!-- $Id: manual.of,v 1.104 2013/06/01 00:13:11 roberto Exp $ -->
3737

3838

3939

@@ -2088,7 +2088,7 @@ <h3>3.4.6 &ndash; <a name="3.4.6">The Length Operator</a></h3>
20882088
table is a <em>sequence</em>,
20892089
that is,
20902090
the set of its positive numeric keys is equal to <em>{1..n}</em>
2091-
for some integer <em>n</em>.
2091+
for some non-negative integer <em>n</em>.
20922092
In that case, <em>n</em> is its length.
20932093
Note that a table like
20942094

@@ -4065,7 +4065,7 @@ <h2>4.8 &ndash; <a name="4.8">Functions and Types</a></h2>
40654065
<p>
40664066
Pushes onto the stack a formatted string
40674067
and returns a pointer to this string.
4068-
It is similar to the ANSI&nbsp;C function <code>sprintf</code>,
4068+
It is similar to the ISO&nbsp;C function <code>sprintf</code>,
40694069
but has some important differences:
40704070

40714071
<ul>
@@ -7906,7 +7906,7 @@ <h2>6.4 &ndash; <a name="6.4">String Manipulation</a></h2>
79067906
<p>
79077907
Returns a formatted version of its variable number of arguments
79087908
following the description given in its first argument (which must be a string).
7909-
The format string follows the same rules as the ANSI&nbsp;C function <code>sprintf</code>.
7909+
The format string follows the same rules as the ISO&nbsp;C function <code>sprintf</code>.
79107910
The only differences are that the options/modifiers
79117911
<code>*</code>, <code>h</code>, <code>L</code>, <code>l</code>, <code>n</code>,
79127912
and <code>p</code> are not supported
@@ -9486,7 +9486,7 @@ <h2>6.9 &ndash; <a name="6.9">Operating System Facilities</a></h2>
94869486
<p>
94879487
If <code>format</code> is not "<code>*t</code>",
94889488
then <code>date</code> returns the date as a string,
9489-
formatted according to the same rules as the ANSI&nbsp;C function <code>strftime</code>.
9489+
formatted according to the same rules as the ISO&nbsp;C function <code>strftime</code>.
94909490

94919491

94929492
<p>
@@ -9521,7 +9521,7 @@ <h2>6.9 &ndash; <a name="6.9">Operating System Facilities</a></h2>
95219521

95229522

95239523
<p>
9524-
This function is equivalent to the ANSI&nbsp;C function <code>system</code>.
9524+
This function is equivalent to the ISO&nbsp;C function <code>system</code>.
95259525
It passes <code>command</code> to be executed by an operating system shell.
95269526
Its first result is <b>true</b>
95279527
if the command terminated successfully,
@@ -9556,7 +9556,7 @@ <h2>6.9 &ndash; <a name="6.9">Operating System Facilities</a></h2>
95569556

95579557

95589558
<p>
9559-
Calls the ANSI&nbsp;C function <code>exit</code> to terminate the host program.
9559+
Calls the ISO&nbsp;C function <code>exit</code> to terminate the host program.
95609560
If <code>code</code> is <b>true</b>,
95619561
the returned status is <code>EXIT_SUCCESS</code>;
95629562
if <code>code</code> is <b>false</b>,
@@ -9893,16 +9893,17 @@ <h2>6.10 &ndash; <a name="6.10">The Debug Library</a></h2>
98939893
Sets the given function as a hook.
98949894
The string <code>mask</code> and the number <code>count</code> describe
98959895
when the hook will be called.
9896-
The string mask may have the following characters,
9896+
The string mask may have any combination of the following characters,
98979897
with the given meaning:
98989898

98999899
<ul>
99009900
<li><b>'<code>c</code>': </b> the hook is called every time Lua calls a function;</li>
99019901
<li><b>'<code>r</code>': </b> the hook is called every time Lua returns from a function;</li>
99029902
<li><b>'<code>l</code>': </b> the hook is called every time Lua enters a new line of code.</li>
99039903
</ul><p>
9904-
With a <code>count</code> different from zero,
9905-
the hook is called after every <code>count</code> instructions.
9904+
Moreover,
9905+
with a <code>count</code> different from zero,
9906+
the hook is called also after every <code>count</code> instructions.
99069907

99079908

99089909
<p>
@@ -10497,10 +10498,10 @@ <h1>9 &ndash; <a name="9">The Complete Syntax of Lua</a></h1>
1049710498
<HR>
1049810499
<SMALL CLASS="footer">
1049910500
Last update:
10500-
Thu Mar 21 12:58:59 BRT 2013
10501+
Mon Feb 23 22:24:44 BRT 2015
1050110502
</SMALL>
1050210503
<!--
10503-
Last change: revised for Lua 5.2.2
10504+
Last change: revised for Lua 5.2.4
1050410505
-->
1050510506

1050610507
</body></html>

0 commit comments

Comments
 (0)