From e7fb0d8a6f10338fe62e869115dfe9f3a73e2552 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 3 May 2007 17:49:29 -0300 Subject: 'os.date' checks arguments before passing them to 'strftime' --- luaconf.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'luaconf.h') diff --git a/luaconf.h b/luaconf.h index d473d325..8e5479ab 100644 --- a/luaconf.h +++ b/luaconf.h @@ -1,5 +1,5 @@ /* -** $Id: luaconf.h,v 1.86 2006/09/18 14:03:18 roberto Exp roberto $ +** $Id: luaconf.h,v 1.87 2007/02/07 17:46:20 roberto Exp roberto $ ** Configuration file for Lua ** See Copyright Notice in lua.h */ @@ -657,6 +657,18 @@ union luai_Cast { double l_d; long l_l; }; #endif +/* +@@ LUA_STRFTIMEOPTIONS is the list of valid conversion specifier +@* characters for the 'strftime' function; +@@ LUA_STRFTIMEPREFIX is the list of valid modifiers for +@* that function. +** CHANGE them if you want to use non-ansi options specific to your system. +*/ +#define LUA_STRFTIMEOPTIONS "aAbBcdHIjmMpSUwWxXyYz%" +#define LUA_STRFTIMEPREFIX "" + + + /* @@ lua_popen spawns a new process connected to the current one through @* the file streams. -- cgit v1.2.3-55-g6feb