From: Wolfgang Bangerth Date: Wed, 24 Jan 2001 09:47:31 +0000 (+0000) Subject: Take care of multiline macros. If not taken care of, then we get declarations of... X-Git-Tag: v8.0.0~19788 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1478295b7a8232cfc065de54c5c6d9ab73ec23c;p=dealii.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/trunk@3777 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.