[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdesdk/scripts
From: Dirk Mueller <mueller () kde ! org>
Date: 2002-12-30 20:37:06
[Download RAW message or body]
CVS commit by mueller:
fix the remove_include logic again to not remove more than n-1 times
M +2 -2 fixincludes 1.37
--- kdesdk/scripts/fixincludes #1.36:1.37
@@ -248,6 +248,6 @@
}
- #if ($cpplevel == 0 && $level > 0 && $line =~ \
m/^\#include\s*[\"<]$include[\">]\S*$/) {
- if ($cpplevel == 0 && (($line =~ m/^\#include\s*\"$include\"\S*/) || ($line =~ \
m/^\#include\s*\<$include\>\S*/))) { + if ($level && $cpplevel == 0 &&
+ (($line =~ m/^\#include\s*\"$include\"\S*/) || ($line =~ \
m/^\#include\s*\<$include\>\S*/))) { $level = $level - 1;
# skipping the line..
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic