b4a1dc7990
* conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c. * script/lua/grub_lib.c (grub_lua_run): Check input parameter. (grub_lua_getenv): Likewise. (grub_lua_setenv): Likewise. (save_errno): New function. (push_result): Likewise. (grub_lua_enum_device): Likewise. (grub_lua_enum_file): Likewise. (grub_lua_file_open): Likewise. (grub_lua_file_close): Likewise. (grub_lua_file_seek): Likewise. (grub_lua_file_read): Likewise. (grub_lua_file_getline): Likewise. (grub_lua_file_getsize): Likewise. (grub_lua_file_getpos): Likewise. (grub_lua_file_eof): Likewise. (grub_lua_file_exist): Likewise. (grub_lua_add_menu): Likewise. * script/lua/grub_lua.h (isupper): New inline function. (islower): Likewise. (ispunct): Likewise. (isxdigit): Likewise. (strcspn): Change to normal function. (strpbkr): New function declaration. (memchr): Likewise. * script/lua/grub_main.c (scan_str): New function. (strcspn): Likewise. (strpbrk): Likewise. (memchr): Likewise. * script/lua/linit.c (lualibs): Enable the string library. * util/osdetect.lua: New file. |
||
---|---|---|
.. | ||
elf | ||
grub.d | ||
i386 | ||
ieee1275 | ||
powerpc/ieee1275 | ||
sparc64/ieee1275 | ||
console.c | ||
deviceiter.c | ||
devicemap.c | ||
getroot.c | ||
grub-dumpbios.in | ||
grub-dumpdevtree | ||
grub-editenv.c | ||
grub-emu.c | ||
grub-fstest.c | ||
grub-macho2img.c | ||
grub-mkconfig.in | ||
grub-mkconfig_lib.in | ||
grub-mkdevicemap.c | ||
grub-mkfont.c | ||
grub-pe2elf.c | ||
grub-probe.c | ||
hostdisk.c | ||
hostfs.c | ||
lvm.c | ||
misc.c | ||
osdetect.lua | ||
raid.c | ||
resolve.c | ||
update-grub_lib.in | ||
usb.c |