grub/conf
BVK Chaitanya 0cdc2a095b 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
GRUB shell lexer and parser improvements.

	* conf/any-emu.rmk: Build rule updates.
	* conf/common.rmk: Likewise.
	* conf/i386-coreboot.rmk: Likewise.
	* conf/i386-efi.rmk: Likewise.
	* conf/i386-ieee1275.rmk: Likewise.
	* conf/i386-pc.rmk: Likewise.
	* conf/powerpc-ieee1275.rmk: Likewise.
	* conf/x86_64-efi.rmk: Likewise.

	* configure.ac: Configure check for flex.

	* include/grub/script_sh.h (grub_script_arg_type_t): More argument
	types.
	(grub_lexer_param): Struct member updates.
	(grub_parser_param): Likewise.
	(GRUB_LEXER_TOKEN_MAX): Maximum token size.
	(GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
	(grub_script_lexer_init): Prototype update.
	(grub_script_lexer_record_start): Likewise.
	(grub_script_lexer_record_stop): Likewise.
	(grub_script_lexer_yywrap): New function prototype.
	(grub_script_lexer_fini): Likewise.
	(grub_script_execute_argument_to_string): Removed by...
	(grub_script_execute_argument_to_argv): ...better version.

	* script/execute.c (ROUND_UPTO): New macro.
	(grub_script_execute_cmdline): Out of memory fixes.
	(grub_script_execute_menuentry): Likewise.
	(grub_script_execute_argument_to_string): Removed. Update all
	users by...
	(grub_script_execute_argument_to_argv): ...better version.
	* script/function.c (grub_script_function_create): Use
	grub_script_execute_argument_to_argv instead of
	grub_script_execute_argument_to_string.

	* script/lexer.c (check_varstate): Removed.
	(check_textstate): Removed.
	(grub_script_lexer_record_start): Likewise.
	(grub_script_lexer_record_stop): Likewise.
	(recordchar): Replaced with...
	(grub_script_lexer_record): ...new function.
	(nextchar): Removed.
	(grub_script_lexer_init): Rewritten.
	(grub_script_yylex): Rewritten.
	(append_newline): New function.
	(grub_script_lexer_yywrap): New function.
	(grub_script_lexer_fini): New function.
	(grub_script_yyerror): Sets error flag.

	* script/yylex.l: New file.
	(grub_lexer_yyfree): Wrapper for flex yyffre.
	(grub_lexer_yyalloc): Likewise.
	(grub_lexer_yyrealloc): Likewise.
	* script/parser.y: Refactored.

	* script/script.c (grub_script_arg_add): Out of memory fixes.
	(grub_script_add_arglist): Likewise.
	(grub_script_create_cmdline): Likewise.
	(grub_script_create_cmdmenu): Likewise.
	(grub_script_add_cmd): Likewise.
	(grub_script_parse): Use grub_script_lexer_fini to deallocated.
	* util/grub-script-check.c (grub_script_execute_menuentry): Remove
	unnecessary code.

	* tests/grub_script_echo1.in: New testcase.
	* tests/grub_script_vars1.in: New testcase.
	* tests/grub_script_echo_keywords.in: New testcase.
2010-03-14 22:37:17 +05:30
..
any-emu.rmk 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com> 2010-03-14 22:37:17 +05:30
common.rmk merged in mainline 2010-03-14 22:20:55 +05:30
i386-coreboot.rmk Share common compilation flags 2010-02-10 01:39:23 +01:00
i386-efi.rmk 2010-03-03 Colin Watson <cjwatson@ubuntu.com> 2010-03-03 10:44:12 +00:00
i386-ieee1275.rmk Share common compilation flags 2010-02-10 01:39:23 +01:00
i386-pc-cygwin-img-ld.sc 2008-07-24 Bean <bean123ch@gmail.com> 2008-07-24 14:56:30 +00:00
i386-pc.rmk Remove some redundancy in build system. 2010-03-14 17:17:49 +01:00
i386-qemu.rmk Share common compilation flags 2010-02-10 01:39:23 +01:00
i386.rmk Clean building system 2010-02-07 23:49:49 +01:00
mips-qemu-mips.rmk 2009-12-20 Robert Millan <rmh.grub@aybabtu.com> 2010-01-20 01:19:53 +00:00
mips-yeeloong.rmk Merge mainline into cleanbuild 2010-03-14 16:01:31 +01:00
mips.rmk Merge mainline into cleanbuild 2010-03-14 16:01:31 +01:00
powerpc-ieee1275.rmk Share common compilation flags 2010-02-10 01:39:23 +01:00
sparc64-ieee1275.rmk Remove some redundancy in build system. 2010-03-14 17:17:49 +01:00
tests.rmk lexer-rewrite rebase commit 2010-01-22 19:07:27 +05:30
x86-efi.rmk Remove useless efi grub-setup 2010-02-10 01:51:02 +01:00
x86_64-efi.rmk 2010-03-03 Colin Watson <cjwatson@ubuntu.com> 2010-03-03 10:44:12 +00:00