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/parse.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/parse.c')
-rw-r--r-- | py/parse.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/py/parse.c b/py/parse.c index 42a947997..1174f5d83 100644 --- a/py/parse.c +++ b/py/parse.c @@ -58,6 +58,8 @@ // (un)comment to use rule names; for debugging //#define USE_RULE_NAME (1) +// *FORMAT-OFF* + enum { // define rules with a compile function #define DEF_RULE(rule, comp, kind, ...) RULE_##rule, @@ -207,6 +209,8 @@ STATIC const char *const rule_name_table[] = { }; #endif +// *FORMAT-ON* + typedef struct _rule_stack_t { size_t src_line : (8 * sizeof(size_t) - 8); // maximum bits storing source line number size_t rule_id : 8; // this must be large enough to fit largest rule number |