summaryrefslogtreecommitdiffstatshomepage
path: root/py/parsenumbase.h
Commit message (Collapse)AuthorAge
* py/parsenum: Use size_t to count bytes, and int for type of base arg.Damien George2016-03-14
| | | | | size_t is the proper type to count number of bytes in a string. The base argument does not need to be a full mp_uint_t, int is enough.
* py: Move to guarded includes, everywhere in py/ core.Damien George2015-01-01
| | | | Addresses issue #1022.
* parser: Convert (u)int to mp_(u)int_t.Damien George2014-07-03
|
* 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: Implement bit-shift and not operations for mpz.Damien George2014-03-01
Implement not, shl and shr in mpz library. Add function to create mpzs on the stack, used for memory efficiency when rhs is a small int. Factor out code to parse base-prefix of number into a dedicated function.