annotate nodejs/coord.m4 @ 1520:8bc2e824f155

Fix various bug of code for parsing finite state machines.
author Thinker K.F. Li <thinker@codemud.net>
date Fri, 19 Aug 2011 16:00:49 +0800
parents e22df2f3bffe
children
rev   line source
661
90c7726bc953 Replace part code of coord.cc by the code generated by generator
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
1 define([PROJ_PREFIX], [xnjsmb_auto_])dnl
829
379fd510ba38 Define accessor for the opacity attribute of the coord
wycc
parents: 810
diff changeset
2 STRUCT([coord], [coord_t],
1454
e22df2f3bffe Provide number of children for coords
Thinker K.F. Li <thinker@codemud.net>
parents: 1451
diff changeset
3 [ACCESSOR([opacity], [xnjsmb_coord_get_opacity],
e22df2f3bffe Provide number of children for coords
Thinker K.F. Li <thinker@codemud.net>
parents: 1451
diff changeset
4 [xnjsmb_coord_set_opacity])],
661
90c7726bc953 Replace part code of coord.cc by the code generated by generator
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
5 [METHOD([add_shape], [xnjsmb_coord_add_shape],
741
d8764f10e141 Remove a coord from the tree in JS
Thinker K.F. Li <thinker@codemud.net>
parents: 680
diff changeset
6 (SELF, OBJ([shape], [shape], [shape_t]), ERR), 1, []),
749
ed59e659a202 Implement binding for hide/show for shapes and coords
Thinker K.F. Li <thinker@codemud.net>
parents: 745
diff changeset
7 METHOD([remove], [xnjsmb_coord_remove], (SELF), 0, []),
1372
0afd598a0b30 Add clone_from_subtree() for coord object of nodejs
Thinker K.F. Li <thinker@codemud.net>
parents: 843
diff changeset
8 METHOD([clone_from_subtree], [xnjsmb_coord_clone_from_subtree],
0afd598a0b30 Add clone_from_subtree() for coord object of nodejs
Thinker K.F. Li <thinker@codemud.net>
parents: 843
diff changeset
9 (SELF, OBJ([src], [coord], [coord_t]), ERR), 1,
1373
f02b39079ab0 Modify return object for clone_from_subtree
Thinker K.F. Li <thinker@codemud.net>
parents: 1372
diff changeset
10 [OBJ([coord], [coord_t])],
1377
8ecee58c85c6 Fix issue of crashing for cloned subtree
Thinker K.F. Li <thinker@codemud.net>
parents: 1373
diff changeset
11 (([MOD], [_xnjsmb_coord_clone_from_subtree_mod]))),
749
ed59e659a202 Implement binding for hide/show for shapes and coords
Thinker K.F. Li <thinker@codemud.net>
parents: 745
diff changeset
12 METHOD([show], [xnjsmb_coord_show], (SELF), 0, []),
1450
6644ef3d75eb Add get_child method for coord in JS
Thinker K.F. Li <thinker@codemud.net>
parents: 1449
diff changeset
13 METHOD([hide], [xnjsmb_coord_hide], (SELF), 0, []),
1454
e22df2f3bffe Provide number of children for coords
Thinker K.F. Li <thinker@codemud.net>
parents: 1451
diff changeset
14 METHOD([num_children], [xnjsmb_coord_num_children], (SELF),
e22df2f3bffe Provide number of children for coords
Thinker K.F. Li <thinker@codemud.net>
parents: 1451
diff changeset
15 0, [INT]),
1450
6644ef3d75eb Add get_child method for coord in JS
Thinker K.F. Li <thinker@codemud.net>
parents: 1449
diff changeset
16 METHOD([get_child], [xnjsmb_coord_get_child],
6644ef3d75eb Add get_child method for coord in JS
Thinker K.F. Li <thinker@codemud.net>
parents: 1449
diff changeset
17 (SELF, INT(idx), ERR), 1, [VAL])],
661
90c7726bc953 Replace part code of coord.cc by the code generated by generator
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
18 ((GET_INDEX, (coord_get_index, NUMBER)),
680
a588eefd3f04 Refactor to xnjsmb_coord_mod().
Thinker K.F. Li <thinker@branda.to>
parents: 666
diff changeset
19 (SET_INDEX, (coord_set_index, NUMBER)),
a588eefd3f04 Refactor to xnjsmb_coord_mod().
Thinker K.F. Li <thinker@branda.to>
parents: 666
diff changeset
20 ([STMOD], [xnjsmb_coord_mod])))