diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-02-07 17:06:45 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-02-07 17:36:54 -0800 |
commit | a0a43046b3b21853fdec115dd35f1def9c312670 (patch) | |
tree | db3e668d3da07dbe1a146ff06edb789da42cab03 /event.cpp | |
parent | e8af86017a4b072a9b03d914e34c24e387dac3f3 (diff) |
Removed discriminated union from block_t type, allowing us to store wcstrings in it
Diffstat (limited to 'event.cpp')
-rw-r--r-- | event.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -336,7 +336,7 @@ void event_remove( event_t *criterion ) events.swap(new_list); } -int event_get( event_t *criterion, array_list_t *out ) +int event_get( event_t *criterion, std::vector<event_t *> *out ) { size_t i; int found = 0; @@ -353,7 +353,7 @@ int event_get( event_t *criterion, array_list_t *out ) { found++; if( out ) - al_push( out, n ); + out->push_back(n); } } return found; @@ -461,7 +461,7 @@ static void event_fire_internal( event_t *event ) prev_status = proc_get_last_status(); parser_t &parser = parser_t::principal_parser(); parser.push_block( EVENT ); - parser.current_block->param1.event = event; + parser.current_block->state1<event_t *>() = event; parser.eval( buffer.c_str(), 0, TOP ); parser.pop_block(); proc_pop_interactive(); |