| @@ -33,7 +33,7 @@ Freely available under the terms of the · 32 unmodified lines |
| 33 | <!-- ====================================================================== --> | 33 | <!-- ====================================================================== --> |
| 34 | <p> | 34 | <p> |
| 35 | | 35 | |
| 36 | <!-- $Id: manual.of,v 1.97 2012/05/23 15:50:01 roberto Exp $ --> | 36 | <!-- $Id: manual.of,v 1.98 2012/05/31 13:01:09 roberto Exp $ --> |
| 37 | | 37 | |
| 38 | | 38 | |
| 39 | | 39 | |
| @@ -2828,8 +2828,7 @@ by looking only at its arguments · 2788 unmodified lines |
| 2828 | The third field, <code>x</code>, | 2828 | The third field, <code>x</code>, |
| 2829 | tells whether the function may throw errors: | 2829 | tells whether the function may throw errors: |
| 2830 | '<code>-</code>' means the function never throws any error; | 2830 | '<code>-</code>' means the function never throws any error; |
| 2831 | '<code>m</code>' means the function may throw only memory allocation errors; | 2831 | '<code>e</code>' means the function may throw errors; |
| 2832 | '<code>e</code>' means the function may throw other kinds of errors; | | |
| 2833 | '<code>v</code>' means the function may throw an error on purpose. | 2832 | '<code>v</code>' means the function may throw an error on purpose. |
| 2834 | | 2833 | |
| 2835 | | 2834 | |
| @@ -3191,7 +3190,7 @@ without shifting any element · 355 unmodified lines |
| 3191 | | 3190 | |
| 3192 | | 3191 | |
| 3193 | <hr><h3><a name="lua_createtable"><code>lua_createtable</code></a></h3><p> | 3192 | <hr><h3><a name="lua_createtable"><code>lua_createtable</code></a></h3><p> |
| 3194 | <span class="apii">[-0, +1, <em>m</em>]</span> | 3193 | <span class="apii">[-0, +1, <em>e</em>]</span> |
| 3195 | <pre>void lua_createtable (lua_State *L, int narr, int nrec);</pre> | 3194 | <pre>void lua_createtable (lua_State *L, int narr, int nrec);</pre> |
| 3196 | | 3195 | |
| 3197 | <p> | 3196 | <p> |
| @@ -3210,7 +3209,7 @@ Otherwise you can use the function <a href="#lua_newtable"><code>lua_newtable</c · 12 unmodified lines |
| 3210 | | 3209 | |
| 3211 | | 3210 | |
| 3212 | <hr><h3><a name="lua_dump"><code>lua_dump</code></a></h3><p> | 3211 | <hr><h3><a name="lua_dump"><code>lua_dump</code></a></h3><p> |
| 3213 | <span class="apii">[-0, +0, <em>m</em>]</span> | 3212 | <span class="apii">[-0, +0, <em>e</em>]</span> |
| 3214 | <pre>int lua_dump (lua_State *L, lua_Writer writer, void *data);</pre> | 3213 | <pre>int lua_dump (lua_State *L, lua_Writer writer, void *data);</pre> |
| 3215 | | 3214 | |
| 3216 | <p> | 3215 | <p> |
| @@ -3748,7 +3747,7 @@ passes to the allocator in every call. · 531 unmodified lines |
| 3748 | | 3747 | |
| 3749 | | 3748 | |
| 3750 | <hr><h3><a name="lua_newtable"><code>lua_newtable</code></a></h3><p> | 3749 | <hr><h3><a name="lua_newtable"><code>lua_newtable</code></a></h3><p> |
| 3751 | <span class="apii">[-0, +1, <em>m</em>]</span> | 3750 | <span class="apii">[-0, +1, <em>e</em>]</span> |
| 3752 | <pre>void lua_newtable (lua_State *L);</pre> | 3751 | <pre>void lua_newtable (lua_State *L);</pre> |
| 3753 | | 3752 | |
| 3754 | <p> | 3753 | <p> |
| @@ -3760,7 +3759,7 @@ It is equivalent to <code>lua_createtable(L, 0, 0)</code>. · 5 unmodified lines |
| 3760 | | 3759 | |
| 3761 | | 3760 | |
| 3762 | <hr><h3><a name="lua_newthread"><code>lua_newthread</code></a></h3><p> | 3761 | <hr><h3><a name="lua_newthread"><code>lua_newthread</code></a></h3><p> |
| 3763 | <span class="apii">[-0, +1, <em>m</em>]</span> | 3762 | <span class="apii">[-0, +1, <em>e</em>]</span> |
| 3764 | <pre>lua_State *lua_newthread (lua_State *L);</pre> | 3763 | <pre>lua_State *lua_newthread (lua_State *L);</pre> |
| 3765 | | 3764 | |
| 3766 | <p> | 3765 | <p> |
| @@ -3781,7 +3780,7 @@ like any Lua object. · 14 unmodified lines |
| 3781 | | 3780 | |
| 3782 | | 3781 | |
| 3783 | <hr><h3><a name="lua_newuserdata"><code>lua_newuserdata</code></a></h3><p> | 3782 | <hr><h3><a name="lua_newuserdata"><code>lua_newuserdata</code></a></h3><p> |
| 3784 | <span class="apii">[-0, +1, <em>m</em>]</span> | 3783 | <span class="apii">[-0, +1, <em>e</em>]</span> |
| 3785 | <pre>void *lua_newuserdata (lua_State *L, size_t size);</pre> | 3784 | <pre>void *lua_newuserdata (lua_State *L, size_t size);</pre> |
| 3786 | | 3785 | |
| 3787 | <p> | 3786 | <p> |
| @@ -3967,7 +3966,7 @@ Pushes a boolean value with value <code>b</code> onto the stack. · 179 unmodified lines |
| 3967 | | 3966 | |
| 3968 | | 3967 | |
| 3969 | <hr><h3><a name="lua_pushcclosure"><code>lua_pushcclosure</code></a></h3><p> | 3968 | <hr><h3><a name="lua_pushcclosure"><code>lua_pushcclosure</code></a></h3><p> |
| 3970 | <span class="apii">[-n, +1, <em>m</em>]</span> | 3969 | <span class="apii">[-n, +1, <em>e</em>]</span> |
| 3971 | <pre>void lua_pushcclosure (lua_State *L, lua_CFunction fn, int n);</pre> | 3970 | <pre>void lua_pushcclosure (lua_State *L, lua_CFunction fn, int n);</pre> |
| 3972 | | 3971 | |
| 3973 | <p> | 3972 | <p> |
| @@ -4033,7 +4032,7 @@ Note that <code>f</code> is used twice. · 59 unmodified lines |
| 4033 | | 4032 | |
| 4034 | | 4033 | |
| 4035 | <hr><h3><a name="lua_pushfstring"><code>lua_pushfstring</code></a></h3><p> | 4034 | <hr><h3><a name="lua_pushfstring"><code>lua_pushfstring</code></a></h3><p> |
| 4036 | <span class="apii">[-0, +1, <em>m</em>]</span> | 4035 | <span class="apii">[-0, +1, <em>e</em>]</span> |
| 4037 | <pre>const char *lua_pushfstring (lua_State *L, const char *fmt, ...);</pre> | 4036 | <pre>const char *lua_pushfstring (lua_State *L, const char *fmt, ...);</pre> |
| 4038 | | 4037 | |
| 4039 | <p> | 4038 | <p> |
| @@ -4100,7 +4099,7 @@ light userdata with the same C address. · 60 unmodified lines |
| 4100 | | 4099 | |
| 4101 | | 4100 | |
| 4102 | <hr><h3><a name="lua_pushliteral"><code>lua_pushliteral</code></a></h3><p> | 4101 | <hr><h3><a name="lua_pushliteral"><code>lua_pushliteral</code></a></h3><p> |
| 4103 | <span class="apii">[-0, +1, <em>m</em>]</span> | 4102 | <span class="apii">[-0, +1, <em>e</em>]</span> |
| 4104 | <pre>const char *lua_pushliteral (lua_State *L, const char *s);</pre> | 4103 | <pre>const char *lua_pushliteral (lua_State *L, const char *s);</pre> |
| 4105 | | 4104 | |
| 4106 | <p> | 4105 | <p> |
| @@ -4113,7 +4112,7 @@ It automatically provides the string length. · 6 unmodified lines |
| 4113 | | 4112 | |
| 4114 | | 4113 | |
| 4115 | <hr><h3><a name="lua_pushlstring"><code>lua_pushlstring</code></a></h3><p> | 4114 | <hr><h3><a name="lua_pushlstring"><code>lua_pushlstring</code></a></h3><p> |
| 4116 | <span class="apii">[-0, +1, <em>m</em>]</span> | 4115 | <span class="apii">[-0, +1, <em>e</em>]</span> |
| 4117 | <pre>const char *lua_pushlstring (lua_State *L, const char *s, size_t len);</pre> | 4116 | <pre>const char *lua_pushlstring (lua_State *L, const char *s, size_t len);</pre> |
| 4118 | | 4117 | |
| 4119 | <p> | 4118 | <p> |
| @@ -4156,7 +4155,7 @@ Pushes a number with value <code>n</code> onto the stack. · 36 unmodified lines |
| 4156 | | 4155 | |
| 4157 | | 4156 | |
| 4158 | <hr><h3><a name="lua_pushstring"><code>lua_pushstring</code></a></h3><p> | 4157 | <hr><h3><a name="lua_pushstring"><code>lua_pushstring</code></a></h3><p> |
| 4159 | <span class="apii">[-0, +1, <em>m</em>]</span> | 4158 | <span class="apii">[-0, +1, <em>e</em>]</span> |
| 4160 | <pre>const char *lua_pushstring (lua_State *L, const char *s);</pre> | 4159 | <pre>const char *lua_pushstring (lua_State *L, const char *s);</pre> |
| 4161 | | 4160 | |
| 4162 | <p> | 4161 | <p> |
| @@ -4203,7 +4202,7 @@ onto the stack. · 40 unmodified lines |
| 4203 | | 4202 | |
| 4204 | | 4203 | |
| 4205 | <hr><h3><a name="lua_pushvfstring"><code>lua_pushvfstring</code></a></h3><p> | 4204 | <hr><h3><a name="lua_pushvfstring"><code>lua_pushvfstring</code></a></h3><p> |
| 4206 | <span class="apii">[-0, +1, <em>m</em>]</span> | 4205 | <span class="apii">[-0, +1, <em>e</em>]</span> |
| 4207 | <pre>const char *lua_pushvfstring (lua_State *L, | 4206 | <pre>const char *lua_pushvfstring (lua_State *L, |
| 4208 | const char *fmt, | 4207 | const char *fmt, |
| 4209 | va_list argp);</pre> | 4208 | va_list argp);</pre> |
| @@ -4290,7 +4289,7 @@ for other values, it is 0. · 80 unmodified lines |
| 4290 | | 4289 | |
| 4291 | | 4290 | |
| 4292 | <hr><h3><a name="lua_rawset"><code>lua_rawset</code></a></h3><p> | 4291 | <hr><h3><a name="lua_rawset"><code>lua_rawset</code></a></h3><p> |
| 4293 | <span class="apii">[-2, +0, <em>m</em>]</span> | 4292 | <span class="apii">[-2, +0, <em>e</em>]</span> |
| 4294 | <pre>void lua_rawset (lua_State *L, int index);</pre> | 4293 | <pre>void lua_rawset (lua_State *L, int index);</pre> |
| 4295 | | 4294 | |
| 4296 | <p> | 4295 | <p> |
| @@ -4302,7 +4301,7 @@ Similar to <a href="#lua_settable"><code>lua_settable</code></a>, but does a raw · 5 unmodified lines |
| 4302 | | 4301 | |
| 4303 | | 4302 | |
| 4304 | <hr><h3><a name="lua_rawseti"><code>lua_rawseti</code></a></h3><p> | 4303 | <hr><h3><a name="lua_rawseti"><code>lua_rawseti</code></a></h3><p> |
| 4305 | <span class="apii">[-1, +0, <em>m</em>]</span> | 4304 | <span class="apii">[-1, +0, <em>e</em>]</span> |
| 4306 | <pre>void lua_rawseti (lua_State *L, int index, int n);</pre> | 4305 | <pre>void lua_rawseti (lua_State *L, int index, int n);</pre> |
| 4307 | | 4306 | |
| 4308 | <p> | 4307 | <p> |
| @@ -4321,7 +4320,7 @@ that is, it does not invoke metamethods. · 12 unmodified lines |
| 4321 | | 4320 | |
| 4322 | | 4321 | |
| 4323 | <hr><h3><a name="lua_rawsetp"><code>lua_rawsetp</code></a></h3><p> | 4322 | <hr><h3><a name="lua_rawsetp"><code>lua_rawsetp</code></a></h3><p> |
| 4324 | <span class="apii">[-1, +0, <em>m</em>]</span> | 4323 | <span class="apii">[-1, +0, <em>e</em>]</span> |
| 4325 | <pre>void lua_rawsetp (lua_State *L, int index, const void *p);</pre> | 4324 | <pre>void lua_rawsetp (lua_State *L, int index, const void *p);</pre> |
| 4326 | | 4325 | |
| 4327 | <p> | 4326 | <p> |
| @@ -4669,7 +4668,7 @@ indicates whether the operation succeeded. · 341 unmodified lines |
| 4669 | | 4668 | |
| 4670 | | 4669 | |
| 4671 | <hr><h3><a name="lua_tolstring"><code>lua_tolstring</code></a></h3><p> | 4670 | <hr><h3><a name="lua_tolstring"><code>lua_tolstring</code></a></h3><p> |
| 4672 | <span class="apii">[-0, +0, <em>m</em>]</span> | 4671 | <span class="apii">[-0, +0, <em>e</em>]</span> |
| 4673 | <pre>const char *lua_tolstring (lua_State *L, int index, size_t *len);</pre> | 4672 | <pre>const char *lua_tolstring (lua_State *L, int index, size_t *len);</pre> |
| 4674 | | 4673 | |
| 4675 | <p> | 4674 | <p> |
| @@ -4752,7 +4751,7 @@ Typically this function is used only for debug information. · 76 unmodified lines |
| 4752 | | 4751 | |
| 4753 | | 4752 | |
| 4754 | <hr><h3><a name="lua_tostring"><code>lua_tostring</code></a></h3><p> | 4753 | <hr><h3><a name="lua_tostring"><code>lua_tostring</code></a></h3><p> |
| 4755 | <span class="apii">[-0, +0, <em>m</em>]</span> | 4754 | <span class="apii">[-0, +0, <em>e</em>]</span> |
| 4756 | <pre>const char *lua_tostring (lua_State *L, int index);</pre> | 4755 | <pre>const char *lua_tostring (lua_State *L, int index);</pre> |
| 4757 | | 4756 | |
| 4758 | <p> | 4757 | <p> |
| @@ -5154,7 +5153,7 @@ Returns the current hook mask. · 395 unmodified lines |
| 5154 | | 5153 | |
| 5155 | | 5154 | |
| 5156 | <hr><h3><a name="lua_getinfo"><code>lua_getinfo</code></a></h3><p> | 5155 | <hr><h3><a name="lua_getinfo"><code>lua_getinfo</code></a></h3><p> |
| 5157 | <span class="apii">[-(0|1), +(0|1|2), <em>m</em>]</span> | 5156 | <span class="apii">[-(0|1), +(0|1|2), <em>e</em>]</span> |
| 5158 | <pre>int lua_getinfo (lua_State *L, const char *what, lua_Debug *ar);</pre> | 5157 | <pre>int lua_getinfo (lua_State *L, const char *what, lua_Debug *ar);</pre> |
| 5159 | | 5158 | |
| 5160 | <p> | 5159 | <p> |
| @@ -5553,7 +5552,7 @@ in alphabetical order. · 392 unmodified lines |
| 5553 | | 5552 | |
| 5554 | | 5553 | |
| 5555 | <hr><h3><a name="luaL_addchar"><code>luaL_addchar</code></a></h3><p> | 5554 | <hr><h3><a name="luaL_addchar"><code>luaL_addchar</code></a></h3><p> |
| 5556 | <span class="apii">[-?, +?, <em>m</em>]</span> | 5555 | <span class="apii">[-?, +?, <em>e</em>]</span> |
| 5557 | <pre>void luaL_addchar (luaL_Buffer *B, char c);</pre> | 5556 | <pre>void luaL_addchar (luaL_Buffer *B, char c);</pre> |
| 5558 | | 5557 | |
| 5559 | <p> | 5558 | <p> |
| @@ -5565,7 +5564,7 @@ Adds the byte <code>c</code> to the buffer <code>B</code> · 5 unmodified lines |
| 5565 | | 5564 | |
| 5566 | | 5565 | |
| 5567 | <hr><h3><a name="luaL_addlstring"><code>luaL_addlstring</code></a></h3><p> | 5566 | <hr><h3><a name="luaL_addlstring"><code>luaL_addlstring</code></a></h3><p> |
| 5568 | <span class="apii">[-?, +?, <em>m</em>]</span> | 5567 | <span class="apii">[-?, +?, <em>e</em>]</span> |
| 5569 | <pre>void luaL_addlstring (luaL_Buffer *B, const char *s, size_t l);</pre> | 5568 | <pre>void luaL_addlstring (luaL_Buffer *B, const char *s, size_t l);</pre> |
| 5570 | | 5569 | |
| 5571 | <p> | 5570 | <p> |
| @@ -5579,7 +5578,7 @@ The string can contain embedded zeros. · 7 unmodified lines |
| 5579 | | 5578 | |
| 5580 | | 5579 | |
| 5581 | <hr><h3><a name="luaL_addsize"><code>luaL_addsize</code></a></h3><p> | 5580 | <hr><h3><a name="luaL_addsize"><code>luaL_addsize</code></a></h3><p> |
| 5582 | <span class="apii">[-?, +?, <em>m</em>]</span> | 5581 | <span class="apii">[-?, +?, <em>e</em>]</span> |
| 5583 | <pre>void luaL_addsize (luaL_Buffer *B, size_t n);</pre> | 5582 | <pre>void luaL_addsize (luaL_Buffer *B, size_t n);</pre> |
| 5584 | | 5583 | |
| 5585 | <p> | 5584 | <p> |
| @@ -5592,7 +5591,7 @@ buffer area (see <a href="#luaL_prepbuffer"><code>luaL_prepbuffer</code></a>). · 6 unmodified lines |
| 5592 | | 5591 | |
| 5593 | | 5592 | |
| 5594 | <hr><h3><a name="luaL_addstring"><code>luaL_addstring</code></a></h3><p> | 5593 | <hr><h3><a name="luaL_addstring"><code>luaL_addstring</code></a></h3><p> |
| 5595 | <span class="apii">[-?, +?, <em>m</em>]</span> | 5594 | <span class="apii">[-?, +?, <em>e</em>]</span> |
| 5596 | <pre>void luaL_addstring (luaL_Buffer *B, const char *s);</pre> | 5595 | <pre>void luaL_addstring (luaL_Buffer *B, const char *s);</pre> |
| 5597 | | 5596 | |
| 5598 | <p> | 5597 | <p> |
| @@ -5606,7 +5605,7 @@ The string cannot contain embedded zeros. · 7 unmodified lines |
| 5606 | | 5605 | |
| 5607 | | 5606 | |
| 5608 | <hr><h3><a name="luaL_addvalue"><code>luaL_addvalue</code></a></h3><p> | 5607 | <hr><h3><a name="luaL_addvalue"><code>luaL_addvalue</code></a></h3><p> |
| 5609 | <span class="apii">[-1, +?, <em>m</em>]</span> | 5608 | <span class="apii">[-1, +?, <em>e</em>]</span> |
| 5610 | <pre>void luaL_addvalue (luaL_Buffer *B);</pre> | 5609 | <pre>void luaL_addvalue (luaL_Buffer *B);</pre> |
| 5611 | | 5610 | |
| 5612 | <p> | 5611 | <p> |
| @@ -5743,7 +5742,7 @@ the buffer must be declared as a variable · 130 unmodified lines |
| 5743 | | 5742 | |
| 5744 | | 5743 | |
| 5745 | <hr><h3><a name="luaL_buffinitsize"><code>luaL_buffinitsize</code></a></h3><p> | 5744 | <hr><h3><a name="luaL_buffinitsize"><code>luaL_buffinitsize</code></a></h3><p> |
| 5746 | <span class="apii">[-?, +?, <em>m</em>]</span> | 5745 | <span class="apii">[-?, +?, <em>e</em>]</span> |
| 5747 | <pre>char *luaL_buffinitsize (lua_State *L, luaL_Buffer *B, size_t sz);</pre> | 5746 | <pre>char *luaL_buffinitsize (lua_State *L, luaL_Buffer *B, size_t sz);</pre> |
| 5748 | | 5747 | |
| 5749 | <p> | 5748 | <p> |
| @@ -5970,7 +5969,7 @@ are using the same address space. · 220 unmodified lines |
| 5970 | | 5969 | |
| 5971 | | 5970 | |
| 5972 | <hr><h3><a name="luaL_dofile"><code>luaL_dofile</code></a></h3><p> | 5971 | <hr><h3><a name="luaL_dofile"><code>luaL_dofile</code></a></h3><p> |
| 5973 | <span class="apii">[-0, +?, <em>m</em>]</span> | 5972 | <span class="apii">[-0, +?, <em>e</em>]</span> |
| 5974 | <pre>int luaL_dofile (lua_State *L, const char *filename);</pre> | 5973 | <pre>int luaL_dofile (lua_State *L, const char *filename);</pre> |
| 5975 | | 5974 | |
| 5976 | <p> | 5975 | <p> |
| @@ -6029,7 +6028,7 @@ as <code>return luaL_error(<em>args</em>)</code>. · 52 unmodified lines |
| 6029 | | 6028 | |
| 6030 | | 6029 | |
| 6031 | <hr><h3><a name="luaL_execresult"><code>luaL_execresult</code></a></h3><p> | 6030 | <hr><h3><a name="luaL_execresult"><code>luaL_execresult</code></a></h3><p> |
| 6032 | <span class="apii">[-0, +3, <em>m</em>]</span> | 6031 | <span class="apii">[-0, +3, <em>e</em>]</span> |
| 6033 | <pre>int luaL_execresult (lua_State *L, int stat);</pre> | 6032 | <pre>int luaL_execresult (lua_State *L, int stat);</pre> |
| 6034 | | 6033 | |
| 6035 | <p> | 6034 | <p> |
| @@ -6042,7 +6041,7 @@ process-related functions in the standard library · 6 unmodified lines |
| 6042 | | 6041 | |
| 6043 | | 6042 | |
| 6044 | <hr><h3><a name="luaL_fileresult"><code>luaL_fileresult</code></a></h3><p> | 6043 | <hr><h3><a name="luaL_fileresult"><code>luaL_fileresult</code></a></h3><p> |
| 6045 | <span class="apii">[-0, +(1|3), <em>m</em>]</span> | 6044 | <span class="apii">[-0, +(1|3), <em>e</em>]</span> |
| 6046 | <pre>int luaL_fileresult (lua_State *L, int stat, const char *fname);</pre> | 6045 | <pre>int luaL_fileresult (lua_State *L, int stat, const char *fname);</pre> |
| 6047 | | 6046 | |
| 6048 | <p> | 6047 | <p> |
| @@ -6055,7 +6054,7 @@ file-related functions in the standard library · 6 unmodified lines |
| 6055 | | 6054 | |
| 6056 | | 6055 | |
| 6057 | <hr><h3><a name="luaL_getmetafield"><code>luaL_getmetafield</code></a></h3><p> | 6056 | <hr><h3><a name="luaL_getmetafield"><code>luaL_getmetafield</code></a></h3><p> |
| 6058 | <span class="apii">[-0, +(0|1), <em>m</em>]</span> | 6057 | <span class="apii">[-0, +(0|1), <em>e</em>]</span> |
| 6059 | <pre>int luaL_getmetafield (lua_State *L, int obj, const char *e);</pre> | 6058 | <pre>int luaL_getmetafield (lua_State *L, int obj, const char *e);</pre> |
| 6060 | | 6059 | |
| 6061 | <p> | 6060 | <p> |
| @@ -6082,7 +6081,7 @@ in the registry (see <a href="#luaL_newmetatable"><code>luaL_newmetatable</code> · 20 unmodified lines |
| 6082 | | 6081 | |
| 6083 | | 6082 | |
| 6084 | <hr><h3><a name="luaL_getsubtable"><code>luaL_getsubtable</code></a></h3><p> | 6083 | <hr><h3><a name="luaL_getsubtable"><code>luaL_getsubtable</code></a></h3><p> |
| 6085 | <span class="apii">[-0, +1, <em>m</em>]</span> | 6084 | <span class="apii">[-0, +1, <em>e</em>]</span> |
| 6086 | <pre>int luaL_getsubtable (lua_State *L, int idx, const char *fname);</pre> | 6085 | <pre>int luaL_getsubtable (lua_State *L, int idx, const char *fname);</pre> |
| 6087 | | 6086 | |
| 6088 | <p> | 6087 | <p> |
| @@ -6098,7 +6097,7 @@ and false if it creates a new table. · 9 unmodified lines |
| 6098 | | 6097 | |
| 6099 | | 6098 | |
| 6100 | <hr><h3><a name="luaL_gsub"><code>luaL_gsub</code></a></h3><p> | 6099 | <hr><h3><a name="luaL_gsub"><code>luaL_gsub</code></a></h3><p> |
| 6101 | <span class="apii">[-0, +1, <em>m</em>]</span> | 6100 | <span class="apii">[-0, +1, <em>e</em>]</span> |
| 6102 | <pre>const char *luaL_gsub (lua_State *L, | 6101 | <pre>const char *luaL_gsub (lua_State *L, |
| 6103 | const char *s, | 6102 | const char *s, |
| 6104 | const char *p, | 6103 | const char *p, |
| @@ -6168,7 +6167,7 @@ The string <code>mode</code> works as in function <a href="#lua_load"><code>lua_ · 63 unmodified lines |
| 6168 | | 6167 | |
| 6169 | | 6168 | |
| 6170 | <hr><h3><a name="luaL_loadfile"><code>luaL_loadfile</code></a></h3><p> | 6169 | <hr><h3><a name="luaL_loadfile"><code>luaL_loadfile</code></a></h3><p> |
| 6171 | <span class="apii">[-0, +1, <em>m</em>]</span> | 6170 | <span class="apii">[-0, +1, <em>e</em>]</span> |
| 6172 | <pre>int luaL_loadfile (lua_State *L, const char *filename);</pre> | 6171 | <pre>int luaL_loadfile (lua_State *L, const char *filename);</pre> |
| 6173 | | 6172 | |
| 6174 | <p> | 6173 | <p> |
| @@ -6179,7 +6178,7 @@ Equivalent to <a href="#luaL_loadfilex"><code>luaL_loadfilex</code></a> with <co · 4 unmodified lines |
| 6179 | | 6178 | |
| 6180 | | 6179 | |
| 6181 | <hr><h3><a name="luaL_loadfilex"><code>luaL_loadfilex</code></a></h3><p> | 6180 | <hr><h3><a name="luaL_loadfilex"><code>luaL_loadfilex</code></a></h3><p> |
| 6182 | <span class="apii">[-0, +1, <em>m</em>]</span> | 6181 | <span class="apii">[-0, +1, <em>e</em>]</span> |
| 6183 | <pre>int luaL_loadfilex (lua_State *L, const char *filename, | 6182 | <pre>int luaL_loadfilex (lua_State *L, const char *filename, |
| 6184 | const char *mode);</pre> | 6183 | const char *mode);</pre> |
| 6185 | | 6184 | |
| @@ -6233,7 +6232,7 @@ it does not run it. · 47 unmodified lines |
| 6233 | | 6232 | |
| 6234 | | 6233 | |
| 6235 | <hr><h3><a name="luaL_newlib"><code>luaL_newlib</code></a></h3><p> | 6234 | <hr><h3><a name="luaL_newlib"><code>luaL_newlib</code></a></h3><p> |
| 6236 | <span class="apii">[-0, +1, <em>m</em>]</span> | 6235 | <span class="apii">[-0, +1, <em>e</em>]</span> |
| 6237 | <pre>int luaL_newlib (lua_State *L, const luaL_Reg *l);</pre> | 6236 | <pre>int luaL_newlib (lua_State *L, const luaL_Reg *l);</pre> |
| 6238 | | 6237 | |
| 6239 | <p> | 6238 | <p> |
| @@ -6249,7 +6248,7 @@ It is implemented as the following macro: · 9 unmodified lines |
| 6249 | | 6248 | |
| 6250 | | 6249 | |
| 6251 | <hr><h3><a name="luaL_newlibtable"><code>luaL_newlibtable</code></a></h3><p> | 6250 | <hr><h3><a name="luaL_newlibtable"><code>luaL_newlibtable</code></a></h3><p> |
| 6252 | <span class="apii">[-0, +1, <em>m</em>]</span> | 6251 | <span class="apii">[-0, +1, <em>e</em>]</span> |
| 6253 | <pre>int luaL_newlibtable (lua_State *L, const luaL_Reg l[]);</pre> | 6252 | <pre>int luaL_newlibtable (lua_State *L, const luaL_Reg l[]);</pre> |
| 6254 | | 6253 | |
| 6255 | <p> | 6254 | <p> |
| @@ -6270,7 +6269,7 @@ not a pointer to it. · 14 unmodified lines |
| 6270 | | 6269 | |
| 6271 | | 6270 | |
| 6272 | <hr><h3><a name="luaL_newmetatable"><code>luaL_newmetatable</code></a></h3><p> | 6271 | <hr><h3><a name="luaL_newmetatable"><code>luaL_newmetatable</code></a></h3><p> |
| 6273 | <span class="apii">[-0, +1, <em>m</em>]</span> | 6272 | <span class="apii">[-0, +1, <em>e</em>]</span> |
| 6274 | <pre>int luaL_newmetatable (lua_State *L, const char *tname);</pre> | 6273 | <pre>int luaL_newmetatable (lua_State *L, const char *tname);</pre> |
| 6275 | | 6274 | |
| 6276 | <p> | 6275 | <p> |
| @@ -6442,7 +6441,7 @@ Otherwise, raises an error. · 165 unmodified lines |
| 6442 | | 6441 | |
| 6443 | | 6442 | |
| 6444 | <hr><h3><a name="luaL_prepbuffer"><code>luaL_prepbuffer</code></a></h3><p> | 6443 | <hr><h3><a name="luaL_prepbuffer"><code>luaL_prepbuffer</code></a></h3><p> |
| 6445 | <span class="apii">[-?, +?, <em>m</em>]</span> | 6444 | <span class="apii">[-?, +?, <em>e</em>]</span> |
| 6446 | <pre>char *luaL_prepbuffer (luaL_Buffer *B);</pre> | 6445 | <pre>char *luaL_prepbuffer (luaL_Buffer *B);</pre> |
| 6447 | | 6446 | |
| 6448 | <p> | 6447 | <p> |
| @@ -6454,7 +6453,7 @@ with the predefined size <a name="pdf-LUAL_BUFFERSIZE"><code>LUAL_BUFFERSIZE</co · 5 unmodified lines |
| 6454 | | 6453 | |
| 6455 | | 6454 | |
| 6456 | <hr><h3><a name="luaL_prepbuffsize"><code>luaL_prepbuffsize</code></a></h3><p> | 6455 | <hr><h3><a name="luaL_prepbuffsize"><code>luaL_prepbuffsize</code></a></h3><p> |
| 6457 | <span class="apii">[-?, +?, <em>m</em>]</span> | 6456 | <span class="apii">[-?, +?, <em>e</em>]</span> |
| 6458 | <pre>char *luaL_prepbuffsize (luaL_Buffer *B, size_t sz);</pre> | 6457 | <pre>char *luaL_prepbuffsize (luaL_Buffer *B, size_t sz);</pre> |
| 6459 | | 6458 | |
| 6460 | <p> | 6459 | <p> |
| @@ -6470,7 +6469,7 @@ it to the buffer. · 9 unmodified lines |
| 6470 | | 6469 | |
| 6471 | | 6470 | |
| 6472 | <hr><h3><a name="luaL_pushresult"><code>luaL_pushresult</code></a></h3><p> | 6471 | <hr><h3><a name="luaL_pushresult"><code>luaL_pushresult</code></a></h3><p> |
| 6473 | <span class="apii">[-?, +1, <em>m</em>]</span> | 6472 | <span class="apii">[-?, +1, <em>e</em>]</span> |
| 6474 | <pre>void luaL_pushresult (luaL_Buffer *B);</pre> | 6473 | <pre>void luaL_pushresult (luaL_Buffer *B);</pre> |
| 6475 | | 6474 | |
| 6476 | <p> | 6475 | <p> |
| @@ -6482,7 +6481,7 @@ the top of the stack. · 5 unmodified lines |
| 6482 | | 6481 | |
| 6483 | | 6482 | |
| 6484 | <hr><h3><a name="luaL_pushresultsize"><code>luaL_pushresultsize</code></a></h3><p> | 6483 | <hr><h3><a name="luaL_pushresultsize"><code>luaL_pushresultsize</code></a></h3><p> |
| 6485 | <span class="apii">[-?, +1, <em>m</em>]</span> | 6484 | <span class="apii">[-?, +1, <em>e</em>]</span> |
| 6486 | <pre>void luaL_pushresultsize (luaL_Buffer *B, size_t sz);</pre> | 6485 | <pre>void luaL_pushresultsize (luaL_Buffer *B, size_t sz);</pre> |
| 6487 | | 6486 | |
| 6488 | <p> | 6487 | <p> |
| @@ -6493,7 +6492,7 @@ Equivalent to the sequence <a href="#luaL_addsize"><code>luaL_addsize</code></a> · 4 unmodified lines |
| 6493 | | 6492 | |
| 6494 | | 6493 | |
| 6495 | <hr><h3><a name="luaL_ref"><code>luaL_ref</code></a></h3><p> | 6494 | <hr><h3><a name="luaL_ref"><code>luaL_ref</code></a></h3><p> |
| 6496 | <span class="apii">[-1, +0, <em>m</em>]</span> | 6495 | <span class="apii">[-1, +0, <em>e</em>]</span> |
| 6497 | <pre>int luaL_ref (lua_State *L, int t);</pre> | 6496 | <pre>int luaL_ref (lua_State *L, int t);</pre> |
| 6498 | | 6497 | |
| 6499 | <p> | 6498 | <p> |
| @@ -6597,7 +6596,7 @@ in the registry (see <a href="#luaL_newmetatable"><code>luaL_newmetatable</code> · 97 unmodified lines |
| 6597 | | 6596 | |
| 6598 | | 6597 | |
| 6599 | <hr><h3><a name="luaL_testudata"><code>luaL_testudata</code></a></h3><p> | 6598 | <hr><h3><a name="luaL_testudata"><code>luaL_testudata</code></a></h3><p> |
| 6600 | <span class="apii">[-0, +0, <em>m</em>]</span> | 6599 | <span class="apii">[-0, +0, <em>e</em>]</span> |
| 6601 | <pre>void *luaL_testudata (lua_State *L, int arg, const char *tname);</pre> | 6600 | <pre>void *luaL_testudata (lua_State *L, int arg, const char *tname);</pre> |
| 6602 | | 6601 | |
| 6603 | <p> | 6602 | <p> |
| @@ -6633,7 +6632,7 @@ and uses the result of the call as its result. · 29 unmodified lines |
| 6633 | | 6632 | |
| 6634 | | 6633 | |
| 6635 | <hr><h3><a name="luaL_traceback"><code>luaL_traceback</code></a></h3><p> | 6634 | <hr><h3><a name="luaL_traceback"><code>luaL_traceback</code></a></h3><p> |
| 6636 | <span class="apii">[-0, +1, <em>m</em>]</span> | 6635 | <span class="apii">[-0, +1, <em>e</em>]</span> |
| 6637 | <pre>void luaL_traceback (lua_State *L, lua_State *L1, const char *msg, | 6636 | <pre>void luaL_traceback (lua_State *L, lua_State *L1, const char *msg, |
| 6638 | int level);</pre> | 6637 | int level);</pre> |
| 6639 | | 6638 | |
| @@ -6680,7 +6679,7 @@ If <code>ref</code> is <a href="#pdf-LUA_NOREF"><code>LUA_NOREF</code></a> or <a · 40 unmodified lines |
| 6680 | | 6679 | |
| 6681 | | 6680 | |
| 6682 | <hr><h3><a name="luaL_where"><code>luaL_where</code></a></h3><p> | 6681 | <hr><h3><a name="luaL_where"><code>luaL_where</code></a></h3><p> |
| 6683 | <span class="apii">[-0, +1, <em>m</em>]</span> | 6682 | <span class="apii">[-0, +1, <em>e</em>]</span> |
| 6684 | <pre>void luaL_where (lua_State *L, int lvl);</pre> | 6683 | <pre>void luaL_where (lua_State *L, int lvl);</pre> |
| 6685 | | 6684 | |
| 6686 | <p> | 6685 | <p> |
| @@ -10407,7 +10406,7 @@ Here is the complete syntax of Lua in extended BNF. · 3720 unmodified lines |
| 10407 | <HR> | 10406 | <HR> |
| 10408 | <SMALL CLASS="footer"> | 10407 | <SMALL CLASS="footer"> |
| 10409 | Last update: | 10408 | Last update: |
| 10410 | Wed May 23 13:28:41 BRT 2012 | 10409 | Fri Jun 1 12:38:38 BRT 2012 |
| 10411 | </SMALL> | 10410 | </SMALL> |
| 10412 | <!-- | 10411 | <!-- |
| 10413 | Last change: revised for Lua 5.2.1 | 10412 | Last change: revised for Lua 5.2.1 |