diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-05-16 18:19:00 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-05-16 18:19:00 -0300 |
commit | c2bb9abceceef125554595e23b7cc18ad3555c7c (patch) | |
tree | 2c00262ddf0e4f8acc1db83bdee4a56bb2458117 /luaconf.h | |
parent | da32450c3d4c8abd3fd6709692859a12a8886511 (diff) | |
download | lua-c2bb9abceceef125554595e23b7cc18ad3555c7c.tar.gz lua-c2bb9abceceef125554595e23b7cc18ad3555c7c.tar.bz2 lua-c2bb9abceceef125554595e23b7cc18ad3555c7c.zip |
better quotes for strings in error messages
Diffstat (limited to 'luaconf.h')
-rw-r--r-- | luaconf.h | 27 |
1 files changed, 16 insertions, 11 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: luaconf.h,v 1.46 2005/04/29 13:53:59 roberto Exp $ | 2 | ** $Id: luaconf.h,v 1.47 2005/05/03 19:30:17 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 | */ |
@@ -140,6 +140,11 @@ | |||
140 | #define lua_assert(c) ((void)0) | 140 | #define lua_assert(c) ((void)0) |
141 | 141 | ||
142 | 142 | ||
143 | /* | ||
144 | @@ LUA_SM describes how variable strings appear in error messages. | ||
145 | ** CHANGE it if you want a different appearance. | ||
146 | */ | ||
147 | #define LUA_SM "'%s'" | ||
143 | 148 | ||
144 | /* | 149 | /* |
145 | ** {================================================================== | 150 | ** {================================================================== |
@@ -151,7 +156,7 @@ | |||
151 | 156 | ||
152 | /* | 157 | /* |
153 | @@ lua_stdin_is_tty is a function to detect whether the standard input is | 158 | @@ lua_stdin_is_tty is a function to detect whether the standard input is |
154 | @* a `tty' (that is, is interactive). | 159 | @* a 'tty' (that is, is interactive). |
155 | ** CHANGE it if you have a better definition for non-POSIX/non-Windows | 160 | ** CHANGE it if you have a better definition for non-POSIX/non-Windows |
156 | ** systems. | 161 | ** systems. |
157 | */ | 162 | */ |
@@ -238,7 +243,7 @@ | |||
238 | ** collection. (Higher values mean coarser collections. 0 represents | 243 | ** collection. (Higher values mean coarser collections. 0 represents |
239 | ** infinity, where each step performs a full collection.) | 244 | ** infinity, where each step performs a full collection.) |
240 | */ | 245 | */ |
241 | #define LUAI_GCMUL 200 /* GC runs `twice the speed' of memory allocation */ | 246 | #define LUAI_GCMUL 200 /* GC runs 'twice the speed' of memory allocation */ |
242 | 247 | ||
243 | 248 | ||
244 | /* | 249 | /* |
@@ -250,22 +255,22 @@ | |||
250 | 255 | ||
251 | /* | 256 | /* |
252 | @@ LUA_COMPAT_PATH controls compatibility about LUA_PATH. | 257 | @@ LUA_COMPAT_PATH controls compatibility about LUA_PATH. |
253 | ** CHANGE it to 1 if you want `require' to look for global LUA_PATH | 258 | ** CHANGE it to 1 if you want 'require' to look for global LUA_PATH |
254 | ** before checking package.path. | 259 | ** before checking package.path. |
255 | */ | 260 | */ |
256 | #define LUA_COMPAT_PATH 0 | 261 | #define LUA_COMPAT_PATH 0 |
257 | 262 | ||
258 | /* | 263 | /* |
259 | @@ LUA_COMPAT_LOADLIB controls compatibility about global loadlib. | 264 | @@ LUA_COMPAT_LOADLIB controls compatibility about global loadlib. |
260 | ** CHANGE it to 1 if you want a global `loadlib' function (otherwise | 265 | ** CHANGE it to 1 if you want a global 'loadlib' function (otherwise |
261 | ** the function is only available as `package.loadlib'). | 266 | ** the function is only available as 'package.loadlib'). |
262 | */ | 267 | */ |
263 | #define LUA_COMPAT_LOADLIB 1 | 268 | #define LUA_COMPAT_LOADLIB 1 |
264 | 269 | ||
265 | /* | 270 | /* |
266 | @@ LUA_COMPAT_VARARG controls compatibility with old vararg feature. | 271 | @@ LUA_COMPAT_VARARG controls compatibility with old vararg feature. |
267 | ** CHANGE it to 1 if you want vararg functions that do not use `...' | 272 | ** CHANGE it to 1 if you want vararg functions that do not use '...' |
268 | ** to get an `arg' table with their extra arguments. | 273 | ** to get an 'arg' table with their extra arguments. |
269 | */ | 274 | */ |
270 | #define LUA_COMPAT_VARARG 1 | 275 | #define LUA_COMPAT_VARARG 1 |
271 | 276 | ||
@@ -317,7 +322,7 @@ | |||
317 | @@ LUAI_MEM is an a signed integer big enough to count the total memory | 322 | @@ LUAI_MEM is an a signed integer big enough to count the total memory |
318 | @* used by Lua. | 323 | @* used by Lua. |
319 | ** CHANGE here if for some weird reason the default definitions are not | 324 | ** CHANGE here if for some weird reason the default definitions are not |
320 | ** good enough for your machine. (The `else' definition always works, | 325 | ** good enough for your machine. (The 'else' definition always works, |
321 | ** but may waste space on machines with 64-bit longs.) Probably you do | 326 | ** but may waste space on machines with 64-bit longs.) Probably you do |
322 | ** not need to change this. | 327 | ** not need to change this. |
323 | */ | 328 | */ |
@@ -393,7 +398,7 @@ | |||
393 | 398 | ||
394 | /* | 399 | /* |
395 | @@ LUAI_MAXEXPWHILE is the maximum size of code for expressions | 400 | @@ LUAI_MAXEXPWHILE is the maximum size of code for expressions |
396 | @* controling a `while' loop. | 401 | @* controling a 'while' loop. |
397 | */ | 402 | */ |
398 | #define LUAI_MAXEXPWHILE 100 | 403 | #define LUAI_MAXEXPWHILE 100 |
399 | 404 | ||
@@ -466,7 +471,7 @@ | |||
466 | 471 | ||
467 | /* | 472 | /* |
468 | @@ LUA_NUMBER is the type of numbers in Lua. | 473 | @@ LUA_NUMBER is the type of numbers in Lua. |
469 | @@ LUAI_UACNUMBER is the result of an `usual argument conversion' | 474 | @@ LUAI_UACNUMBER is the result of an 'usual argument conversion' |
470 | @* over a number. | 475 | @* over a number. |
471 | */ | 476 | */ |
472 | #define LUA_NUMBER double | 477 | #define LUA_NUMBER double |