--- a/main.c Thu Mar 19 10:16:20 2009 +0200
+++ b/main.c Fri Mar 20 19:38:12 2009 +0200
@@ -79,6 +79,8 @@
/// yes or no ansvers
/// G:
static const string2enum_t lua_yesno[] = {
+ { "1", 1 },
+ { "0", 0 },
{ "enable", 1 },
{ "disable", 0 },
{ "true", 1 },
@@ -87,8 +89,6 @@
{ "off", 0 },
{ "yes", 1 },
{ "no", 0 },
- { "1", 1 },
- { "0", 0 },
{ NULL, -1 },
};
@@ -783,7 +783,7 @@
/// A: string (command name), command function (optional), boolean (parse args flag, optional), table (completions, optional)/completion type (or integer comletion group id, optional)
/// R: completion type (integer completion group id or string for builtin types, optional)
static int lua_main_command (lua_State *L)
-{ // FIXME FIXME
+{
const char *name = luaL_checkstring (L, 1); // XXX: to_utf8? looks like no :/
lua_command_callback_t *cb;
int top = lua_gettop (L);