@ -164,7 +164,7 @@ bool ConfigurationManager::loadConfig(const boost::filesystem::path& path,
return false ;
return false ;
}
}
escape_hash_filter : : escape_hash_filter ( ) : mNext ( )
escape_hash_filter : : escape_hash_filter ( ) : mNext ( ) , mSeenNonWhitespace ( false ) , mFinishLine ( false )
{
{
}
}
@ -186,23 +186,23 @@ int escape_hash_filter::get(Source & src)
}
}
else if ( character = = EOF )
else if ( character = = EOF )
{
{
s eenNonWhitespace = false ;
mS eenNonWhitespace = false ;
f inishLine = false ;
mF inishLine = false ;
mNext . push ( character ) ;
mNext . push ( character ) ;
}
}
else if ( character = = ' \n ' )
else if ( character = = ' \n ' )
{
{
s eenNonWhitespace = false ;
mS eenNonWhitespace = false ;
f inishLine = false ;
mF inishLine = false ;
mNext . push ( character ) ;
mNext . push ( character ) ;
}
}
else if ( f inishLine)
else if ( mF inishLine)
{
{
mNext . push ( character ) ;
mNext . push ( character ) ;
}
}
else if ( character = = ' # ' )
else if ( character = = ' # ' )
{
{
if ( s eenNonWhitespace)
if ( mS eenNonWhitespace)
{
{
mNext . push ( sEscape ) ;
mNext . push ( sEscape ) ;
mNext . push ( sHashIdentifier ) ;
mNext . push ( sHashIdentifier ) ;
@ -211,7 +211,7 @@ int escape_hash_filter::get(Source & src)
{
{
//it's fine being interpreted by Boost as a comment, and so is anything afterwards
//it's fine being interpreted by Boost as a comment, and so is anything afterwards
mNext . push ( character ) ;
mNext . push ( character ) ;
f inishLine = true ;
mF inishLine = true ;
}
}
}
}
else if ( mPrevious = = sEscape )
else if ( mPrevious = = sEscape )
@ -223,8 +223,8 @@ int escape_hash_filter::get(Source & src)
{
{
mNext . push ( character ) ;
mNext . push ( character ) ;
}
}
if ( ! s eenNonWhitespace & & ! isspace ( character ) )
if ( ! mS eenNonWhitespace & & ! isspace ( character ) )
s eenNonWhitespace = true ;
mS eenNonWhitespace = true ;
if ( record )
if ( record )
mPrevious = character ;
mPrevious = character ;
}
}