diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-01-22 21:40:08 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-01-22 21:40:08 -0800 |
commit | b43c8da66b3b215690bef5d9814e92bf23b4ba7b (patch) | |
tree | ec4ddacaa9ca5105f053cac5907aa669fc3ab24b /event.cpp | |
parent | da85bdc4012fb5a5e7ffffe61381fb9ba742958b (diff) |
More work towards instanced parser. First successful compilation
Diffstat (limited to 'event.cpp')
-rw-r--r-- | event.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -173,7 +173,7 @@ static int event_is_blocked( event_t *e ) { block_t *block; event_block_t *eb; - + parser_t &parser = parser_t::principal_parser(); for( block = parser.current_block; block; block = block->outer ) { for( eb = block->first_event_block; eb; eb=eb->next ) @@ -184,7 +184,7 @@ static int event_is_blocked( event_t *e ) return 1; } } - for( eb = global_event_block; eb; eb=eb->next ) + for( eb = parser.global_event_block; eb; eb=eb->next ) { if( eb->type & (1<<EVENT_ANY ) ) return 1; @@ -459,6 +459,7 @@ static void event_fire_internal( event_t *event ) */ proc_push_interactive(0); prev_status = proc_get_last_status(); + parser_t &parser = parser_t::principal_parser(); parser.push_block( EVENT ); parser.current_block->param1.event = event; parser.eval( buffer.c_str(), 0, TOP ); |