05d89b5c05
new option for function "random": random(a,b) returns a<=x<=b
Roberto Ierusalimschy
1998-12-30 15:22:17 -02:00
fe5c41fb8a
new functions "tinsert" and "tremove"
Roberto Ierusalimschy
1998-12-30 11:16:50 -02:00
9a45543841
tables are better manipulated via "Hash *" instead of "TObject" or "lua_Object".
Roberto Ierusalimschy
1998-12-30 11:14:46 -02:00
766e67ef3b
to avoid warnings about "typecast" (Visual C++)
Roberto Ierusalimschy
1998-12-28 11:44:54 -02:00
4c94d8cc2c
new function "luaO_str2d" to convert strings to numbers, because old "lex" algorithm had aproximation errors, but strtod (and atof and scanf) are too slow.
Roberto Ierusalimschy
1998-12-27 18:25:20 -02:00
d2de2d5eda
format for double is always "%g", do not need #defines
Roberto Ierusalimschy
1998-12-27 18:23:22 -02:00
96a7695275
reorder and rename of most functions, for better documentation.
Roberto Ierusalimschy
1998-12-27 18:22:36 -02:00
63166c0ca0
new implementation of function "read", with predifined options.
Roberto Ierusalimschy
1998-12-27 18:21:28 -02:00
a881abfd1e
"strtod" is cleaner than "scanf" for this job.
Roberto Ierusalimschy
1998-12-24 12:57:23 -02:00
0c9080c7a9
"tonumber" goes crazy with negative numbers in other bases (not 10), because "strtol" returns long, not unsigned long.
Roberto Ierusalimschy
1998-12-18 11:26:43 -02:00
5ca2709ba0
small warnings
Roberto Ierusalimschy
1998-12-03 13:45:15 -02:00
bb1cb7b9f1
NUMBER_FMT also may be predefined in makefile
Roberto Ierusalimschy
1998-12-01 17:09:47 -02:00
c64f36ab2b
better behavior for "strsub" when indices are out-of-range
Roberto Ierusalimschy
1998-12-01 16:41:25 -02:00
e4830ddce3
new option "mode" in "readfrom", "writeto" and "appendto" (for binary files).
Roberto Ierusalimschy
1998-11-20 13:41:43 -02:00
758e330d6e
new functions "getn" and "foreachi"
Roberto Ierusalimschy
1998-11-13 14:48:48 -02:00
8e3bd752bb
small optimization in "sort" + new functions "getn" and "foreachi"
Roberto Ierusalimschy
1998-11-13 14:39:18 -02:00
a84bca67fc
bug: gsub/strfind do not check whether captures are properly finished.
Roberto Ierusalimschy
1998-11-10 17:38:12 -02:00
4ccfb2f9bc
"_TRIGMODE" was still being declared.
Roberto Ierusalimschy
1998-09-08 16:25:35 -03:00
ce9609296c
function "luaL_argerror" prints wrong argument number (from a user's point of view) when functions have upvalues.
Roberto Ierusalimschy
1998-09-07 15:59:59 -03:00
b1450721be
new function "lua_nups" (number of upvalues).
Roberto Ierusalimschy
1998-09-07 15:59:59 -03:00
22c2704842
"lua_state" is already declared in lua.h, which is included here.
Roberto Ierusalimschy
1998-08-30 15:28:58 -03:00
ee22af5ced
new functions "seek" and "flush".
Roberto Ierusalimschy
1998-08-24 17:14:56 -03:00
cc117253c8
new implementation for error handling: on error, function _ERRORMESSAGE is called, which in turn calls _ALERT to write a message to stderr.
Roberto Ierusalimschy
1998-08-21 14:43:44 -03:00
8e226e6a09
small bug: nuse may change when table is rehashed; 3/2 is a good fraction for hash limit (instead of 0.7, using floats)
Roberto Ierusalimschy
1998-08-11 13:38:34 -03:00
1d420c2c11
better error message for code too long (old one was misleading when the problem was SETLINE after 64k lines...)
Roberto Ierusalimschy
1998-08-11 10:28:05 -03:00
5378331f2d
hash tables may shrink if use rate is too small.
Roberto Ierusalimschy
1998-08-10 18:36:32 -03:00
894a264671
new hash function.
Roberto Ierusalimschy
1998-07-27 14:06:17 -03:00