From 0817568ac962e3c459c6276191ff8d300a2c8740 Mon Sep 17 00:00:00 2001 From: wolf Date: Wed, 24 Jan 2001 09:48:07 +0000 Subject: [PATCH] Take care of multiline macros. If not taken care of, then we get declarations of 'class Exception0' etc from the DeclException macro definitions into base/forward_declarations.h. git-svn-id: https://svn.dealii.org/branches/Branch-3-1@3778 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/common/scripts/forward_declarations.pl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/deal.II/common/scripts/forward_declarations.pl b/deal.II/common/scripts/forward_declarations.pl index d75d4a9ad6..3c81bdeab9 100644 --- a/deal.II/common/scripts/forward_declarations.pl +++ b/deal.II/common/scripts/forward_declarations.pl @@ -40,6 +40,13 @@ sub parse_class_declarations { open (FILE, $filename); while () { + # if this is continued line, then strip the backslash and join + # it with the following one as well + while ( /\\$/ ) { + $_ =~ s/\\$//; + $_ = $_ . " " . ; + } + # if the lines contains a "template" at the # beginning and no semicolon at the end: join it # with the next line. -- 2.39.5