Update of /cvsroot/boost/boost/tools/inspect
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv2813
Modified Files:
link_check.cpp link_check.hpp
Log Message:
Added 'boostinspect:nounlinked' exclusion tag, to avoid warnings about an
unlinked file.
Index: link_check.cpp
===================================================================
RCS file: /cvsroot/boost/boost/tools/inspect/link_check.cpp,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- link_check.cpp 7 Aug 2006 22:34:23 -0000 1.18
+++ link_check.cpp 23 Sep 2006 13:49:22 -0000 1.19
@@ -52,6 +52,9 @@
const path & full_path, // example: c:/foo/boost/filesystem/path.hpp
const string & contents ) // contents of file to be inspected
{
+ if (contents.find( "boostinspect:" "nounlinked" ) != string::npos)
+ m_paths[ relative_to( full_path, fs::initial_path() ) ] |=
m_nounlinked_errors;
+
if (contents.find( "boostinspect:" "nolink" ) != string::npos) return;
string::const_iterator start( contents.begin() );
@@ -158,6 +161,7 @@
{
// std::clog << itr->first << " " << itr->second << "\n";
if ( (itr->second & m_linked_to) != m_linked_to
+ && (itr->second & m_nounlinked_errors) != m_nounlinked_errors
&& (itr->first.rfind( ".html" ) == itr->first.size()-5
|| itr->first.rfind( ".htm" ) == itr->first.size()-4)
// because they may be redirectors, it is OK if these are unlinked:
Index: link_check.hpp
===================================================================
RCS file: /cvsroot/boost/boost/tools/inspect/link_check.hpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- link_check.hpp 7 Aug 2006 18:41:29 -0000 1.7
+++ link_check.hpp 23 Sep 2006 13:49:22 -0000 1.8
@@ -19,6 +19,7 @@
{
const int m_linked_to = 1;
const int m_present = 2;
+ const int m_nounlinked_errors = 4;
class link_check : public hypertext_inspector
{
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs