comparison nodejs/observer.m4 @ 651:aa52883534fc

Code generated by generator can be built
author Thinker K.F. Li <thinker@branda.to>
date Sat, 31 Jul 2010 13:28:48 +0800
parents 123e7eeff10c
children 38c720272dd5
comparison
equal deleted inserted replaced
650:123e7eeff10c 651:aa52883534fc
1 STRUCT([event], [event_t], 1 STRUCT([mb_obj], [mb_obj_t], [INT([obj_type])], [])
2 [INT([event]), OBJ([tgt], [subject]),
3 OBJ([cur_tgt], [subject]), INT([flags])], [])
4 2
5 STRUCT([observer], [observer_t], 3 STRUCT([observer], [observer_t],
6 [INT([type])], []) 4 [INT([type])], [])
7 5
8 STRUCT([subject], [subject_t], [], 6 STRUCT([subject], [subject_t], [],
9 [METHOD([add_event_observer], [subject_add_event_observer], 7 [METHOD([add_event_observer], [_subject_add_event_observer],
10 (INT([type]), FUNC([handler])), 2, 8 (INT([type]), FUNC([handler])), 2,
11 [OBJ([observer], [observer_t])]), 9 [OBJ([observer], [observer_t])]),
12 METHOD([remove_observer], [subject_remove_observer], 10 METHOD([remove_observer], [_subject_remove_observer],
13 (OBJ([observer], [observer_t])), 1, [])]) 11 (OBJ([observer], [observer_t])), 1, []),
12 METHOD([get_object], [subject_get_object], (), 0,
13 [OBJ([mb_obj], [mb_obj_t])])])
14 14
15 FUNCTION([load], [my_load], [INT(sz), STR(name)], 2, [OBJ([test],[test_t])]) 15 STRUCT([event], [event_t],
16 [INT([type]), OBJ([tgt], [subject], [subject_t]),
17 OBJ([cur_tgt], [subject], [subject_t]), INT([flags])], [])