Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144424178
D43900.id134346.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
692 B
Referenced Files
None
Subscribers
None
D43900.id134346.diff
View Options
diff --git a/stand/liblua/lutils.c b/stand/liblua/lutils.c
--- a/stand/liblua/lutils.c
+++ b/stand/liblua/lutils.c
@@ -578,6 +578,10 @@
REG_SIMPLE(setenv),
REG_SIMPLE(time),
REG_SIMPLE(unsetenv),
+ { NULL, NULL },
+};
+
+static const struct luaL_Reg gfxlib[] = {
REG_SIMPLE(fb_bezier),
REG_SIMPLE(fb_drawrect),
REG_SIMPLE(fb_line),
@@ -627,10 +631,17 @@
lua_setfield(L, -2, "features");
}
+static void
+luaopen_gfx(lua_State *L)
+{
+ luaL_newlib(L, gfxlib);
+}
+
int
luaopen_loader(lua_State *L)
{
luaL_newlib(L, loaderlib);
+ luaopen_gfx(L);
/* Add loader.machine and loader.machine_arch properties */
lua_pushstring(L, MACHINE);
lua_setfield(L, -2, "machine");
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Feb 9, 9:12 AM (8 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28553602
Default Alt Text
D43900.id134346.diff (692 B)
Attached To
Mode
D43900: loader: Register the gfx stuff separately.
Attached
Detach File
Event Timeline
Log In to Comment