From: wolf Date: Wed, 24 Jan 2001 09:48:07 +0000 (+0000) Subject: Take care of multiline macros. If not taken care of, then we get declarations of... X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0817568ac962e3c459c6276191ff8d300a2c8740;p=dealii-svn.git 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 --- 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.