Damien George
f9dc644017
extmod: When including extmod headers, prefix path with extmod/.
9 years ago
Damien George
4b72b3a133
py: Change type signature of builtin funs that take variable or kw args.
With this patch the n_args parameter is changed type from mp_uint_t to
size_t.
9 years ago
Paul Sokolovsky
7203b58e87
extmod/modubinascii: Add "separator" argument to hexlify().
This is extension to CPython, it allows to easily produce human-readable
hex dump:
>>> ubinascii.hexlify(b"\xaa\x55\xaa\x55", b" ")
b'aa 55 aa 55'
9 years ago
Damien George
cbf7674025
py: Add MP_ROM_* macros and mp_rom_* types and use them.
9 years ago
Damien George
722d4842df
extmod/modubinascii: Re-use error string to reduce code size.
Drops Thumb2 arch size by 24 bytes.
9 years ago
Paul Sokolovsky
7370fd5560
ubinascii: Fix a shadowed variable case.
9 years ago
Paul Sokolovsky
e284a95cc3
ubinascii: b2a_base64: Optimize away a modulo operation.
9 years ago
Galen Hazelwood
616986a5f3
extmod: Add a2b_base64 and b2a_base64 functions to ubinascii.
9 years ago
Daniel Campora
0f716aced7
extmod: Expose mod_binascii_hexlify() and mod_binascii_unhexlify().
10 years ago
Dave Hylands
3ad94d6072
extmod: Add ubinascii.unhexlify
This also pulls out hex_digit from py/lexer.c and makes unichar_hex_digit
10 years ago
Damien George
05005f679e
py: Remove mp_obj_str_builder and use vstr instead.
With this patch str/bytes construction is streamlined. Always use a
vstr to build a str/bytes object. If the size is known beforehand then
use vstr_init_len to allocate only required memory. Otherwise use
vstr_init and the vstr will grow as needed. Then use
mp_obj_new_str_from_vstr to create a str/bytes object using the vstr
memory.
Saves code ROM: 68 bytes on stmhal, 108 bytes on bare-arm, and 336 bytes
on unix x64.
10 years ago
Damien George
ff8dd3f486
py, unix: Allow to compile with -Wunused-parameter.
See issue #699 .
10 years ago
Damien George
3765ea419a
extmod: Prefix py/ for includes from py core directory.
10 years ago
Damien George
3b603f29ec
Use MP_DEFINE_CONST_DICT macro to define module dicts.
This is just a clean-up of the code. Generated code is exactly the
same.
10 years ago
Paul Sokolovsky
bfdc205934
modubinascii: Add, with hexlify() implementation.
10 years ago