Mercurial > MadButterfly
comparison nodejs/coord.m4 @ 745:4ccb0553e804
Refactor code of free C objects into xnjsmb_coord_free_subtree
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Wed, 25 Aug 2010 14:43:48 +0800 |
parents | d8764f10e141 |
children | ed59e659a202 |
comparison
equal
deleted
inserted
replaced
744:6a988e23ad2a | 745:4ccb0553e804 |
---|---|
1 define([PROJ_PREFIX], [xnjsmb_auto_])dnl | 1 define([PROJ_PREFIX], [xnjsmb_auto_])dnl |
2 STRUCT([coord], [coord_t], [], | 2 STRUCT([coord], [coord_t], [], |
3 [METHOD([add_shape], [xnjsmb_coord_add_shape], | 3 [METHOD([add_shape], [xnjsmb_coord_add_shape], |
4 (SELF, OBJ([shape], [shape], [shape_t]), ERR), 1, []), | 4 (SELF, OBJ([shape], [shape], [shape_t]), ERR), 1, []), |
5 METHOD([remove], [xnjsmb_coord_remove], (SELF, ERR), 0, [])], | 5 METHOD([remove], [xnjsmb_coord_remove], (SELF), 0, [])], |
6 ((GET_INDEX, (coord_get_index, NUMBER)), | 6 ((GET_INDEX, (coord_get_index, NUMBER)), |
7 (SET_INDEX, (coord_set_index, NUMBER)), | 7 (SET_INDEX, (coord_set_index, NUMBER)), |
8 ([STMOD], [xnjsmb_coord_mod]))) | 8 ([STMOD], [xnjsmb_coord_mod]))) |