summaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2022-01-04 20:03:07 +0100
committerMattias Andrée <maandree@kth.se>2022-01-04 20:03:07 +0100
commitea1c16c3270e775bfc615b612d11d319f841b812 (patch)
tree72770832dad3fd2a248f198eb986eefba03aee4f /common.h
parentRemove unnecessary brackets (diff)
downloadmakel-ea1c16c3270e775bfc615b612d11d319f841b812.tar.gz
makel-ea1c16c3270e775bfc615b612d11d319f841b812.tar.bz2
makel-ea1c16c3270e775bfc615b612d11d319f841b812.tar.xz
misc
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'common.h')
-rw-r--r--common.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/common.h b/common.h
index 01a8c0d..35988cc 100644
--- a/common.h
+++ b/common.h
@@ -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;
};