Displaying 3 results from an estimated 3 matches for "value_int".
2012 Sep 19
1
[PATCH 1/1] lua: Cleaned up the dmi table structure in Lua.c32 and added all missing DMI subtables
...id add_string_item(lua_State *L, const char *item, const char
*value_str) {
+void add_string_item(lua_State *L, const char *item, const char
*value_str) {
lua_pushstring(L,item);
lua_pushstring(L,value_str);
lua_settable(L,-3);
}
-static void add_int_item(lua_State *L, const char *item, int value_int) {
+void add_int_item(lua_State *L, const char *item, int value_int) {
lua_pushstring(L,item);
lua_pushnumber(L,value_int);
lua_settable(L,-3);
diff --git a/com32/lua/src/dmi.c b/com32/lua/src/dmi.c
index c8329d3..984fb60 100644
--- a/com32/lua/src/dmi.c
+++ b/com32/lua/src/dmi.c
@@ -9,275 +9...
2006 Nov 02
0
DB: class to multiple rows mapping (aka rails 'osproperty')
...ble of storing various unrelated
classes. Some sort of Extreme polymorphism.
I''ve used this with other languages. E.g. osproperty in Java. The idea
is the following
In the DB
create table dynamicobjects (
id int,
object_type varchar(255),
key_name varchar(255),
value_type int,
value_int int,
value_char varchar(255),
value_longchar text,
...
primary key (id, object_type, key_name)
)
then I could map any instance of any class to it.
E.g.
class User
def initialize(firstname, lastname, birthdate)
@firstname = firstname
@lastname = lastname
@birthdate = birthda...
2013 Oct 15
23
[PATCH 00/21] Upgrade to Lua 5.2.2, add filesystem module and get_key binding
Hi,
This series targets automatic boot menu generation, but most of it
is the Lua upgrade, because I got tired reading deprecated API docs.
It's mostly a straightforward forward port of the earlier Syslinux
specific changes to Lua 5.1, except that:
* I chose the add a stub getenv() implementation to the COM32 API
instead of #ifdefing out all the references in Lua, and
* I kept oslib