comparison nodejs/coord.cc @ 1414:036f2b447860

Merge
author Thinker K.F. Li <thinker@codemud.net>
date Wed, 06 Apr 2011 14:37:34 +0800
parents 88c8c874f4b8
children f34d2fcbcd0d
comparison
equal deleted inserted replaced
1413:b8dfa491ed9d 1414:036f2b447860
79 79
80 /* Invalidate all coords in the subtree */ 80 /* Invalidate all coords in the subtree */
81 FOR_COORDS_PREORDER(coord, child) { 81 FOR_COORDS_PREORDER(coord, child) {
82 child_hdl = (Persistent<Object> *)mb_prop_get(&child->obj.props, 82 child_hdl = (Persistent<Object> *)mb_prop_get(&child->obj.props,
83 PROP_JSOBJ); 83 PROP_JSOBJ);
84 if (child_hdl == NULL) continue;
84 SET(*child_hdl, "valid", _false); 85 SET(*child_hdl, "valid", _false);
85 WRAP(*child_hdl, NULL); 86 WRAP(*child_hdl, NULL);
86 child_hdl->Dispose(); 87 child_hdl->Dispose();
87 delete child_hdl; 88 delete child_hdl;
88 89
89 /* Invalidate members of a coord */ 90 /* Invalidate members of a coord */
90 FOR_COORD_SHAPES(child, mem) { 91 FOR_COORD_SHAPES(child, mem) {
91 mem_hdl = (Persistent<Object> *)mb_prop_get(&mem->obj.props, 92 mem_hdl = (Persistent<Object> *)mb_prop_get(&mem->obj.props,
92 PROP_JSOBJ); 93 PROP_JSOBJ);
94 if (mem_hdl == NULL) continue;
93 SET(*mem_hdl, "valid", _false); 95 SET(*mem_hdl, "valid", _false);
94 WRAP(*mem_hdl, NULL); 96 WRAP(*mem_hdl, NULL);
95 mem_hdl->Dispose(); 97 mem_hdl->Dispose();
96 delete mem_hdl; 98 delete mem_hdl;
97 } 99 }