Boost logo

Boost-Commit :

From: bdawes_at_[hidden]
Date: 2008-07-03 07:18:48


Author: bemandawes
Date: 2008-07-03 07:18:48 EDT (Thu, 03 Jul 2008)
New Revision: 47034
URL: http://svn.boost.org/trac/boost/changeset/47034

Log:
Reflect 1.36.0 target rules
Text files modified:
   trunk/tools/inspect/path_name_check.cpp | 34 +++++++++++++---------------------
   1 files changed, 13 insertions(+), 21 deletions(-)

Modified: trunk/tools/inspect/path_name_check.cpp
==============================================================================
--- trunk/tools/inspect/path_name_check.cpp (original)
+++ trunk/tools/inspect/path_name_check.cpp 2008-07-03 07:18:48 EDT (Thu, 03 Jul 2008)
@@ -21,7 +21,7 @@
 namespace
 {
   const char allowable[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_-.";
- const char initial_char[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
+ const char initial_char[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_";
 }
 
 namespace boost
@@ -50,7 +50,7 @@
             + leaf[pos] + "'" );
       }
 
- // begins with an alphabetic character
+ // allowable initial character
       if ( std::strchr( initial_char, leaf[0] ) == 0 )
       {
         ++m_name_errors;
@@ -68,25 +68,17 @@
               + " directory name contains a dot character ('.')" );
         }
       }
- else // not a directory
- {
- // includes at most one dot character
- const char * first_dot = std::strchr( leaf.c_str(), '.' );
- if ( first_dot && std::strchr( first_dot+1, '.' ) )
- {
- ++m_name_errors;
- error( library_name, full_path, string(name())
- + " file name with more than one dot character ('.')" );
- }
-
- // does not end with a dot character
- if ( *leaf.rbegin() == '.' )
- {
- ++m_name_errors;
- error( library_name, full_path, string(name())
- + " file name ends with a dot character ('.')" );
- }
- }
+ //else // not a directory
+ //{
+ // // includes at most one dot character
+ // const char * first_dot = std::strchr( leaf.c_str(), '.' );
+ // if ( first_dot && std::strchr( first_dot+1, '.' ) )
+ // {
+ // ++m_name_errors;
+ // error( library_name, full_path, string(name())
+ // + " file name with more than one dot character ('.')" );
+ // }
+ //}
 
       // the path, including a presumed root, does not exceed the maximum size
       path const relative_path( relative_to( full_path, filesystem::initial_path() ) );


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk