First working version of new event dispatching framwork.
authorRui Guo <firemeteor.guo@gmail.com>
Sat, 6 Jun 2009 16:51:39 +0000 (00:51 +0800)
committerRui Guo <firemeteor.guo@gmail.com>
Sat, 6 Jun 2009 16:51:39 +0000 (00:51 +0800)
commit11c17de2bf7fdcee82f790f92a8676e63e976142
treea0e1a172a76ed89835438e9b7248c0eeab4116dd
parent9c6308e2ff16a94c6a51b6412cd6b52e46acfe08
First working version of new event dispatching framwork.

The cmdcallback.lua demo now works under the new framework.

Major changes:
1. Implemented lua event dispatcher.
2. Implemented an event register interface in Screen object.
3. Modify cmdcallback.lua to explicitly register callback.

Issues left:
1. Clean up the code.
2. unregister interface.
3. how to work if USEVARARGS not defined?
src/lua.c
src/process.c
src/script.c
src/script.h
src/scripts/cmdcallback.lua