summaryrefslogtreecommitdiffstatshomepage
path: root/py/pfenv.c
Commit message (Collapse)AuthorAge
* Fix str.modulo when precision is specified.Dave Hylands2014-06-05
|
* Rename bultins config variables to MICROPY_PY_BUILTINS_*.Damien George2014-06-01
| | | | | | | | | | This renames: MICROPY_PY_FROZENSET -> MICROPY_PY_BUILTINS_FROZENSET MICROPY_PY_PROPERTY -> MICROPY_PY_BUILTINS_PROPERTY MICROPY_PY_SLICE -> MICROPY_PY_BUILTINS_SLICE MICROPY_ENABLE_FLOAT -> MICROPY_PY_BUILTINS_FLOAT See issue #35 for discussion.
* Add license header to (almost) all files.Damien George2014-05-03
| | | | | | | Blanket wide to all .c and .h files. Some files originating from ST are difficult to deal with (license wise) so it was left out of those. Also merged modpyb.h, modos.h, modstm.h and modtime.h in stmhal/.
* py: Fix pfenv_print_strn to return correct number of chars printed.Damien George2014-04-17
| | | | With this fix, all tests in tests/basics pass on pyboard.
* py: Reinstate old pfenv_print_int function for stmhal's printf.Damien George2014-04-08
|
* py: Rename pfenv_print_int to pfenv_print_mp_int, and add back former.Damien George2014-04-08
| | | | | | | | | | | | | | stmhal relies on pfenv_* to implement its printf. Thus, it needs a pfenv_print_int which prints a proper 32-bit integer. With latest change to pfenv, this function became one that took mp_obj_t, and extracted the integer value from that object. To fix temporarily, pfenv_print_int has been renamed to pfenv_print_mp_int (to indicate it takes a mp_obj_t for the int), and pfenv_print_int has been added (which takes a normal C int). Currently, pfenv_print_int proxies to pfenv_print_mp_int, but this means it looses the MSB. Need to find a way to fix this, but the only way I can think of will duplicate lots of code.
* Add string formatting support for longlong and mpz.Dave Hylands2014-04-07
|
* Change pfenv_print_int to take machine_uint_t rather than unsinged inDave Hylands2014-04-05
| | | | | | | With this change, the following works: >>> print('%#x' % 0x1234567890abcdef) 0x1234567890abcdef
* py: Make pfenv.c conform to code conventions.Damien George2014-04-01
|
* Reduce stack usage of pfenv_print_strnDave Hylands2014-04-01
|
* Fix INT_BUF_SIZE to work with 32-bit and 64-bitDave Hylands2014-04-01
|
* Enhance str.format supportDave Hylands2014-04-01
This adds support for almost everything (the comma isn't currently supported). The "unspecified" type with floats also doesn't behave exactly like python. Tested under unix with float and double Spot tested on stmhal