[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
style: clarify #endif
From: |
Akim Demaille |
Subject: |
style: clarify #endif |
Date: |
Sat, 25 Apr 2020 11:09:51 +0200 |
commit 150dc95395bdd21ced63d6502c9bc04b835b0d54
Author: Akim Demaille <address@hidden>
Date: Sat Apr 25 11:03:13 2020 +0200
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.
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 \
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- style: clarify #endif,
Akim Demaille <=