]> git.ipfire.org Git - thirdparty/grub.git/commit
2005-11-06 Marco Gerards <mgerards@xs4all.nl>
authormarco_g <marco_g@localhost>
Sun, 6 Nov 2005 22:19:59 +0000 (22:19 +0000)
committermarco_g <marco_g@localhost>
Sun, 6 Nov 2005 22:19:59 +0000 (22:19 +0000)
commitdaac212ae3588792d9fb099e55fa0f3c9d2b3727
treea0cac6c85747d20ece4d472f0f9a7ad525785263
parent77500b2bf007cf8e512579c3537a75004eed0831
2005-11-06  Marco Gerards  <mgerards@xs4all.nl>

Add initial scripting support.

* commands/test.c: New file.
* include/grub/script.h: Likewise.
* normal/execute.c: Likewise.
* normal/function.c: Likewise.
* normal/lexer.c: Likewise.
* normal/parser.y: Likewise.
* normal/script.c: Likewise.

* configure.ac: Add `AC_PROG_YACC' test.

* conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
`normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
`normal/function.c' and `normal/script.c'.
(normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
`grub_script.tab.c', `normal/function.c' and `normal/script.c'.
(test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New variables.
(pkgdata_MODULES): Add `test.mod'.
(grub_script.tab.c): New rule.
(grub_script.tab.h): Likewise.

* include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.

* include/grub/normal.h (grub_test_init): New prototype.
(grub_test_fini): Likewise.

* normal/command.c: Include <grub/script.h>.
(grub_command_execute): Rewritten.

* util/grub-emu.c (main): Call `grub_test_init' and
`grub_test_fini'.
16 files changed:
ChangeLog
commands/test.c [new file with mode: 0644]
conf/i386-pc.mk
conf/i386-pc.rmk
configure
configure.ac
include/grub/err.h
include/grub/normal.h
include/grub/script.h [new file with mode: 0644]
normal/command.c
normal/execute.c [new file with mode: 0644]
normal/function.c [new file with mode: 0644]
normal/lexer.c [new file with mode: 0644]
normal/parser.y [new file with mode: 0644]
normal/script.c [new file with mode: 0644]
util/grub-emu.c