diff options
| author | Damien George <damien.p.george@gmail.com> | 2013-12-30 12:08:18 +0000 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2013-12-30 12:08:18 +0000 |
| commit | cd340c44c28e2b07513fbe4d921a7eccca2dcd7a (patch) | |
| tree | b3851d4e7b1a51cf2ee03f8b375a78d183aabf60 /py/showbc.c | |
| parent | 046147dcd52ec8b8195ab1c1ff20fb1e7f510dda (diff) | |
| parent | e85c38992da1f62fc07ee8e203ea98a221857b59 (diff) | |
Merge branch 'cross-plat' of https://github.com/pfalcon/micropython into pfalcon-cross-plat
Diffstat (limited to 'py/showbc.c')
| -rw-r--r-- | py/showbc.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/py/showbc.c b/py/showbc.c index 480dc1c8c..600d49796 100644 --- a/py/showbc.c +++ b/py/showbc.c @@ -70,7 +70,7 @@ void mp_show_byte_code(const byte *ip, int len) { case MP_BC_LOAD_FAST_N: DECODE_UINT; - printf("LOAD_FAST_N %lu", unum); + printf("LOAD_FAST_N " UINT_FMT, unum); break; case MP_BC_LOAD_NAME: @@ -111,7 +111,7 @@ void mp_show_byte_code(const byte *ip, int len) { case MP_BC_STORE_FAST_N: DECODE_UINT; - printf("STORE_FAST_N %lu", unum); + printf("STORE_FAST_N " UINT_FMT, unum); break; case MP_BC_STORE_NAME: @@ -161,17 +161,17 @@ void mp_show_byte_code(const byte *ip, int len) { case MP_BC_JUMP: DECODE_SLABEL; - printf("JUMP %lu", ip + unum - ip_start); + printf("JUMP " UINT_FMT, ip + unum - ip_start); break; case MP_BC_POP_JUMP_IF_TRUE: DECODE_SLABEL; - printf("POP_JUMP_IF_TRUE %lu", ip + unum - ip_start); + printf("POP_JUMP_IF_TRUE " UINT_FMT, ip + unum - ip_start); break; case MP_BC_POP_JUMP_IF_FALSE: DECODE_SLABEL; - printf("POP_JUMP_IF_FALSE %lu", ip + unum - ip_start); + printf("POP_JUMP_IF_FALSE " UINT_FMT, ip + unum - ip_start); break; /* @@ -196,7 +196,7 @@ void mp_show_byte_code(const byte *ip, int len) { case MP_BC_SETUP_EXCEPT: DECODE_ULABEL; // except labels are always forward - printf("SETUP_EXCEPT %lu", ip + unum - ip_start); + printf("SETUP_EXCEPT " UINT_FMT, ip + unum - ip_start); break; case MP_BC_END_FINALLY: @@ -213,7 +213,7 @@ void mp_show_byte_code(const byte *ip, int len) { case MP_BC_FOR_ITER: DECODE_ULABEL; // the jump offset if iteration finishes; for labels are always forward - printf("FOR_ITER %lu", ip + unum - ip_start); + printf("FOR_ITER " UINT_FMT, ip + unum - ip_start); break; case MP_BC_POP_BLOCK: @@ -235,22 +235,22 @@ void mp_show_byte_code(const byte *ip, int len) { case MP_BC_BINARY_OP: unum = *ip++; - printf("BINARY_OP %lu", unum); + printf("BINARY_OP " UINT_FMT, unum); break; case MP_BC_COMPARE_OP: unum = *ip++; - printf("COMPARE_OP %lu", unum); + printf("COMPARE_OP " UINT_FMT, unum); break; case MP_BC_BUILD_TUPLE: DECODE_UINT; - printf("BUILD_TUPLE %lu", unum); + printf("BUILD_TUPLE " UINT_FMT, unum); break; case MP_BC_BUILD_LIST: DECODE_UINT; - printf("BUILD_LIST %lu", unum); + printf("BUILD_LIST " UINT_FMT, unum); break; /* @@ -264,7 +264,7 @@ void mp_show_byte_code(const byte *ip, int len) { case MP_BC_BUILD_MAP: DECODE_UINT; - printf("BUILD_MAP %lu", unum); + printf("BUILD_MAP " UINT_FMT, unum); break; /* @@ -293,22 +293,22 @@ void mp_show_byte_code(const byte *ip, int len) { case MP_BC_UNPACK_SEQUENCE: DECODE_UINT; - printf("UNPACK_SEQUENCE %lu", unum); + printf("UNPACK_SEQUENCE " UINT_FMT, unum); break; case MP_BC_MAKE_FUNCTION: DECODE_UINT; - printf("MAKE_FUNCTION %lu", unum); + printf("MAKE_FUNCTION " UINT_FMT, unum); break; case MP_BC_CALL_FUNCTION: DECODE_UINT; - printf("CALL_FUNCTION n=%lu nkw=%lu", unum & 0xff, (unum >> 8) & 0xff); + printf("CALL_FUNCTION n=" UINT_FMT " nkw=" UINT_FMT, unum & 0xff, (unum >> 8) & 0xff); break; case MP_BC_CALL_METHOD: DECODE_UINT; - printf("CALL_METHOD n=%lu nkw=%lu", unum & 0xff, (unum >> 8) & 0xff); + printf("CALL_METHOD n=" UINT_FMT " nkw=" UINT_FMT, unum & 0xff, (unum >> 8) & 0xff); break; case MP_BC_RETURN_VALUE: |
