builtin.h 4 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 * This file is part of the Micro Python project, http://micropython.org/
 *
 * The MIT License (MIT)
 *
 * Copyright (c) 2013, 2014 Damien P. George
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */

27
28
mp_obj_t mp_builtin___import__(mp_uint_t n_args, mp_obj_t *args);
mp_obj_t mp_builtin_open(mp_uint_t n_args, const mp_obj_t *args);
29

Damien George's avatar
Damien George committed
30
MP_DECLARE_CONST_FUN_OBJ(mp_builtin___build_class___obj);
31
MP_DECLARE_CONST_FUN_OBJ(mp_builtin___import___obj);
32
33
34
35
MP_DECLARE_CONST_FUN_OBJ(mp_builtin___repl_print___obj);
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_abs_obj);
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_all_obj);
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_any_obj);
36
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_bin_obj);
37
38
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_callable_obj);
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_chr_obj);
39
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_dir_obj);
40
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_divmod_obj);
Damien George's avatar
Damien George committed
41
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_eval_obj);
Damien George's avatar
Damien George committed
42
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_exec_obj);
43
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_getattr_obj);
44
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_globals_obj);
45
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_hasattr_obj);
46
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_hash_obj);
Damien George's avatar
Damien George committed
47
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_hex_obj);
48
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_id_obj);
49
50
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_isinstance_obj);
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_issubclass_obj);
51
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_iter_obj);
52
53
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_len_obj);
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_list_obj);
54
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_locals_obj);
55
56
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_max_obj);
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_min_obj);
57
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_next_obj);
58
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_oct_obj);
59
60
61
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_ord_obj);
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_pow_obj);
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_print_obj);
Damien George's avatar
Damien George committed
62
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_repr_obj);
John R. Lenton's avatar
sorted    
John R. Lenton committed
63
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_sorted_obj);
64
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_sum_obj);
65

66
67
MP_DECLARE_CONST_FUN_OBJ(mp_namedtuple_obj);

68
69
MP_DECLARE_CONST_FUN_OBJ(mp_op_contains_obj);
MP_DECLARE_CONST_FUN_OBJ(mp_op_getitem_obj);
Paul Sokolovsky's avatar
Paul Sokolovsky committed
70
MP_DECLARE_CONST_FUN_OBJ(mp_op_setitem_obj);
Paul Sokolovsky's avatar
Paul Sokolovsky committed
71
MP_DECLARE_CONST_FUN_OBJ(mp_op_delitem_obj);
72

73
extern const mp_obj_module_t mp_module___main__;
74
75
extern const mp_obj_module_t mp_module_array;
extern const mp_obj_module_t mp_module_collections;
Paul Sokolovsky's avatar
Paul Sokolovsky committed
76
extern const mp_obj_module_t mp_module_io;
77
extern const mp_obj_module_t mp_module_math;
78
extern const mp_obj_module_t mp_module_cmath;
79
extern const mp_obj_module_t mp_module_micropython;
80
extern const mp_obj_module_t mp_module_struct;
81
extern const mp_obj_module_t mp_module_sys;
82
extern const mp_obj_module_t mp_module_gc;
83

84
85
86
87
88
struct _dummy_t;
extern struct _dummy_t mp_sys_stdin_obj;
extern struct _dummy_t mp_sys_stdout_obj;
extern struct _dummy_t mp_sys_stderr_obj;

89
90
// extmod modules
extern const mp_obj_module_t mp_module_uctypes;
91
extern const mp_obj_module_t mp_module_uzlib;
92
extern const mp_obj_module_t mp_module_ujson;
93
extern const mp_obj_module_t mp_module_ure;