Show
Ignore:
Timestamp:
07/02/09 22:16:13 (15 years ago)
Author:
smidl
Message:

astyle preference - tabs + attach brackets

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/bdm/osutils.cpp

    r93 r408  
    2727void get_fname ( char* filename, string &dirname, string &f ) { 
    2828#ifdef WIN32 
    29         sprintf ( filename,"%s\\%s",dirname.c_str(),f.c_str() ); 
     29        sprintf ( filename, "%s\\%s", dirname.c_str(), f.c_str() ); 
    3030#else 
    31         sprintf ( filename,"%s/%s",dirname.c_str() ,f.c_str() ); 
     31        sprintf ( filename, "%s/%s", dirname.c_str() , f.c_str() ); 
    3232#endif 
    3333} 
    3434 
    35 void makedir(string &dirname, bool rewrite){ 
     35void makedir ( string &dirname, bool rewrite ) { 
    3636#ifdef WIN32 
    37    if (mkdir(dirname.c_str()) == -1)   // Create the directory 
     37        if ( mkdir ( dirname.c_str() ) == -1 )   // Create the directory 
    3838#else 
    39    if (mkdir(dirname.c_str(), 00755) == -1)   // Create the directory 
     39        if ( mkdir ( dirname.c_str(), 00755 ) == -1 )   // Create the directory 
    4040#endif 
    41 { 
    42         if ((rewrite) && ( errno==EEXIST ) ) it_warning ( "rewriting directory" ); 
     41        { 
     42                if ( ( rewrite ) && ( errno == EEXIST ) ) it_warning ( "rewriting directory" ); 
    4343                else it_error ( "dirfilelog:: cannot create directory" ); 
    44    } 
     44        } 
    4545}