[ros-diffs] [royce] 17585: remove single "." entries from paths
royce at svn.reactos.com
royce at svn.reactos.com
Sun Aug 28 14:23:52 CEST 2005
remove single "." entries from paths
Modified: trunk/reactos/tools/rbuild/XML.cpp
_____
Modified: trunk/reactos/tools/rbuild/XML.cpp
--- trunk/reactos/tools/rbuild/XML.cpp 2005-08-28 12:18:13 UTC (rev
17584)
+++ trunk/reactos/tools/rbuild/XML.cpp 2005-08-28 12:23:37 UTC (rev
17585)
@@ -223,12 +223,15 @@
out.resize ( 0 );
while ( p )
{
- out.push_back ( prev );
+ if ( strcmp ( prev, "." ) )
+ out.push_back ( prev );
prev = p;
p = strtok ( NULL, "/\\" );
}
if ( include_last )
out.push_back ( prev );
+ if ( out.back() == "." )
+ out.pop_back();
}
XMLFile::XMLFile()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050828/f324714e/attachment.html
More information about the Ros-diffs
mailing list