Home
last modified time | relevance | path

Searched refs:fun (Results 1 – 25 of 38) sorted by relevance

12

/AliOS-Things-master/components/cplusplus/example/cpp_aos/
A Dbasic_test.cpp18 virtual void fun() { cout << "A class fun." << endl; } in fun() function in A
27 void fun() { cout << "B class fun." << endl; } in fun() function in B
47 pa->fun(); in class_ploy_test()
50 pb->fun(); in class_ploy_test()
53 pc->fun(); in class_ploy_test()
/AliOS-Things-master/components/py_engine/engine/py/
A Dobjclosure.c34 mp_obj_t fun; member
50 return mp_call_function_n_kw(self->fun, self->n_closed + n_args, n_kw, args2); in closure_call()
56 mp_obj_t res = mp_call_function_n_kw(self->fun, self->n_closed + n_args, n_kw, args2); in closure_call()
67 mp_obj_print_helper(print, o->fun, PRINT_REPR); in closure_print()
91 mp_obj_t mp_obj_new_closure(mp_obj_t fun, size_t n_closed_over, const mp_obj_t *closed) { in mp_obj_new_closure() argument
94 o->fun = fun; in mp_obj_new_closure()
A Druntime_utils.c30 mp_obj_t mp_call_function_1_protected(mp_obj_t fun, mp_obj_t arg) { in mp_call_function_1_protected() argument
33 mp_obj_t ret = mp_call_function_1(fun, arg); in mp_call_function_1_protected()
42 mp_obj_t mp_call_function_2_protected(mp_obj_t fun, mp_obj_t arg1, mp_obj_t arg2) { in mp_call_function_2_protected() argument
45 mp_obj_t ret = mp_call_function_2(fun, arg1, arg2); in mp_call_function_2_protected()
A Demitglue.c184 mp_obj_t fun; in mp_make_function_from_raw_code() local
189 fun = mp_obj_new_fun_native(def_args, def_kw_args, rc->fun_data, rc->const_table); in mp_make_function_from_raw_code()
192 ((mp_obj_base_t *)MP_OBJ_TO_PTR(fun))->type = &mp_type_native_gen_wrap; in mp_make_function_from_raw_code()
198 fun = mp_obj_new_fun_asm(rc->n_pos_args, rc->fun_data, rc->type_sig); in mp_make_function_from_raw_code()
204 fun = mp_obj_new_fun_bc(def_args, def_kw_args, rc->fun_data, rc->const_table); in mp_make_function_from_raw_code()
207 ((mp_obj_base_t *)MP_OBJ_TO_PTR(fun))->type = &mp_type_gen_wrap; in mp_make_function_from_raw_code()
211 mp_obj_fun_bc_t *self_fun = (mp_obj_fun_bc_t *)MP_OBJ_TO_PTR(fun); in mp_make_function_from_raw_code()
218 return fun; in mp_make_function_from_raw_code()
A Dobjfun.c56 return self->fun._0(); in fun_builtin_0_call()
71 return self->fun._1(args[0]); in fun_builtin_1_call()
86 return self->fun._2(args[0], args[1]); in fun_builtin_2_call()
101 return self->fun._3(args[0], args[1], args[2]); in fun_builtin_3_call()
126 return self->fun.kw(n_args, args, &kw_args); in fun_builtin_var_call()
131 return self->fun.var(n_args, args); in fun_builtin_var_call()
162 if (fun->base.type == &mp_type_fun_native || fun->base.type == &mp_type_native_gen_wrap) { in mp_obj_fun_get_name()
168 const byte *bc = fun->bytecode; in mp_obj_fun_get_name()
415 return fun(self_in, n_args, n_kw, args); in fun_native_call()
505 ret = ((inline_asm_fun_0_t)fun)(); in fun_asm_call()
[all …]
A Dobjfilter.c33 mp_obj_t fun; member
41 o->fun = args[0]; in filter_make_new()
52 if (self->fun != mp_const_none) { in filter_iternext()
53 val = mp_call_function_n_kw(self->fun, 1, 0, &next); in filter_iternext()
A Dobjmap.c35 mp_obj_t fun; member
44 o->fun = args[0]; in map_make_new()
64 return mp_call_function_n_kw(self->fun, self->n_iters, 0, nextses); in map_iternext()
A Druntime.h115 mp_obj_t mp_call_function_0(mp_obj_t fun);
116 mp_obj_t mp_call_function_1(mp_obj_t fun, mp_obj_t arg);
117 mp_obj_t mp_call_function_2(mp_obj_t fun, mp_obj_t arg1, mp_obj_t arg2);
118 mp_obj_t mp_call_function_n_kw(mp_obj_t fun, size_t n_args, size_t n_kw, const mp_obj_t *args);
124 mp_obj_t mp_call_function_1_protected(mp_obj_t fun, mp_obj_t arg);
125 mp_obj_t mp_call_function_2_protected(mp_obj_t fun, mp_obj_t arg1, mp_obj_t arg2);
128 mp_obj_t fun; member
A Druntime.c628 mp_obj_t mp_call_function_0(mp_obj_t fun) { in mp_call_function_0() argument
629 return mp_call_function_n_kw(fun, 0, 0, NULL); in mp_call_function_0()
632 mp_obj_t mp_call_function_1(mp_obj_t fun, mp_obj_t arg) { in mp_call_function_1() argument
633 return mp_call_function_n_kw(fun, 1, 0, &arg); in mp_call_function_1()
636 mp_obj_t mp_call_function_2(mp_obj_t fun, mp_obj_t arg1, mp_obj_t arg2) { in mp_call_function_2() argument
640 return mp_call_function_n_kw(fun, 2, 0, args); in mp_call_function_2()
679 mp_obj_t fun = *args++; in mp_call_prepare_args_n_kw_var() local
838 out_args->fun = fun; in mp_call_prepare_args_n_kw_var()
984 mp_obj_t fun; member
1000 return mp_call_function_n_kw(self->fun, n_args, n_kw, args); in checked_fun_call()
[all …]
A Dobj.h334 {{&mp_type_fun_builtin_0}, .fun._0 = fun_name}
337 {{&mp_type_fun_builtin_1}, .fun._1 = fun_name}
340 {{&mp_type_fun_builtin_2}, .fun._2 = fun_name}
343 {{&mp_type_fun_builtin_3}, .fun._3 = fun_name}
756 mp_obj_t mp_obj_new_gen_wrap(mp_obj_t fun);
757 mp_obj_t mp_obj_new_closure(mp_obj_t fun, size_t n_closed, const mp_obj_t *closed);
951 } fun; member
960 } fun; member
963 qstr mp_obj_fun_get_name(mp_const_obj_t fun);
985 mp_obj_t fun; member
[all …]
A Dmodthread.c151 mp_obj_t fun; member
196 mp_call_function_n_kw(args->fun, args->n_args, args->n_kw, args->args); in thread_entry()
207 mp_obj_print_helper(MICROPY_ERROR_PRINTER, args->fun, PRINT_REPR); in thread_entry()
269 th_args->fun = args[0]; in mod_thread_start_new_thread()
/AliOS-Things-master/components/py_engine/tests/esp32/
A Dcheck_err_str.py17 fun = p.set_boot variable
19 fun(part)
28 fun(part)
39 fun(part)
/AliOS-Things-master/components/drivers/external_device/pca9544/
A DREADME.md51 * @fun pca9544_init
60 * @fun pca9544_deinit
68 * @fun pca9544_set_chan
76 * @fun pca9544_clean_chan
84 * @fun pca9544_read_chan
92 * @fun pca9544_write_reg
101 * @fun pca9544_read_reg
110 * @fun pca9544_raw_data_write
125 * @fun pca9544_raw_data_read
/AliOS-Things-master/components/py_engine/tests/float/
A Dmath_fun_intbig.py9 for fun in (math.ceil, math.floor, math.trunc):
11 print("%.3g" % fun(x))
A Dmath_factorial_intbig.py10 for fun in (math.factorial,):
13 print("%d" % fun(x))
A Dmath_fun_int.py9 for fun in (math.ceil, math.floor, math.trunc):
12 print(fun(x))
/AliOS-Things-master/components/py_engine/tests/basics/
A Dfun3.py3 def fun(a, b, c, d, e, f, g): function
6 print(fun(1, 2, 3, 4, 5, 6, 7))
/AliOS-Things-master/components/py_engine/tests/unix/
A Dffi_float2.py30 for fun in (tgammaf,):
32 print("%.6f" % fun(val))
A Dffi_float.py38 for fun in (tgamma,):
40 print("%.6f" % fun(val))
/AliOS-Things-master/components/linkkit/external/nghttp2/
A Dnghttp2_pq.h114 void nghttp2_pq_update(nghttp2_pq *pq, nghttp2_pq_item_cb fun, void *arg);
123 int nghttp2_pq_each(nghttp2_pq *pq, nghttp2_pq_item_cb fun, void *arg);
A Dnghttp2_pq.c171 void nghttp2_pq_update(nghttp2_pq *pq, nghttp2_pq_item_cb fun, void *arg) in nghttp2_pq_update() argument
179 rv |= (*fun)(pq->q[i], arg); in nghttp2_pq_update()
188 int nghttp2_pq_each(nghttp2_pq *pq, nghttp2_pq_item_cb fun, void *arg) in nghttp2_pq_each() argument
196 if ((*fun)(pq->q[i], arg)) { in nghttp2_pq_each()
/AliOS-Things-master/components/posix/src/
A Dpthread_tsd.c23 void (*fun)(void *); member
58 if (pthread_key_list_s_c->head.fun != NULL) { in pthread_tsd_dtors()
59 pthread_key_list_s_c->head.fun((void *)key_value_s_cur->key_value.value); in pthread_tsd_dtors()
93 pthread_key_list_head.head.fun = destructor; in pthread_key_create()
117 pthread_key_list_s_c->head.fun = destructor; in pthread_key_create()
/AliOS-Things-master/components/drivers/external_device/rx8130ce/
A DREADME.md47 * @fun rx8130ce_init
55 * @fun rx8130ce_set_time
63 * @fun rx8130ce_get_time
/AliOS-Things-master/hardware/chip/rtl872xd/hal/hal_test/include/
A Dyunit.h17 #define AOS_EXPORT(ret, fun, ...) argument
21 #define AOS_COMPONENT_INIT(fun, ...) argument
25 #define AOS_TESTCASE(fun, ...) argument
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/utils/systimer/
A Dmodule_systimer.c41 JSValue fun = t->js_cb_ref; in timer_action() local
51 fun = JS_DupValue(ctx, t->js_cb_ref); in timer_action()
55 JSValue val = JS_Call(ctx, fun, JS_UNDEFINED, 1, &value); in timer_action()

Completed in 34 milliseconds

12