]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Take care of multiline macros. If not taken care of, then we get declarations of...
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 24 Jan 2001 09:48:07 +0000 (09:48 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 24 Jan 2001 09:48:07 +0000 (09:48 +0000)
git-svn-id: https://svn.dealii.org/branches/Branch-3-1@3778 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/common/scripts/forward_declarations.pl

index d75d4a9ad68f0127c1536e20a107c5cfde08228c..3c81bdeab9c07fdd9bb5775ae71dd0f4cdd83fd9 100644 (file)
@@ -40,6 +40,13 @@ sub parse_class_declarations {
     
     open (FILE, $filename);
     while (<FILE>) {
+       # if this is continued line, then strip the backslash and join
+       # it with the following one as well
+       while ( /\\$/ ) {
+           $_ =~ s/\\$//;
+           $_ = $_ . " " . <FILE>;
+        }
+
        # if the lines contains a "template" at the 
        # beginning and no semicolon at the end: join it
        # with the next line.

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.