diff options
author | Mattias Andrée <maandree@kth.se> | 2022-01-04 20:03:07 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2022-01-04 20:03:07 +0100 |
commit | ea1c16c3270e775bfc615b612d11d319f841b812 (patch) | |
tree | 72770832dad3fd2a248f198eb986eefba03aee4f /common.h | |
parent | Remove unnecessary brackets (diff) | |
download | makel-ea1c16c3270e775bfc615b612d11d319f841b812.tar.gz makel-ea1c16c3270e775bfc615b612d11d319f841b812.tar.bz2 makel-ea1c16c3270e775bfc615b612d11d319f841b812.tar.xz |
misc
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | common.h | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -38,7 +38,8 @@ X(WC_CONTINUATION_TO_BLANK, "continuation-to-blank", WARN)\ X(WC_EOF_LINE_CONTINUATION, "eof-line-continuation", WARN)\ X(WC_UNINDENTED_CONTINUATION, "unindented-continuation", WARN)\ - X(WC_SPACELESS_CONTINUATION, "spaceless-continuation", WARN) + X(WC_SPACELESS_CONTINUATION, "spaceless-continuation", WARN)\ + X(WC_COMMENT_CONTINUATION, "comment-continuation", WARN) enum action { @@ -75,12 +76,19 @@ struct line { size_t lineno; int eof; int nest_level; - char continuation_joiner; + char continuation_joiner; /* If '\\', it shall be '\\\n' */ +}; + +enum macro_bracket_style { + INCONSISTENT, + ROUND, + CURLY }; struct style { size_t max_line_length; int only_empty_blank_lines; + enum macro_bracket_style macro_bracket_style; }; |