comparison nodejs/mbfly_njs.cc @ 1453:0cb89e204824

Implement tree-traveling for JS
author Thinker K.F. Li <thinker@codemud.net>
date Wed, 13 Apr 2011 17:34:09 +0800
parents 8ecee58c85c6
children
comparison
equal deleted inserted replaced
1452:67282421b0ac 1453:0cb89e204824
37 xnjsmb_mb_rt_objs_mod(Handle<Object> mbrt, Handle<Value> ret) { 37 xnjsmb_mb_rt_objs_mod(Handle<Object> mbrt, Handle<Value> ret) {
38 Handle<Object> ret_obj = ret->ToObject(); 38 Handle<Object> ret_obj = ret->ToObject();
39 39
40 SET(ret_obj, "mbrt", mbrt); 40 SET(ret_obj, "mbrt", mbrt);
41 } 41 }
42
43 #define xnjsmb_auto_coord_new export_xnjsmb_auto_coord_new
44 42
45 static void 43 static void
46 xnjsmb_redraw_changed(njs_runtime_t *rt) { 44 xnjsmb_redraw_changed(njs_runtime_t *rt) {
47 redraw_man_t *rdman; 45 redraw_man_t *rdman;
48 46
119 * Redirect following function to respective exported version from 117 * Redirect following function to respective exported version from
120 * other modules. Since gen_v8_binding.m4 make all functions static, 118 * other modules. Since gen_v8_binding.m4 make all functions static,
121 * we need a exported version to call them indrectly from other 119 * we need a exported version to call them indrectly from other
122 * modules. 120 * modules.
123 */ 121 */
122 #define xnjsmb_auto_coord_new export_xnjsmb_auto_coord_new
124 #define xnjsmb_auto_path_new export_xnjsmb_auto_path_new 123 #define xnjsmb_auto_path_new export_xnjsmb_auto_path_new
125 #define xnjsmb_auto_stext_new export_xnjsmb_auto_stext_new 124 #define xnjsmb_auto_stext_new export_xnjsmb_auto_stext_new
126 #define xnjsmb_auto_image_new export_xnjsmb_auto_image_new 125 #define xnjsmb_auto_image_new export_xnjsmb_auto_image_new
127 #define xnjsmb_auto_rect_new export_xnjsmb_auto_rect_new 126 #define xnjsmb_auto_rect_new export_xnjsmb_auto_rect_new
128 #define xnjsmb_auto_paint_color_new export_xnjsmb_auto_paint_color_new 127 #define xnjsmb_auto_paint_color_new export_xnjsmb_auto_paint_color_new