Age | Commit message (Collapse) | Author | |
---|---|---|---|
2014-04-17 | py: Fix pfenv_print_strn to return correct number of chars printed. | Damien George | |
With this fix, all tests in tests/basics pass on pyboard. | |||
2014-04-08 | py: Reinstate old pfenv_print_int function for stmhal's printf. | Damien George | |
2014-04-08 | py: Rename pfenv_print_int to pfenv_print_mp_int, and add back former. | Damien George | |
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. | |||
2014-04-07 | Add string formatting support for longlong and mpz. | Dave Hylands | |
2014-04-05 | Change pfenv_print_int to take machine_uint_t rather than unsinged in | Dave Hylands | |
With this change, the following works: >>> print('%#x' % 0x1234567890abcdef) 0x1234567890abcdef | |||
2014-04-01 | py: Make pfenv.c conform to code conventions. | Damien George | |
2014-04-01 | Reduce stack usage of pfenv_print_strn | Dave Hylands | |
2014-04-01 | Fix INT_BUF_SIZE to work with 32-bit and 64-bit | Dave Hylands | |
2014-04-01 | Enhance str.format support | Dave Hylands | |
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 |