diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-12-17 11:08:51 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-12-17 11:08:51 -0200 |
| commit | b3b8dfaaea2dba7e7b4b898a5f767a80f36319f1 (patch) | |
| tree | d9dd2e8cbeb216f0bc61f1058946fbfcca120237 /luaconf.h | |
| parent | adc6a4865bfd12339ad7c31b43ba26206d385517 (diff) | |
| download | lua-b3b8dfaaea2dba7e7b4b898a5f767a80f36319f1.tar.gz lua-b3b8dfaaea2dba7e7b4b898a5f767a80f36319f1.tar.bz2 lua-b3b8dfaaea2dba7e7b4b898a5f767a80f36319f1.zip | |
yet more options moved from luaconf.h into internal files
Diffstat (limited to 'luaconf.h')
| -rw-r--r-- | luaconf.h | 42 |
1 files changed, 1 insertions, 41 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: luaconf.h,v 1.122 2009/12/17 12:26:09 roberto Exp roberto $ | 2 | ** $Id: luaconf.h,v 1.123 2009/12/17 12:50:20 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 | */ |
| @@ -461,46 +461,6 @@ union luai_Cast { double l_d; long l_l; }; | |||
| 461 | 461 | ||
| 462 | /* }================================================================== */ | 462 | /* }================================================================== */ |
| 463 | 463 | ||
| 464 | |||
| 465 | /* | ||
| 466 | @@ LUA_STRFTIMEOPTIONS is the list of valid conversion specifiers | ||
| 467 | @* for the 'strftime' function; | ||
| 468 | ** CHANGE it if you want to use non-ansi options specific to your system. | ||
| 469 | */ | ||
| 470 | #if !defined(LUA_USE_POSIX) | ||
| 471 | #define LUA_STRFTIMEOPTIONS "aAbBcdHIjmMpSUwWxXyYz%", "" | ||
| 472 | |||
| 473 | #else | ||
| 474 | #define LUA_STRFTIMEOPTIONS "aAbBcCdDeFgGhHIjmMnprRStTuUVwWxXyYzZ%", "", \ | ||
| 475 | "E", "cCxXyY", \ | ||
| 476 | "O", "deHImMSuUVwWy" | ||
| 477 | #endif | ||
| 478 | |||
| 479 | |||
| 480 | |||
| 481 | /* | ||
| 482 | @@ lua_popen spawns a new process connected to the current one through | ||
| 483 | @* the file streams. | ||
| 484 | ** CHANGE it if you have a way to implement it in your system. | ||
| 485 | */ | ||
| 486 | #if defined(LUA_USE_POPEN) | ||
| 487 | |||
| 488 | #define lua_popen(L,c,m) ((void)L, fflush(NULL), popen(c,m)) | ||
| 489 | #define lua_pclose(L,file) ((void)L, pclose(file)) | ||
| 490 | |||
| 491 | #elif defined(LUA_WIN) | ||
| 492 | |||
| 493 | #define lua_popen(L,c,m) ((void)L, _popen(c,m)) | ||
| 494 | #define lua_pclose(L,file) ((void)L, _pclose(file)) | ||
| 495 | |||
| 496 | #else | ||
| 497 | |||
| 498 | #define lua_popen(L,c,m) ((void)((void)c, m), \ | ||
| 499 | luaL_error(L, LUA_QL("popen") " not supported"), (FILE*)0) | ||
| 500 | #define lua_pclose(L,file) ((void)((void)L, file), -1) | ||
| 501 | |||
| 502 | #endif | ||
| 503 | |||
| 504 | /* | 464 | /* |
| 505 | @@ LUA_DL_* define which dynamic-library system Lua should use. | 465 | @@ LUA_DL_* define which dynamic-library system Lua should use. |
| 506 | ** CHANGE here if Lua has problems choosing the appropriate | 466 | ** CHANGE here if Lua has problems choosing the appropriate |
