59 Commits (d2e33fe3096eec60d7017b0f17c4ddb6910a4d0b)

Author SHA1 Message Date
Angus Gratton decf8e6a8b all: Remove the "STATIC" macro and just use "static" instead. 8 months ago
David Lechner 8cf9898dd3 py/parsenum: Fix typo in #endif comment. 1 year ago
Jim Mussared 3a910b1565 py/objstr: Optimise mp_obj_new_str_from_vstr for known-safe strings. 2 years ago
Jim Mussared 8a0ee5a5c0 py/objstr: Split mp_obj_str_from_vstr into bytes/str versions. 2 years ago
Dan Ellis 6cd2e41918 py/parsenum: Ensure that trailing zeros lead to identical results. 2 years ago
Damien George 627ba38154 py/parsenum: Optimise when building with complex disabled. 2 years ago
Damien George 61ce260ff7 py/parsenum: Fix parsing of complex "j" and also "nanj", "infj". 2 years ago
Jim Mussared 0172292762 py/parsenum: Support parsing complex numbers of the form "a+bj". 3 years ago
Damien George d4b706c4d0 py: Add option to compile without any error messages at all. 4 years ago
stijn 0ba68f8a1d all: Fix implicit floating point promotion. 5 years ago
stijn b909e8b2dd Revert "all: Fix implicit casts of float/double, and signed comparison." 5 years ago
Jim Mussared def76fe4d9 all: Use MP_ERROR_TEXT for all error messages. 5 years ago
Jim Mussared a9a745e4b4 py: Use preprocessor to detect error reporting level (terse/detailed). 5 years ago
David Lechner a2110bd3fc all: Fix implicit casts of float/double, and signed comparison. 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
Romain Goyet b768cc6ca8 py/parsenum: Avoid rounding errors with negative powers-of-10. 6 years ago
Damien George 6a445b60fa py/lexer: Add support for underscores in numeric literals. 7 years ago
Damien George f2ec792554 py/parsenum: Adjust braces so they are balanced. 7 years ago
Jeff Epler 4f71a2a75a py/parsenum: Avoid undefined behavior parsing floats with large exponents. 7 years ago
Damien George 5efc575067 py/parsenum: Use int instead of mp_int_t for parsing float exponent. 7 years ago
Damien George b75cb8392b py/parsenum: Fix parsing of floats that are close to subnormal. 7 years ago
Damien George 84895f1a21 py/parsenum: Improve parsing of floating point numbers. 7 years ago
Alexander Steffen 55f33240f3 all: Use the name MicroPython consistently in comments 7 years ago
Damien George 94c41bb06f py: Use mp_raise_TypeError/mp_raise_ValueError helpers where possible. 8 years ago
Damien George ca7af9a778 py/parsenum: Fix warning for signed/unsigned comparison. 8 years ago
Damien George c2dd494bd9 py/parsenum: Simplify and generalise decoding of digit values. 8 years ago
Damien George 561844f3ba py: Add MICROPY_FLOAT_CONST macro for defining float constants. 8 years ago
Damien George 7d0d7215d2 py: Use mp_raise_msg helper function where appropriate. 8 years ago
Damien George 2599672384 py/parsenum: Use pow function to apply exponent to decimal number. 9 years ago
Damien George 06b398489e py/parsenum: Fix compiler warnings for no decl and signed comparison. 9 years ago
Damien George dddb98db8b py/parsenum: Use size_t to count bytes, and int for type of base arg. 9 years ago
Damien George 999cedb90f py: Wrap all obj-ptr conversions in MP_OBJ_TO_PTR/MP_OBJ_FROM_PTR. 9 years ago
Damien George 5f3c3ec5e6 py/parsenum: Provide detailed error for int parsing with escaped bytes. 9 years ago
Damien George 2a1090a637 py: Clarify comment in parsenum.c about ValueError vs SyntaxError. 10 years ago
Daniel Campora 228c68a9cd py: Change exception type to ValueError when error reporting is terse. 10 years ago
Damien George 0ec8cf8e80 py/parsenum.c: Rename "raise" func to "raise_exc" to avoid name clash. 10 years ago
Damien George d4bd37a561 py: Fix printing of error message when parsing malformed integer. 10 years ago
Damien George 7d414a1b52 py: Parse big-int/float/imag constants directly in parser. 10 years ago
Damien George 51dfcb4bb7 py: Move to guarded includes, everywhere in py/ core. 10 years ago
Damien George 1e9a92f84f py: Use shorter, static error msgs when ERROR_REPORTING_TERSE enabled. 10 years ago
Damien George 381618269a parser: Convert (u)int to mp_(u)int_t. 11 years ago
Damien George 40f3c02682 Rename machine_(u)int_t to mp_(u)int_t. 11 years ago
Paul Sokolovsky 59c675a64c py: Include mpconfig.h before all other includes. 11 years ago
Paul Sokolovsky 3b6f7b95eb py: Separate MICROPY_PY_BUILTINS_COMPLEX from MICROPY_PY_BUILTINS_FLOAT. 11 years ago
Paul Sokolovsky 0294661da5 parsenum: Signedness issues. 11 years ago
Damien George fb510b3bf9 Rename bultins config variables to MICROPY_PY_BUILTINS_*. 11 years ago
Damien George d1e355ea8e py: Fix check of small-int overflow when parsing ints. 11 years ago
Damien George 503d611033 py: Implement long int parsing in int(...). 11 years ago
Damien George 04b9147e15 Add license header to (almost) all files. 11 years ago