diff nodejs/coord.m4 @ 741:d8764f10e141

Remove a coord from the tree in JS
author Thinker K.F. Li <thinker@codemud.net>
date Wed, 25 Aug 2010 10:40:30 +0800
parents a588eefd3f04
children 4ccb0553e804
line wrap: on
line diff
--- a/nodejs/coord.m4	Wed Aug 25 10:07:33 2010 +0800
+++ b/nodejs/coord.m4	Wed Aug 25 10:40:30 2010 +0800
@@ -1,7 +1,8 @@
 define([PROJ_PREFIX], [xnjsmb_auto_])dnl
 STRUCT([coord], [coord_t], [],
 	[METHOD([add_shape], [xnjsmb_coord_add_shape],
-		(SELF, OBJ([shape], [shape], [shape_t]), ERR), 1, [])],
+		(SELF, OBJ([shape], [shape], [shape_t]), ERR), 1, []),
+	 METHOD([remove], [xnjsmb_coord_remove], (SELF, ERR), 0, [])],
 	((GET_INDEX, (coord_get_index, NUMBER)),
 	 (SET_INDEX, (coord_set_index, NUMBER)),
 	 ([STMOD], [xnjsmb_coord_mod])))