35 Commits (d532c55e3b8ee7955bea99fc79ccd74d9a35f757)

Author SHA1 Message Date
Damien George f2040bfc7e py: Rework bytecode and .mpy file format to be mostly static data. 3 years ago
Artyom Skrobov f46a7140f5 py/qstr: Use `const` consistently to avoid a cast. 4 years ago
Artyom Skrobov 18b1ba086c py/qstr: Separate hash and len from string data. 4 years ago
stijn b9a35bebf7 py/qstr.h: Remove QSTR_FROM_STR_STATIC macro. 4 years ago
Jim Mussared 154b4eb354 py: Implement "common word" compression scheme for error messages. 5 years ago
Damien George 69661f3343 all: Reformat C and Python source code with tools/codeformat.py. 5 years ago
Josh Lloyd 7d58a197cf py: Rename MP_QSTR_NULL to MP_QSTRnull to avoid intern collisions. 5 years ago
Damien George a8775aaeb0 py/qstr: Add QSTR_TOTAL() macro to get number of qstrs. 7 years ago
Damien George 487dbdb267 py/compile: Use alloca instead of qstr_build when compiling import name. 7 years ago
Alexander Steffen 55f33240f3 all: Use the name MicroPython consistently in comments 7 years ago
Alexander Steffen 299bc62586 all: Unify header guard usage. 7 years ago
Paul Sokolovsky f469c76442 py: Rename __QSTR_EXTRACT flag to NO_QSTR. 9 years ago
Paul Sokolovsky c618f91e22 py: Rework QSTR extraction to work in simple and obvious way. 9 years ago
Damien George 0a2e9650f5 py: Add ability to have frozen persistent bytecode from .mpy files. 9 years ago
Damien George 6e2fb56d40 py/qstr: Change type of qstr from mp_uint_t to size_t. 9 years ago
Damien George 257848587f py/qstr: Use size_t instead of mp_uint_t when counting allocated bytes. 9 years ago
Damien George c3f64d9799 py: Change qstr_* functions to use size_t as the type for str len arg. 9 years ago
Damien George 4dea922610 py: Adjust some spaces in code style/format, purely for consistency. 10 years ago
Damien George 2801e6fad8 py: Some trivial cosmetic changes, for code style consistency. 10 years ago
Damien George ea0461dcd3 py: Add option to micropython.qstr_info() to dump actual qstrs. 10 years ago
Damien George 6942f80a8f py: Add qstr cfg capability; generate QSTR_NULL and QSTR_ from script. 10 years ago
Damien George b4b10fd350 py: Put all global state together in state structures. 10 years ago
Damien George 9ddbe291c4 py: Add include guards to mpconfig,misc,qstr,obj,runtime,parsehelper. 10 years ago
Damien George 39dc145478 py: Change [u]int to mp_[u]int_t in qstr.[ch], and some other places. 10 years ago
Damien George 40f3c02682 Rename machine_(u)int_t to mp_(u)int_t. 11 years ago
Chris Angelico 29bf7393c1 Correct file reference (there's no qstrraw.h) 11 years ago
Damien George 2617eebf2f Change const byte* to const char* where sensible. 11 years ago
Damien George 04b9147e15 Add license header to (almost) all files. 11 years ago
Damien George d553be5982 build: Simplify build directory layout by putting all headers in genhdr. 11 years ago
Andrew Scheller 70a7d7a943 build directory can now be renamed 11 years ago
Damien George 2813cb6043 py: Add 'static' to inline function MP_BOOL; remove category_t. 11 years ago
Damien George 4d5b28cd08 Add qstr_info() function and bindings for unix port. 11 years ago
Dave Hylands c89c681a9f Rework makefiles. Add proper dependency checking. 11 years ago
Damien George 5fa93b6755 Second stage of qstr revamp: uPy str object can be qstr or not. 11 years ago
Damien George 55baff4c9b Revamp qstrs: they now include length and hash. 11 years ago