[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
yacc.c: don't suggest api.header.include when --defines is not used
From: |
Akim Demaille |
Subject: |
yacc.c: don't suggest api.header.include when --defines is not used |
Date: |
Sun, 24 Mar 2019 18:55:36 +0100 |
commit b5cd777ad6f5c7a19faea397a0565969037767ff
Author: Akim Demaille <address@hidden>
Date: Wed Mar 20 08:36:34 2019 +0100
yacc.c: don't suggest api.header.include when --defines is not used
See 4e19ab9fcd28c9361ff08f46e5e353effb0a0520: the suggestion to
include the header file should not be emitted when the header is not
generated.
* data/skeletons/yacc.c: Here.
diff --git a/data/skeletons/yacc.c b/data/skeletons/yacc.c
index ce6aa813..7e5187bc 100644
--- a/data/skeletons/yacc.c
+++ b/data/skeletons/yacc.c
@@ -374,9 +374,10 @@ m4_if(b4_api_prefix, [yy], [],
#endif
]b4_header_include_if([[#include
]b4_percent_define_get([[api.header.include]])],
- [/* Use api.header.include to #include this header
+ [m4_ifval(m4_quote(b4_spec_header_file),
+ [/* Use api.header.include to #include this
header
instead of duplicating it here. */
-b4_shared_declarations])[
+])b4_shared_declarations])[
]b4_user_post_prologue[
]b4_percent_code_get[]dnl
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- yacc.c: don't suggest api.header.include when --defines is not used,
Akim Demaille <=