diff options
author | Damien George <damien.p.george@gmail.com> | 2020-02-26 11:58:42 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2020-02-28 10:31:07 +1100 |
commit | 3f39d18c2b884d32f0443e2e8114ff9d7a14d718 (patch) | |
tree | 9c0ef34c65df237b1f41ff32f36ff400e1730af8 /py/objint_mpz.c | |
parent | b86075ef1fc8df19844b18b315ade3c084accd54 (diff) |
all: Add *FORMAT-OFF* in various places.
This string is recognised by uncrustify, to disable formatting in the
region marked by these comments. This is necessary in the qstrdef*.h files
to prevent modification of the strings within the Q(...). In other places
it is used to prevent excessive reformatting that would make the code less
readable.
Diffstat (limited to 'py/objint_mpz.c')
-rw-r--r-- | py/objint_mpz.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/py/objint_mpz.c b/py/objint_mpz.c index 5c014ac23..7b2bcc9c9 100644 --- a/py/objint_mpz.c +++ b/py/objint_mpz.c @@ -41,6 +41,7 @@ #if MICROPY_PY_SYS_MAXSIZE // Export value for sys.maxsize +// *FORMAT-OFF* #define DIG_MASK ((MPZ_LONG_1 << MPZ_DIG_SIZE) - 1) STATIC const mpz_dig_t maxsize_dig[] = { #define NUM_DIG 1 @@ -64,6 +65,7 @@ STATIC const mpz_dig_t maxsize_dig[] = { #endif #endif }; +// *FORMAT-ON* const mp_obj_int_t mp_maxsize_obj = { {&mp_type_int}, {.fixed_dig = 1, .len = NUM_DIG, .alloc = NUM_DIG, .dig = (mpz_dig_t*)maxsize_dig} |