2014-05-04 06:27:38 +08:00
|
|
|
/*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
2014-03-24 18:47:13 +08:00
|
|
|
mp_obj_t mp_builtin___import__(uint n_args, mp_obj_t *args);
|
2014-05-25 02:24:37 +08:00
|
|
|
mp_obj_t mp_builtin_open(uint n_args, const mp_obj_t *args);
|
2013-12-22 02:17:45 +08:00
|
|
|
|
2014-01-08 19:47:55 +08:00
|
|
|
MP_DECLARE_CONST_FUN_OBJ(mp_builtin___build_class___obj);
|
2014-02-04 06:46:17 +08:00
|
|
|
MP_DECLARE_CONST_FUN_OBJ(mp_builtin___import___obj);
|
2014-01-14 03:39:01 +08:00
|
|
|
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);
|
2014-04-16 05:03:55 +08:00
|
|
|
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_bin_obj);
|
2014-01-14 03:39:01 +08:00
|
|
|
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_callable_obj);
|
|
|
|
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_chr_obj);
|
2014-02-03 06:07:44 +08:00
|
|
|
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_dir_obj);
|
2014-01-14 03:39:01 +08:00
|
|
|
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_divmod_obj);
|
2014-01-16 06:14:03 +08:00
|
|
|
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_eval_obj);
|
2014-02-04 06:44:10 +08:00
|
|
|
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_exec_obj);
|
2014-03-27 05:35:13 +08:00
|
|
|
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_getattr_obj);
|
2014-04-06 06:00:46 +08:00
|
|
|
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_globals_obj);
|
2014-05-12 00:05:42 +08:00
|
|
|
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_hasattr_obj);
|
2013-12-22 02:17:45 +08:00
|
|
|
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_hash_obj);
|
2014-04-15 19:42:52 +08:00
|
|
|
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_hex_obj);
|
2014-02-02 11:00:41 +08:00
|
|
|
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_id_obj);
|
2014-01-10 05:43:51 +08:00
|
|
|
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_isinstance_obj);
|
|
|
|
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_issubclass_obj);
|
2013-12-22 02:17:45 +08:00
|
|
|
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_iter_obj);
|
2014-01-14 03:39:01 +08:00
|
|
|
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_len_obj);
|
|
|
|
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_list_obj);
|
2014-04-06 06:00:46 +08:00
|
|
|
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_locals_obj);
|
2014-01-14 03:39:01 +08:00
|
|
|
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_max_obj);
|
|
|
|
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_min_obj);
|
2013-12-22 02:17:45 +08:00
|
|
|
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_next_obj);
|
2014-04-16 05:03:55 +08:00
|
|
|
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_oct_obj);
|
2014-01-14 03:39:01 +08:00
|
|
|
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);
|
2014-01-16 05:40:48 +08:00
|
|
|
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_repr_obj);
|
2014-01-13 13:12:50 +08:00
|
|
|
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_sorted_obj);
|
2014-01-14 03:39:01 +08:00
|
|
|
MP_DECLARE_CONST_FUN_OBJ(mp_builtin_sum_obj);
|
2014-01-20 07:53:15 +08:00
|
|
|
|
2014-02-28 04:22:04 +08:00
|
|
|
MP_DECLARE_CONST_FUN_OBJ(mp_namedtuple_obj);
|
|
|
|
|
2014-04-13 16:53:15 +08:00
|
|
|
MP_DECLARE_CONST_FUN_OBJ(mp_op_contains_obj);
|
|
|
|
MP_DECLARE_CONST_FUN_OBJ(mp_op_getitem_obj);
|
2014-04-14 04:41:49 +08:00
|
|
|
MP_DECLARE_CONST_FUN_OBJ(mp_op_setitem_obj);
|
2014-04-14 04:55:59 +08:00
|
|
|
MP_DECLARE_CONST_FUN_OBJ(mp_op_delitem_obj);
|
2014-04-13 16:53:15 +08:00
|
|
|
|
2014-04-05 01:08:21 +08:00
|
|
|
extern const mp_obj_module_t mp_module___main__;
|
2014-03-25 22:18:18 +08:00
|
|
|
extern const mp_obj_module_t mp_module_array;
|
|
|
|
extern const mp_obj_module_t mp_module_collections;
|
2014-04-03 19:57:53 +08:00
|
|
|
extern const mp_obj_module_t mp_module_io;
|
2014-03-08 23:24:39 +08:00
|
|
|
extern const mp_obj_module_t mp_module_math;
|
2014-04-18 00:11:03 +08:00
|
|
|
extern const mp_obj_module_t mp_module_cmath;
|
2014-03-08 23:24:39 +08:00
|
|
|
extern const mp_obj_module_t mp_module_micropython;
|
2014-04-10 08:45:38 +08:00
|
|
|
extern const mp_obj_module_t mp_module_struct;
|
2014-04-13 11:43:18 +08:00
|
|
|
extern const mp_obj_module_t mp_module_sys;
|
2014-05-06 07:16:43 +08:00
|
|
|
extern const mp_obj_module_t mp_module_gc;
|
2014-06-28 08:03:47 +08:00
|
|
|
|
2014-07-14 04:07:42 +08:00
|
|
|
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;
|
|
|
|
|
2014-06-28 08:03:47 +08:00
|
|
|
// extmod modules
|
|
|
|
extern const mp_obj_module_t mp_module_uctypes;
|