From 7c01256715ea611da8ad47c135ae41f5dd54f9e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferenc=20W=C3=A1gner?= Date: Mon, 14 Oct 2013 19:57:57 +0200 Subject: lua: make the dmi module standalone By copying two short functions from the cpu module. They do not warrant a separate module. Also make those functions static in both modules. --- com32/lua/src/cpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'com32/lua/src/cpu.c') diff --git a/com32/lua/src/cpu.c b/com32/lua/src/cpu.c index 69914f79..2e822cd3 100644 --- a/com32/lua/src/cpu.c +++ b/com32/lua/src/cpu.c @@ -9,13 +9,13 @@ #include"lualib.h" #include"cpuid.h" -void add_string_item(lua_State *L, const char *item, const char *value_str) { +static 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); } -void add_int_item(lua_State *L, const char *item, int value_int) { +static 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); -- cgit v1.2.1