summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-07-05 11:31:45 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-07-05 11:31:45 -0300
commite82b41aac2c81b701a2a0aa33bb2ef4d5c12f0dc (patch)
tree296b47c6b720bb3830e2ac0f2f03ccbc2e34dad0
parentee1edd5734ba27b9927198a61de5f3f26094263a (diff)
downloadlua-e82b41aac2c81b701a2a0aa33bb2ef4d5c12f0dc.tar.gz
lua-e82b41aac2c81b701a2a0aa33bb2ef4d5c12f0dc.tar.bz2
lua-e82b41aac2c81b701a2a0aa33bb2ef4d5c12f0dc.zip
several small improvements
-rw-r--r--luaconf.h36
1 files changed, 26 insertions, 10 deletions
diff --git a/luaconf.h b/luaconf.h
index 9ba5931a..551c0401 100644
--- a/luaconf.h
+++ b/luaconf.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: luaconf.h,v 1.52 2005/06/01 17:07:45 roberto Exp roberto $ 2** $Id: luaconf.h,v 1.53 2005/06/13 21:20:28 roberto Exp roberto $
3** Configuration file for Lua 3** Configuration file for Lua
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -166,7 +166,7 @@
166/* 166/*
167@@ LUA_IDSIZE gives the maximum size for the description of the source 167@@ LUA_IDSIZE gives the maximum size for the description of the source
168@* of a function in debug information. 168@* of a function in debug information.
169** CHANGE it if you a different size. 169** CHANGE it if you want a different size.
170*/ 170*/
171#define LUA_IDSIZE 60 171#define LUA_IDSIZE 60
172 172
@@ -256,18 +256,20 @@
256/* 256/*
257@@ LUAI_GCPAUSE defines the default pause between garbage-collector cycles 257@@ LUAI_GCPAUSE defines the default pause between garbage-collector cycles
258@* as a percentage. 258@* as a percentage.
259** CHANGE it if you want the GC to run faster or slower (higher 259** CHANGE it if you want the GC to run faster or slower (higher values
260** values mean larger pauses which mean slower collection.) 260** mean larger pauses which mean slower collection.) You can also change
261** this value dynamically.
261*/ 262*/
262#define LUAI_GCPAUSE 200 /* 200% (wait memory to double before next GC) */ 263#define LUAI_GCPAUSE 200 /* 200% (wait memory to double before next GC) */
263 264
264 265
265/* 266/*
266@@ LUAI_GCMUL defines the speed of garbage collection relative to 267@@ LUAI_GCMUL defines the default speed of garbage collection relative to
267@* memory allocation as a percentage. 268@* memory allocation as a percentage.
268** CHANGE it if you want to change the granularity of the garbage 269** CHANGE it if you want to change the granularity of the garbage
269** collection. (Higher values mean coarser collections. 0 represents 270** collection. (Higher values mean coarser collections. 0 represents
270** infinity, where each step performs a full collection.) 271** infinity, where each step performs a full collection.) You can also
272** change this value dynamically.
271*/ 273*/
272#define LUAI_GCMUL 200 /* GC runs 'twice the speed' of memory allocation */ 274#define LUAI_GCMUL 200 /* GC runs 'twice the speed' of memory allocation */
273 275
@@ -295,15 +297,15 @@
295 297
296/* 298/*
297@@ LUA_COMPAT_VARARG controls compatibility with old vararg feature. 299@@ LUA_COMPAT_VARARG controls compatibility with old vararg feature.
298** CHANGE it to undefined as soon as your programs use '...' to access 300** CHANGE it to undefined as soon as your programs use only '...' to
299** vararg parameters (instead of the old 'arg' table). 301** access vararg parameters (instead of the old 'arg' table).
300*/ 302*/
301#define LUA_COMPAT_VARARG 303#define LUA_COMPAT_VARARG
302 304
303/* 305/*
304@@ LUA_COMPAT_MOD controls compatibility with old math.mod function. 306@@ LUA_COMPAT_MOD controls compatibility with old math.mod function.
305** CHANGE it to undefined as soon as your programs change its uses 307** CHANGE it to undefined as soon as your programs use 'math.fmod' or
306** of math.mod to math.fmod or to the new '%' operator. 308** the new '%' operator instead of 'math.mod'.
307*/ 309*/
308#define LUA_COMPAT_MOD 310#define LUA_COMPAT_MOD
309 311
@@ -316,6 +318,20 @@
316#define LUA_COMPAT_LSTR 1 318#define LUA_COMPAT_LSTR 1
317 319
318/* 320/*
321@@ LUA_COMPAT_FIND controls compatibility with old 'string.find' behavior.
322** CHANGE it to undefined as soon as your programs use 'string.find' only
323** to find patterns.
324*/
325/*#define LUA_COMPAT_FIND*/
326
327/*
328@@ LUA_COMPAT_GFIND controls compatibility with old 'string.gfind' name.
329** CHANGE it to undefined as soon as you rename 'string.gfind' to
330** 'string.gmatch'.
331*/
332#define LUA_COMPAT_GFIND
333
334/*
319@@ luai_apicheck is the assert macro used by the Lua-C API. 335@@ luai_apicheck is the assert macro used by the Lua-C API.
320** CHANGE luai_apicheck if you want Lua to perform some checks in the 336** CHANGE luai_apicheck if you want Lua to perform some checks in the
321** parameters it gets from API calls. This may slow down the interpreter 337** parameters it gets from API calls. This may slow down the interpreter