comparison nodejs/mbfly_njs.cc @ 822:586e50f82c1f

Unify coding style tag for emacs and vim.
author Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
date Tue, 14 Sep 2010 01:08:39 +0800
parents 61c217f8cec8
children c18058fb48ee
comparison
equal deleted inserted replaced
821:bfdc82bbd6e4 822:586e50f82c1f
1 // -*- indent-tabs-mode: t; tab-width: 8; c-basic-offset: 4; -*-
2 // vim: sw=4:ts=8:sts=4
1 #include <stdio.h> 3 #include <stdio.h>
2 #include <string.h> 4 #include <string.h>
3 #include <v8.h> 5 #include <v8.h>
4 6
5 extern "C" { 7 extern "C" {
68 * it is wrapped after returning of 70 * it is wrapped after returning of
69 * this function. So, we wrap it 71 * this function. So, we wrap it
70 * here. */ 72 * here. */
71 X_njs_MB_init_handle_connection(obj); 73 X_njs_MB_init_handle_connection(obj);
72 xnjsmb_coord_mkroot(self); 74 xnjsmb_coord_mkroot(self);
73 75
74 subject = X_njs_MB_kbevents(obj); 76 subject = X_njs_MB_kbevents(obj);
75 subject_o = export_xnjsmb_auto_subject_new(subject); 77 subject_o = export_xnjsmb_auto_subject_new(subject);
76 SET(self, "kbevents", subject_o); 78 SET(self, "kbevents", subject_o);
77 79
78 return obj; 80 return obj;
110 njs_runtime_t *rt; 112 njs_runtime_t *rt;
111 redraw_man_t *rdman; 113 redraw_man_t *rdman;
112 114
113 rt = (njs_runtime_t *)UNWRAP(mbrt); 115 rt = (njs_runtime_t *)UNWRAP(mbrt);
114 rdman = X_njs_MB_rdman(rt); 116 rdman = X_njs_MB_rdman(rt);
115 117
116 return rdman; 118 return rdman;
117 } 119 }
118 120
119 Handle<Value> 121 Handle<Value>
120 hello_func(const Arguments &args) { 122 hello_func(const Arguments &args) {
143 xnjsmb_shapes_init_mb_rt_temp(xnjsmb_auto_mb_rt_temp); 145 xnjsmb_shapes_init_mb_rt_temp(xnjsmb_auto_mb_rt_temp);
144 xnjsmb_paints_init_mb_rt_temp(xnjsmb_auto_mb_rt_temp); 146 xnjsmb_paints_init_mb_rt_temp(xnjsmb_auto_mb_rt_temp);
145 xnjsmb_font_init_mb_rt_temp(xnjsmb_auto_mb_rt_temp); 147 xnjsmb_font_init_mb_rt_temp(xnjsmb_auto_mb_rt_temp);
146 xnjsmb_img_ldr_init_mb_rt_temp(target); 148 xnjsmb_img_ldr_init_mb_rt_temp(target);
147 xnjsmb_observer_init(); 149 xnjsmb_observer_init();
148 150
149 target->Set(String::New("mb_rt"), 151 target->Set(String::New("mb_rt"),
150 xnjsmb_auto_mb_rt_temp->GetFunction()); 152 xnjsmb_auto_mb_rt_temp->GetFunction());
151 } 153 }
152 154
153 /* @} */ 155 /* @} */