From 150dc95395bdd21ced63d6502c9bc04b835b0d54 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Sat, 25 Apr 2020 11:03:13 +0200 Subject: [PATCH] style: clarify #endif We could try to avoid the weird "#if 1", but then the indentation of the inner #if would be wrong. Let' keep it this way. * data/skeletons/yacc.c: here. Also, avoid sticking the comment to the directive. --- data/skeletons/yacc.c | 2 +- src/parse-gram.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/data/skeletons/yacc.c b/data/skeletons/yacc.c index f910f713..0fc0c9e5 100644 --- a/data/skeletons/yacc.c +++ b/data/skeletons/yacc.c @@ -547,7 +547,7 @@ void free (void *); /* INFRINGES ON USER NAME SPACE */ # endif # endif]b4_lac_if([[ # define YYCOPY_NEEDED 1]])[ -#endif]b4_lac_if([], [b4_parse_error_case([simple], [[/* !defined yyoverflow */]])])[ +#endif /* ]b4_lac_if([[1]], [b4_parse_error_case([simple], [[!defined yyoverflow]], [[1]])])[ */ #if (! defined yyoverflow \ && (! defined __cplusplus \ diff --git a/src/parse-gram.c b/src/parse-gram.c index ee6da6bc..f4f1c708 100644 --- a/src/parse-gram.c +++ b/src/parse-gram.c @@ -529,7 +529,7 @@ void free (void *); /* INFRINGES ON USER NAME SPACE */ # endif # endif # define YYCOPY_NEEDED 1 -#endif +#endif /* 1 */ #if (! defined yyoverflow \ && (! defined __cplusplus \