Roberto Ierusalimschy
55a710545c
detail (extra byte in LUAI_EXTRASPACE to test proper alignment of
a lua_State)
10 years ago
Roberto Ierusalimschy
753f2c1da4
better(?) alignment for some structures (pointers first)
10 years ago
Roberto Ierusalimschy
b3b8580606
comments + proper undef of compatibility macros + no need to undef
internal macros (this is the first definition)
10 years ago
Roberto Ierusalimschy
73ad16b5c6
no need for type 'pCallInfo'
10 years ago
Roberto Ierusalimschy
97e299c395
'lua_replace' implemented as a macro using 'lua_copy'
10 years ago
Roberto Ierusalimschy
c697aa30bc
more precise type for argument to 'aux_upvalue'
10 years ago
Roberto Ierusalimschy
17ee57f8e0
'iswhite' and related macros now can work directly on any object
(no need to convert to 'GCObject')
10 years ago
Roberto Ierusalimschy
3c6d0aaa7d
'iswhite' and related macros now can work directly on any object
(no need to convert to 'GCObject')
10 years ago
Roberto Ierusalimschy
e43612aaf6
put the restriction that 'luaC_barrierback' works only on tables
in its prototype
10 years ago
Roberto Ierusalimschy
2898e2fd12
removed useless assertion (gcstate != GCSpause already implied by
other assertions) and wrong assertion (setmetatable uses this barrier
for tables too)
10 years ago
Roberto Ierusalimschy
8704fca0c9
in 'luaL_checkversion_' check numeric types first. (Other tests
depend on correct numeric type.)
10 years ago
Roberto Ierusalimschy
325e44d87e
no more "-2" for limits. (Limits should be precise; safety is in
the code that handles these limits.)
10 years ago
Roberto Ierusalimschy
54ac253343
detail (no need to define LUAI_USER_ALIGNMENT_T when it is not
defined; simpler to define 'L_Umaxalign' directly)
10 years ago
Roberto Ierusalimschy
bb12903120
type 'Udata' refers directly to structure inside the union (union
used only for aligning purposes now)
10 years ago
Roberto Ierusalimschy
ca41b43f53
type 'TString' refers directly to the structure inside the union
(union used only for size purposes)
10 years ago
Roberto Ierusalimschy
3511e186cd
ensure size for LUAI_USER_ALIGNMENT_T in tests is larger than the
structures it is aligning (in most architectures)
10 years ago
Roberto Ierusalimschy
56137d58ff
added check for conversion 'obj2gco' (and corrections for small
problems detected by this check)
10 years ago
Roberto Ierusalimschy
9aec500a26
no need for field 'gch' anymore
10 years ago
Roberto Ierusalimschy
5a9cc57a5e
change in GCObject: instead of being a union, it is now a structure
with the common header of all collectable objects; union is used
only for conversions. (Goal is to be able to check that the cast
'obj2gco' can have a check to ensure that object being converted
is really a collectable object.). This is the first step in the
change.
10 years ago
Roberto Ierusalimschy
1aa4f69b51
new type 'lua_Ctx' for continuation-function contexts (to allow type
to be configurable)
10 years ago
Roberto Ierusalimschy
8bb272a3e3
new conversion float->integer: conversion is valid only when
float has an exact representation as an integer
10 years ago
Roberto Ierusalimschy
c229ed597f
'requiref' checks 'package.loaded' before loading a module
10 years ago
Roberto Ierusalimschy
16b4110521
function 'type' keeps type names as upvalues to avoid creating strings
everytime it is called
10 years ago
Roberto Ierusalimschy
f14662fca6
detail (added placeholders for non-function fields to preallocate
space for them)
10 years ago
Roberto Ierusalimschy
a9af12bbe7
Table library now respects '__index'/'__newindex' metamethods
10 years ago
Roberto Ierusalimschy
5bbb4a06a6
removed unused parameter Ä'L' in macro 'api_check' and company
10 years ago
Roberto Ierusalimschy
d4fb848be7
added api check in 'lua_typename' (tag is valid)
10 years ago
Roberto Ierusalimschy
b9dcf9974d
detail (typos in comments)
11 years ago
Roberto Ierusalimschy
a77d263e86
unsigned-manipulation functions (lua_puhsunsigned, lua_tounsigned, etc.)
deprecated
11 years ago
Roberto Ierusalimschy
7cc40851e1
emergency collection can happen even when collector is stopped
11 years ago
Roberto Ierusalimschy
08a9c9faa3
detail (comment)
11 years ago
Roberto Ierusalimschy
84fe52dbeb
unsigned-manipulation functions (lua_puhsunsigned, lua_tounsigned, etc.)
deprecated
11 years ago
Roberto Ierusalimschy
10200585a7
var-arguments to the script come from 'arg' table (not from original
'argv' array)
11 years ago
Roberto Ierusalimschy
c94f11d783
'IntPoint' -> 'point2int' + ensure that casted value fits in
destination type
11 years ago
Roberto Ierusalimschy
54ac5960a8
LUA_MAXUNSIGNED was only used to define 2.0^intnumbits (and that
definition was not strictly portable), so it was removed and
replaced by a more correct and direct definition for 2.0^intnumbits
(only where it was needed)
11 years ago
Roberto Ierusalimschy
0e6229a953
use proper macros to convert 'GCObject' to other objects + better
type cheking in 'set*value' macros
11 years ago
Roberto Ierusalimschy
d2ab1aef31
detail (avoid too large macro)
11 years ago
Roberto Ierusalimschy
89b56e7d84
more precision between closure types ('LClosure' x 'CClosure')
11 years ago
Roberto Ierusalimschy
14929f5764
use appropriate macros to convert GCObject to specific types
11 years ago
Roberto Ierusalimschy
7021cc9bc8
allows different 'source' for each prototype, but inherits it from
parent when they are equal (only possible case for chunks created
by the parser)
11 years ago
Roberto Ierusalimschy
04da0a40c0
added assertion about sources being the same for all protos in a chunk
11 years ago
Roberto Ierusalimschy
eb67828236
changed macro for compatibility options + details
11 years ago
Roberto Ierusalimschy
94266dfdbd
source for all prototypes must be equal in a chunk; no need to store
each one separated
11 years ago
Roberto Ierusalimschy
e3871abe95
'math.ifloor' is back
11 years ago
Roberto Ierusalimschy
3fc25ff15b
macro 'checkobjref' accepts NULL (as all its uses checked for NULL
before) + user value from a userdata may not be a GC object
11 years ago
Roberto Ierusalimschy
fa3113ffbf
cleaner way to handle bit CIST_OAH (with auxiliar macros)
11 years ago
Roberto Ierusalimschy
d94bb6c273
janitor work on 'lua_resume' and related code
11 years ago
Roberto Ierusalimschy
5784331768
new items in default path for Windows
11 years ago
Roberto Ierusalimschy
88a9e51f34
bit-field CIST_YIELDED removed (it was never consulted)
11 years ago
Roberto Ierusalimschy
8b5940e7ca
must also reset CIST_OAH if necessary (CallInfo is not a fresh one)
11 years ago