diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-08-25 16:58:08 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-08-25 16:58:08 -0300 |
| commit | f096ab5421e09acf3cb70661862b69fa100bff80 (patch) | |
| tree | bcae570f3583cc5cdbdb11416be6720eae7b64d1 /luaconf.h | |
| parent | 4e1ffc482a7eadde2cace3102a8d22c5baa4d7a9 (diff) | |
| download | lua-f096ab5421e09acf3cb70661862b69fa100bff80.tar.gz lua-f096ab5421e09acf3cb70661862b69fa100bff80.tar.bz2 lua-f096ab5421e09acf3cb70661862b69fa100bff80.zip | |
correct way to check arguments to 'strftime'
Diffstat (limited to 'luaconf.h')
| -rw-r--r-- | luaconf.h | 20 |
1 files changed, 12 insertions, 8 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: luaconf.h,v 1.107 2009/07/15 17:26:14 roberto Exp roberto $ | 2 | ** $Id: luaconf.h,v 1.108 2009/07/15 17:57:30 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 | */ |
| @@ -667,14 +667,18 @@ union luai_Cast { double l_d; long l_l; }; | |||
| 667 | 667 | ||
| 668 | 668 | ||
| 669 | /* | 669 | /* |
| 670 | @@ LUA_STRFTIMEOPTIONS is the list of valid conversion specifier | 670 | @@ LUA_STRFTIMEOPTIONS is the list of valid conversion specifiers |
| 671 | @* characters for the 'strftime' function; | 671 | @* for the 'strftime' function; |
| 672 | @@ LUA_STRFTIMEPREFIX is the list of valid modifiers for | 672 | ** CHANGE it if you want to use non-ansi options specific to your system. |
| 673 | @* that function. | ||
| 674 | ** CHANGE them if you want to use non-ansi options specific to your system. | ||
| 675 | */ | 673 | */ |
| 676 | #define LUA_STRFTIMEOPTIONS "aAbBcdHIjmMpSUwWxXyYz%" | 674 | #if !defined(LUA_USE_POSIX) |
| 677 | #define LUA_STRFTIMEPREFIX "" | 675 | #define LUA_STRFTIMEOPTIONS "aAbBcdHIjmMpSUwWxXyYz%", "" |
| 676 | |||
| 677 | #else | ||
| 678 | #define LUA_STRFTIMEOPTIONS "aAbBcCdDeFgGhHIjmMnprRStTuUVwWxXyYzZ%", "", \ | ||
| 679 | "E", "cCxXyY", \ | ||
| 680 | "O", "deHImMSuUVwWy" | ||
| 681 | #endif | ||
| 678 | 682 | ||
| 679 | 683 | ||
| 680 | 684 | ||
