[PPL-devel] [GIT] ppl/ppl(master): Multiple-inclusion guards added.

Roberto Bagnara bagnara at cs.unipr.it
Tue Feb 21 20:23:43 CET 2012


Module: ppl/ppl
Branch: master
Commit: 1b2e1e5fa3b8a93544d30b53dd6f2bc27bee8eda
URL:    http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=1b2e1e5fa3b8a93544d30b53dd6f2bc27bee8eda

Author: Roberto Bagnara <bagnara at cs.unipr.it>
Date:   Tue Feb 21 20:22:32 2012 +0100

Multiple-inclusion guards added.
Detected by ECLAIR service inclgard.

---

 src/Makefile.am |   17 ++++++++++++++---
 1 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/src/Makefile.am b/src/Makefile.am
index 6e84ad1..31844cf 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -578,20 +578,31 @@ ppl.hh:	$(top_builddir)/ppl-config.h $(top_builddir)/src/version.hh ppl_header.h
 		$(top_srcdir)/src/ppl_header.hh >$@
 
 BUGS.hh: $(top_builddir)/utils/text2cxxarray $(top_srcdir)/BUGS
+	@echo "#ifndef PPL_BUGS_hh" >$@
+	@echo "#define PPL_BUGS_hh 1" >>$@
 	$(top_builddir)/utils/text2cxxarray --name=BUGS_array --decl-only \
-		$(top_srcdir)/BUGS >$@
+		$(top_srcdir)/BUGS >>$@
+	@echo "#endif // !defined(PPL_BUGS_hh)" >>$@
 BUGS.cc: $(top_builddir)/utils/text2cxxarray $(top_srcdir)/BUGS
 	$(top_builddir)/utils/text2cxxarray --name=BUGS_array \
 		$(top_srcdir)/BUGS >$@
+
 COPYING.hh: $(top_builddir)/utils/text2cxxarray $(top_srcdir)/COPYING
+	@echo "#ifndef PPL_COPYING_hh" >$@
+	@echo "#define PPL_COPYING_hh 1" >>$@
 	$(top_builddir)/utils/text2cxxarray --name=COPYING_array --decl-only \
-		$(top_srcdir)/COPYING >$@
+		$(top_srcdir)/COPYING >>$@
+	@echo "#endif // !defined(PPL_COPYING_hh)" >>$@
+
 COPYING.cc: $(top_builddir)/utils/text2cxxarray $(top_srcdir)/COPYING
 	$(top_builddir)/utils/text2cxxarray --name=COPYING_array \
 		$(top_srcdir)/COPYING >$@
 CREDITS.hh: $(top_builddir)/utils/text2cxxarray $(top_srcdir)/CREDITS
+	@echo "#ifndef PPL_CREDITS_hh" >$@
+	@echo "#define PPL_CREDITS_hh 1" >>$@
 	$(top_builddir)/utils/text2cxxarray --name=CREDITS_array --decl-only \
-		$(top_srcdir)/CREDITS >$@
+		$(top_srcdir)/CREDITS >>$@
+	@echo "#endif // !defined(PPL_CREDITS_hh)" >>$@
 CREDITS.cc: $(top_builddir)/utils/text2cxxarray $(top_srcdir)/CREDITS
 	$(top_builddir)/utils/text2cxxarray --name=CREDITS_array \
 		$(top_srcdir)/CREDITS >$@




More information about the PPL-devel mailing list