code
stringlengths
1
1.05M
repo_name
stringlengths
6
83
path
stringlengths
3
242
language
stringclasses
222 values
license
stringclasses
20 values
size
int64
1
1.05M
/* * This file is part of the MicroPython 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 * i...
YifuLiu/AliOS-Things
components/py_engine/engine/py/objgetitemiter.c
C
apache-2.0
2,848
/* * This file is part of the MicroPython 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 * i...
YifuLiu/AliOS-Things
components/py_engine/engine/py/objint.c
C
apache-2.0
16,201
/* * This file is part of the MicroPython 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 * i...
YifuLiu/AliOS-Things
components/py_engine/engine/py/objint.h
C
apache-2.0
2,895
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2013, 2014 Damien P. George * Copyright (c) 2014 Paul Sokolovsky * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentatio...
YifuLiu/AliOS-Things
components/py_engine/engine/py/objint_longlong.c
C
apache-2.0
9,560
/* * This file is part of the MicroPython 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 * i...
YifuLiu/AliOS-Things
components/py_engine/engine/py/objint_mpz.c
C
apache-2.0
15,953
/* * This file is part of the MicroPython 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 * i...
YifuLiu/AliOS-Things
components/py_engine/engine/py/objlist.c
C
apache-2.0
20,381
/* * This file is part of the MicroPython 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 * i...
YifuLiu/AliOS-Things
components/py_engine/engine/py/objlist.h
C
apache-2.0
1,550
/* * This file is part of the MicroPython 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 * i...
YifuLiu/AliOS-Things
components/py_engine/engine/py/objmap.c
C
apache-2.0
2,649
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2013-2019 Damien P. George * Copyright (c) 2014-2015 Paul Sokolovsky * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated document...
YifuLiu/AliOS-Things
components/py_engine/engine/py/objmodule.c
C
apache-2.0
11,071
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2013-2019 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...
YifuLiu/AliOS-Things
components/py_engine/engine/py/objmodule.h
C
apache-2.0
1,814
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2013, 2014 Damien P. George * Copyright (c) 2014 Paul Sokolovsky * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentatio...
YifuLiu/AliOS-Things
components/py_engine/engine/py/objnamedtuple.c
C
apache-2.0
7,387
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2014-2017 Paul Sokolovsky * * 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 ...
YifuLiu/AliOS-Things
components/py_engine/engine/py/objnamedtuple.h
C
apache-2.0
1,790
/* * This file is part of the MicroPython 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 * i...
YifuLiu/AliOS-Things
components/py_engine/engine/py/objnone.c
C
apache-2.0
1,904
/* * This file is part of the MicroPython 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 * i...
YifuLiu/AliOS-Things
components/py_engine/engine/py/objobject.c
C
apache-2.0
4,673
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2015 Paul Sokolovsky * * 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 S...
YifuLiu/AliOS-Things
components/py_engine/engine/py/objpolyiter.c
C
apache-2.0
2,111
/* * This file is part of the MicroPython 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 * i...
YifuLiu/AliOS-Things
components/py_engine/engine/py/objproperty.c
C
apache-2.0
4,117
/* * This file is part of the MicroPython 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 * i...
YifuLiu/AliOS-Things
components/py_engine/engine/py/objrange.c
C
apache-2.0
7,579
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 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 ...
YifuLiu/AliOS-Things
components/py_engine/engine/py/objreversed.c
C
apache-2.0
2,926
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2013-2017 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...
YifuLiu/AliOS-Things
components/py_engine/engine/py/objset.c
C
apache-2.0
21,364
/* * This file is part of the MicroPython 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 * i...
YifuLiu/AliOS-Things
components/py_engine/engine/py/objsingleton.c
C
apache-2.0
2,163
/* * This file is part of the MicroPython 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 * i...
YifuLiu/AliOS-Things
components/py_engine/engine/py/objslice.c
C
apache-2.0
5,835
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2013, 2014 Damien P. George * Copyright (c) 2014-2018 Paul Sokolovsky * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documen...
YifuLiu/AliOS-Things
components/py_engine/engine/py/objstr.c
C
apache-2.0
78,604
/* * This file is part of the MicroPython 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 * i...
YifuLiu/AliOS-Things
components/py_engine/engine/py/objstr.h
C
apache-2.0
5,448
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2013, 2014 Damien P. George * Copyright (c) 2014-2017 Paul Sokolovsky * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documen...
YifuLiu/AliOS-Things
components/py_engine/engine/py/objstringio.c
C
apache-2.0
9,465
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2016 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 ...
YifuLiu/AliOS-Things
components/py_engine/engine/py/objstringio.h
C
apache-2.0
1,636
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2013, 2014 Damien P. George * Copyright (c) 2014-2016 Paul Sokolovsky * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documen...
YifuLiu/AliOS-Things
components/py_engine/engine/py/objstrunicode.c
C
apache-2.0
12,397
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2013, 2014 Damien P. George * Copyright (c) 2014-2017 Paul Sokolovsky * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documen...
YifuLiu/AliOS-Things
components/py_engine/engine/py/objtuple.c
C
apache-2.0
10,956
/* * This file is part of the MicroPython 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 * i...
YifuLiu/AliOS-Things
components/py_engine/engine/py/objtuple.h
C
apache-2.0
2,519
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2013-2018 Damien P. George * Copyright (c) 2014-2018 Paul Sokolovsky * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated document...
YifuLiu/AliOS-Things
components/py_engine/engine/py/objtype.c
C
apache-2.0
56,640
/* * This file is part of the MicroPython 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 * i...
YifuLiu/AliOS-Things
components/py_engine/engine/py/objtype.h
C
apache-2.0
2,528
/* * This file is part of the MicroPython 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 * i...
YifuLiu/AliOS-Things
components/py_engine/engine/py/objzip.c
C
apache-2.0
2,688
/* * This file is part of the MicroPython 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 * i...
YifuLiu/AliOS-Things
components/py_engine/engine/py/opmethods.c
C
apache-2.0
2,261
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2020 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 ...
YifuLiu/AliOS-Things
components/py_engine/engine/py/pairheap.c
C
apache-2.0
4,913
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2020 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 ...
YifuLiu/AliOS-Things
components/py_engine/engine/py/pairheap.h
C
apache-2.0
4,077
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2013-2017 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...
YifuLiu/AliOS-Things
components/py_engine/engine/py/parse.c
C
apache-2.0
47,301
/* * This file is part of the MicroPython 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 * i...
YifuLiu/AliOS-Things
components/py_engine/engine/py/parse.h
C
apache-2.0
4,669
/* * This file is part of the MicroPython 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 * i...
YifuLiu/AliOS-Things
components/py_engine/engine/py/parsenum.c
C
apache-2.0
12,122
/* * This file is part of the MicroPython 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 * i...
YifuLiu/AliOS-Things
components/py_engine/engine/py/parsenum.h
C
apache-2.0
1,701
/* * This file is part of the MicroPython 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 * i...
YifuLiu/AliOS-Things
components/py_engine/engine/py/parsenumbase.c
C
apache-2.0
2,405
/* * This file is part of the MicroPython 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 * i...
YifuLiu/AliOS-Things
components/py_engine/engine/py/parsenumbase.h
C
apache-2.0
1,456
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2013-2020 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...
YifuLiu/AliOS-Things
components/py_engine/engine/py/persistentcode.c
C
apache-2.0
28,410
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2013-2016 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...
YifuLiu/AliOS-Things
components/py_engine/engine/py/persistentcode.h
C
apache-2.0
4,380
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) SatoshiLabs * * 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 w...
YifuLiu/AliOS-Things
components/py_engine/engine/py/profile.c
C
apache-2.0
32,090
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) SatoshiLabs * * 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 w...
YifuLiu/AliOS-Things
components/py_engine/engine/py/profile.h
C
apache-2.0
2,943
# CMake fragment for MicroPython core py component set(MICROPY_PY_DIR "${MICROPY_DIR}/py") list(APPEND MICROPY_INC_CORE "${MICROPY_DIR}") # All py/ source files set(MICROPY_SOURCE_PY ${MICROPY_PY_DIR}/argcheck.c ${MICROPY_PY_DIR}/asmarm.c ${MICROPY_PY_DIR}/asmbase.c ${MICROPY_PY_DIR}/asmthumb.c $...
YifuLiu/AliOS-Things
components/py_engine/engine/py/py.cmake
CMake
apache-2.0
4,927
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2017 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 ...
YifuLiu/AliOS-Things
components/py_engine/engine/py/pystack.c
C
apache-2.0
2,137
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2017 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 ...
YifuLiu/AliOS-Things
components/py_engine/engine/py/pystack.h
C
apache-2.0
4,094
/* * This file is part of the MicroPython 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 * i...
YifuLiu/AliOS-Things
components/py_engine/engine/py/qstr.c
C
apache-2.0
16,290
/* * This file is part of the MicroPython 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 * i...
YifuLiu/AliOS-Things
components/py_engine/engine/py/qstr.h
C
apache-2.0
3,175
/* * This file is part of the MicroPython 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 * i...
YifuLiu/AliOS-Things
components/py_engine/engine/py/qstrdefs.h
C
apache-2.0
1,920
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2013-2016 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...
YifuLiu/AliOS-Things
components/py_engine/engine/py/reader.c
C
apache-2.0
4,473
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2013-2016 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...
YifuLiu/AliOS-Things
components/py_engine/engine/py/reader.h
C
apache-2.0
1,995
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2013-2015 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...
YifuLiu/AliOS-Things
components/py_engine/engine/py/repl.c
C
apache-2.0
10,607
/* * This file is part of the MicroPython 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 * i...
YifuLiu/AliOS-Things
components/py_engine/engine/py/repl.h
C
apache-2.0
1,602
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2019 Jim Mussared * * 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 Soft...
YifuLiu/AliOS-Things
components/py_engine/engine/py/ringbuf.c
C
apache-2.0
2,182
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2016 Paul Sokolovsky * * 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 S...
YifuLiu/AliOS-Things
components/py_engine/engine/py/ringbuf.h
C
apache-2.0
2,907
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2013, 2014 Damien P. George * Copyright (c) 2014-2018 Paul Sokolovsky * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documen...
YifuLiu/AliOS-Things
components/py_engine/engine/py/runtime.c
C
apache-2.0
61,759
/* * This file is part of the MicroPython 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 * i...
YifuLiu/AliOS-Things
components/py_engine/engine/py/runtime.h
C
apache-2.0
10,118
/* * This file is part of the MicroPython 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 * i...
YifuLiu/AliOS-Things
components/py_engine/engine/py/runtime0.h
C
apache-2.0
6,149
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2015 Josef Gajdusek * Copyright (c) 2015 Paul Sokolovsky * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files ...
YifuLiu/AliOS-Things
components/py_engine/engine/py/runtime_utils.c
C
apache-2.0
1,985
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2017 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 ...
YifuLiu/AliOS-Things
components/py_engine/engine/py/scheduler.c
C
apache-2.0
15,942
/* * This file is part of the MicroPython 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 * i...
YifuLiu/AliOS-Things
components/py_engine/engine/py/scope.c
C
apache-2.0
5,998
/* * This file is part of the MicroPython 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 * i...
YifuLiu/AliOS-Things
components/py_engine/engine/py/scope.h
C
apache-2.0
3,581
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2013, 2014 Damien P. George * Copyright (c) 2014 Paul Sokolovsky * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentatio...
YifuLiu/AliOS-Things
components/py_engine/engine/py/sequence.c
C
apache-2.0
7,151
/* * This file is part of the MicroPython 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 * i...
YifuLiu/AliOS-Things
components/py_engine/engine/py/showbc.c
C
apache-2.0
18,300
/* * This file is part of the MicroPython 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 * i...
YifuLiu/AliOS-Things
components/py_engine/engine/py/smallint.c
C
apache-2.0
2,689
/* * This file is part of the MicroPython 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 * i...
YifuLiu/AliOS-Things
components/py_engine/engine/py/smallint.h
C
apache-2.0
2,968
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2014 Paul Sokolovsky * * 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 S...
YifuLiu/AliOS-Things
components/py_engine/engine/py/stackctrl.c
C
apache-2.0
1,908
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2014 Paul Sokolovsky * * 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 S...
YifuLiu/AliOS-Things
components/py_engine/engine/py/stackctrl.h
C
apache-2.0
1,697
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2014 Damien P. George * Copyright (c) 2014-2016 Paul Sokolovsky * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation...
YifuLiu/AliOS-Things
components/py_engine/engine/py/stream.c
C
apache-2.0
19,905
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2013, 2014 Damien P. George * Copyright (c) 2014-2016 Paul Sokolovsky * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documen...
YifuLiu/AliOS-Things
components/py_engine/engine/py/stream.h
C
apache-2.0
5,800
/* * This file is part of the MicroPython 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 * i...
YifuLiu/AliOS-Things
components/py_engine/engine/py/unicode.c
C
apache-2.0
5,778
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 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 ...
YifuLiu/AliOS-Things
components/py_engine/engine/py/unicode.h
C
apache-2.0
1,495
# Create a target for all user modules to link against. add_library(usermod INTERFACE) function(usermod_gather_sources SOURCES_VARNAME INCLUDE_DIRECTORIES_VARNAME INCLUDED_VARNAME LIB) if (NOT ${LIB} IN_LIST ${INCLUDED_VARNAME}) list(APPEND ${INCLUDED_VARNAME} ${LIB}) # Gather library sources ...
YifuLiu/AliOS-Things
components/py_engine/engine/py/usermod.cmake
CMake
apache-2.0
2,010
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2013-2019 Damien P. George * Copyright (c) 2014-2015 Paul Sokolovsky * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated document...
YifuLiu/AliOS-Things
components/py_engine/engine/py/vm.c
C
apache-2.0
66,197
/* * This file is part of the MicroPython 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 * i...
YifuLiu/AliOS-Things
components/py_engine/engine/py/vmentrytable.h
C
apache-2.0
6,412
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2013, 2014 Damien P. George * Copyright (c) 2014 Paul Sokolovsky * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentatio...
YifuLiu/AliOS-Things
components/py_engine/engine/py/vstr.c
C
apache-2.0
7,561
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2014 Damien P. George * Copyright (c) 2015-2018 Paul Sokolovsky * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation...
YifuLiu/AliOS-Things
components/py_engine/engine/py/warning.c
C
apache-2.0
1,928
// This file provides a version of __errno() for embedded systems that do not have one. // This function is needed for expressions of the form: &errno static int embed_errno; #if defined(__linux__) int *__errno_location(void) #else int *__errno(void) #endif { return &embed_errno; }
YifuLiu/AliOS-Things
components/py_engine/engine/shared/libc/__errno.c
C
apache-2.0
289
#include <py/runtime.h> NORETURN void abort_(void); NORETURN void abort_(void) { mp_raise_msg(&mp_type_RuntimeError, MP_ERROR_TEXT("abort() called")); }
YifuLiu/AliOS-Things
components/py_engine/engine/shared/libc/abort_.c
C
apache-2.0
159
/* * This file is part of the MicroPython 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 * i...
YifuLiu/AliOS-Things
components/py_engine/engine/shared/libc/printf.c
C
apache-2.0
4,130
/* * This file is part of the MicroPython 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 * i...
YifuLiu/AliOS-Things
components/py_engine/engine/shared/libc/string0.c
C
apache-2.0
6,868
#include <stdio.h> #include "py/lexer.h" #include "memzip.h" mp_import_stat_t mp_import_stat(const char *path) { MEMZIP_FILE_INFO info; if (memzip_stat(path, &info) != MZ_OK) { return MP_IMPORT_STAT_NO_EXIST; } if (info.is_dir) { return MP_IMPORT_STAT_DIR; } return MP_IMPORT_...
YifuLiu/AliOS-Things
components/py_engine/engine/shared/memzip/import.c
C
apache-2.0
333
#include <stdlib.h> #include "py/lexer.h" #include "py/runtime.h" #include "py/mperrno.h" #include "memzip.h" mp_lexer_t *mp_lexer_new_from_file(const char *filename) { void *data; size_t len; if (memzip_locate(filename, &data, &len) != MZ_OK) { mp_raise_OSError(MP_ENOENT); } return mp_l...
YifuLiu/AliOS-Things
components/py_engine/engine/shared/memzip/lexermemzip.c
C
apache-2.0
410
#!/usr/bin/env python # # Takes a directory of files and zips them up (as uncompressed files). # This then gets converted into a C data structure which can be read # like a filesystem at runtime. # # This is somewhat like frozen modules in python, but allows arbitrary files # to be used. from __future__ import print_f...
YifuLiu/AliOS-Things
components/py_engine/engine/shared/memzip/make-memzip.py
Python
apache-2.0
2,521
#include <stdint.h> #include <stdlib.h> #include <string.h> #include "py/mpconfig.h" #include "py/misc.h" #include "memzip.h" extern uint8_t memzip_data[]; const MEMZIP_FILE_HDR *memzip_find_file_header(const char *filename) { const MEMZIP_FILE_HDR *file_hdr = (const MEMZIP_FILE_HDR *)memzip_data; uint8_t *m...
YifuLiu/AliOS-Things
components/py_engine/engine/shared/memzip/memzip.c
C
apache-2.0
3,162
#pragma pack(push, 1) #define MEMZIP_FILE_HEADER_SIGNATURE 0x04034b50 typedef struct { uint32_t signature; uint16_t version; uint16_t flags; uint16_t compression_method; uint16_t last_mod_time; uint16_t last_mod_date; uint32_t crc32; uint32_t compressed_size; ...
YifuLiu/AliOS-Things
components/py_engine/engine/shared/memzip/memzip.h
C
apache-2.0
2,209
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2018-2019 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...
YifuLiu/AliOS-Things
components/py_engine/engine/shared/netutils/dhcpserver.c
C
apache-2.0
9,895
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2018-2019 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...
YifuLiu/AliOS-Things
components/py_engine/engine/shared/netutils/dhcpserver.h
C
apache-2.0
1,840
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2013, 2014 Damien P. George * Copyright (c) 2015 Daniel Campora * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation...
YifuLiu/AliOS-Things
components/py_engine/engine/shared/netutils/netutils.c
C
apache-2.0
3,626
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2013, 2014 Damien P. George * Copyright (c) 2015 Daniel Campora * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation...
YifuLiu/AliOS-Things
components/py_engine/engine/shared/netutils/netutils.h
C
apache-2.0
2,601
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2019 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 ...
YifuLiu/AliOS-Things
components/py_engine/engine/shared/netutils/trace.c
C
apache-2.0
6,968
/* * This file is part of the MicroPython 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 * i...
YifuLiu/AliOS-Things
components/py_engine/engine/shared/readline/readline.c
C
apache-2.0
19,028
/* * This file is part of the MicroPython 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 * i...
YifuLiu/AliOS-Things
components/py_engine/engine/shared/readline/readline.h
C
apache-2.0
1,975
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2019 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 ...
YifuLiu/AliOS-Things
components/py_engine/engine/shared/runtime/gchelper.h
C
apache-2.0
1,848
/* * This file is part of the MicroPython 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 * i...
YifuLiu/AliOS-Things
components/py_engine/engine/shared/runtime/gchelper_generic.c
C
apache-2.0
6,046
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2018 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 ...
YifuLiu/AliOS-Things
components/py_engine/engine/shared/runtime/gchelper_m0.s
Unix Assembly
apache-2.0
1,991
/* * This file is part of the MicroPython 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...
YifuLiu/AliOS-Things
components/py_engine/engine/shared/runtime/gchelper_m3.s
Unix Assembly
apache-2.0
1,894
/* * This file is part of the MicroPython 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 * i...
YifuLiu/AliOS-Things
components/py_engine/engine/shared/runtime/gchelper_native.c
C
apache-2.0
1,817
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2013-2016 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...
YifuLiu/AliOS-Things
components/py_engine/engine/shared/runtime/interrupt_char.c
C
apache-2.0
1,409