grub/script/lua
bean b4a1dc7990 2009-07-05 Bean <bean123ch@gmail.com>
* 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.
2009-07-05 09:59:27 +00:00
..
grub_lib.c 2009-07-05 Bean <bean123ch@gmail.com> 2009-07-05 09:59:27 +00:00
grub_lib.h 2009-05-16 Bean <bean123ch@gmail.com> 2009-05-16 12:53:43 +00:00
grub_lua.h 2009-07-05 Bean <bean123ch@gmail.com> 2009-07-05 09:59:27 +00:00
grub_main.c 2009-07-05 Bean <bean123ch@gmail.com> 2009-07-05 09:59:27 +00:00
lapi.c 2009-05-16 Bean <bean123ch@gmail.com> 2009-05-16 12:53:43 +00:00
lapi.h 2009-05-16 Bean <bean123ch@gmail.com> 2009-05-16 12:53:43 +00:00
lauxlib.c 2009-05-16 Bean <bean123ch@gmail.com> 2009-05-16 12:53:43 +00:00
lauxlib.h 2009-05-16 Bean <bean123ch@gmail.com> 2009-05-16 12:53:43 +00:00
lbaselib.c 2009-05-16 Bean <bean123ch@gmail.com> 2009-05-16 12:53:43 +00:00
lcode.c 2009-05-16 Bean <bean123ch@gmail.com> 2009-05-16 12:53:43 +00:00
lcode.h 2009-05-16 Bean <bean123ch@gmail.com> 2009-05-16 12:53:43 +00:00
ldblib.c 2009-05-16 Bean <bean123ch@gmail.com> 2009-05-16 12:53:43 +00:00
ldebug.c 2009-05-16 Bean <bean123ch@gmail.com> 2009-05-16 12:53:43 +00:00
ldebug.h 2009-05-16 Bean <bean123ch@gmail.com> 2009-05-16 12:53:43 +00:00
ldo.c 2009-05-16 Bean <bean123ch@gmail.com> 2009-05-16 12:53:43 +00:00
ldo.h 2009-05-16 Bean <bean123ch@gmail.com> 2009-05-16 12:53:43 +00:00
ldump.c 2009-05-16 Bean <bean123ch@gmail.com> 2009-05-16 12:53:43 +00:00
lfunc.c 2009-05-16 Bean <bean123ch@gmail.com> 2009-05-16 12:53:43 +00:00
lfunc.h 2009-05-16 Bean <bean123ch@gmail.com> 2009-05-16 12:53:43 +00:00
lgc.c 2009-05-16 Bean <bean123ch@gmail.com> 2009-05-16 12:53:43 +00:00
lgc.h 2009-05-16 Bean <bean123ch@gmail.com> 2009-05-16 12:53:43 +00:00
linit.c 2009-07-05 Bean <bean123ch@gmail.com> 2009-07-05 09:59:27 +00:00
liolib.c 2009-05-16 Bean <bean123ch@gmail.com> 2009-05-16 12:53:43 +00:00
llex.c 2009-05-16 Bean <bean123ch@gmail.com> 2009-05-16 12:53:43 +00:00
llex.h 2009-05-16 Bean <bean123ch@gmail.com> 2009-05-16 12:53:43 +00:00
llimits.h 2009-05-16 Bean <bean123ch@gmail.com> 2009-05-16 12:53:43 +00:00
lmathlib.c 2009-05-16 Bean <bean123ch@gmail.com> 2009-05-16 12:53:43 +00:00
lmem.c 2009-05-16 Bean <bean123ch@gmail.com> 2009-05-16 12:53:43 +00:00
lmem.h 2009-05-16 Bean <bean123ch@gmail.com> 2009-05-16 12:53:43 +00:00
loadlib.c 2009-05-16 Bean <bean123ch@gmail.com> 2009-05-16 12:53:43 +00:00
lobject.c 2009-05-16 Bean <bean123ch@gmail.com> 2009-05-16 12:53:43 +00:00
lobject.h 2009-05-16 Bean <bean123ch@gmail.com> 2009-05-16 12:53:43 +00:00
lopcodes.c 2009-05-16 Bean <bean123ch@gmail.com> 2009-05-16 12:53:43 +00:00
lopcodes.h 2009-05-16 Bean <bean123ch@gmail.com> 2009-05-16 12:53:43 +00:00
loslib.c 2009-05-16 Bean <bean123ch@gmail.com> 2009-05-16 12:53:43 +00:00
lparser.c 2009-05-16 Bean <bean123ch@gmail.com> 2009-05-16 12:53:43 +00:00
lparser.h 2009-05-16 Bean <bean123ch@gmail.com> 2009-05-16 12:53:43 +00:00
lstate.c 2009-05-16 Bean <bean123ch@gmail.com> 2009-05-16 12:53:43 +00:00
lstate.h 2009-05-16 Bean <bean123ch@gmail.com> 2009-05-16 12:53:43 +00:00
lstring.c 2009-05-16 Bean <bean123ch@gmail.com> 2009-05-16 12:53:43 +00:00
lstring.h 2009-05-16 Bean <bean123ch@gmail.com> 2009-05-16 12:53:43 +00:00
lstrlib.c 2009-05-16 Bean <bean123ch@gmail.com> 2009-05-16 12:53:43 +00:00
ltable.c 2009-05-16 Bean <bean123ch@gmail.com> 2009-05-16 12:53:43 +00:00
ltable.h 2009-05-16 Bean <bean123ch@gmail.com> 2009-05-16 12:53:43 +00:00
ltablib.c 2009-05-16 Bean <bean123ch@gmail.com> 2009-05-16 12:53:43 +00:00
ltm.c 2009-05-16 Bean <bean123ch@gmail.com> 2009-05-16 12:53:43 +00:00
ltm.h 2009-05-16 Bean <bean123ch@gmail.com> 2009-05-16 12:53:43 +00:00
lua.h 2009-05-16 Bean <bean123ch@gmail.com> 2009-05-16 12:53:43 +00:00
luaconf.h 2009-05-16 Bean <bean123ch@gmail.com> 2009-05-16 12:53:43 +00:00
lualib.h 2009-05-16 Bean <bean123ch@gmail.com> 2009-05-16 12:53:43 +00:00
lundump.c 2009-05-16 Bean <bean123ch@gmail.com> 2009-05-16 12:53:43 +00:00
lundump.h 2009-05-16 Bean <bean123ch@gmail.com> 2009-05-16 12:53:43 +00:00
lvm.c 2009-05-16 Bean <bean123ch@gmail.com> 2009-05-16 12:53:43 +00:00
lvm.h 2009-05-16 Bean <bean123ch@gmail.com> 2009-05-16 12:53:43 +00:00
lzio.c 2009-05-16 Bean <bean123ch@gmail.com> 2009-05-16 12:53:43 +00:00
lzio.h 2009-05-16 Bean <bean123ch@gmail.com> 2009-05-16 12:53:43 +00:00