Git commit ID added to stamp
Fixes #2921: getValue() now also returns pilot position Fixes #3062: Close any Lua open files when radio powers off Fixes #3095: Lua string library added (only 6k bytes of flash used) Re #3095: luaGetVersion() also returns version as numbers (Ported from master 7ef790d3..4d0bd14ad and squashed into one commit)
This commit is contained in:
+4
-3
@@ -9,6 +9,7 @@
|
||||
#include <stddef.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#define lstrlib_c
|
||||
|
||||
@@ -975,7 +976,7 @@ static int str_format (lua_State *L) {
|
||||
/* }====================================================== */
|
||||
|
||||
|
||||
static const luaL_Reg strlib[] = {
|
||||
const luaL_Reg strlib[] = {
|
||||
{"byte", str_byte},
|
||||
{"char", str_char},
|
||||
{"dump", str_dump},
|
||||
@@ -993,7 +994,7 @@ static const luaL_Reg strlib[] = {
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
|
||||
#if 0
|
||||
static void createmetatable (lua_State *L) {
|
||||
lua_createtable(L, 0, 1); /* table to be metatable for strings */
|
||||
lua_pushliteral(L, ""); /* dummy string */
|
||||
@@ -1014,4 +1015,4 @@ LUAMOD_API int luaopen_string (lua_State *L) {
|
||||
createmetatable(L);
|
||||
return 1;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user