}
}
- FILE* flst = fopen( (addExt( baseName( c.filename ), "lst" )).ptr, "wb" );
+ FILE* flst = fopen( (addExt( baseName( c.filename ), "lst\0" )).ptr, "wb" );
if( !flst )
continue; //throw new Exception( "Error opening file for write: " ~ lstfn );
{
version( Windows )
{
- if( namev[i - 1] == ':' || name[i - 1] == '\\' )
+ if( name[i - 1] == ':' || name[i - 1] == '\\' )
break;
}
else version( Posix )
string getExt( string name )
{
auto i = name.length;
-
+
while( i > 0 )
{
if( name[i - 1] == '.' )
string addExt( string name, string ext )
{
auto existing = getExt( name );
-
+
if( existing.length == 0 )
{
if( name.length && name[$ - 1] == '.' )
if( delim is null )
{
auto len = str.length;
-
+
if( len )
{
auto c = str[len - 1];
}
return result;
}
-