Changeset 408

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

astyle preference - tabs + attach brackets

Location:
library
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • library/bdm/bdmroot.cpp

    r357 r408  
    22 
    33//! Space of basic BDM structures 
    4 namespace bdm 
    5 { 
     4namespace bdm { 
    65} 
  • library/bdm/bdmroot.h

    r390 r408  
    2929public: 
    3030        //! make sure this is a virtual object 
    31         virtual ~root()  
    32         { 
     31        virtual ~root() { 
    3332        } 
    3433 
    3534        //! This method returns a basic info about the current instance 
    36         virtual string to_string() 
    37         { 
     35        virtual string to_string() { 
    3836                return ""; 
    3937        } 
    4038 
    4139        //! This method arrange instance properties according the data stored in the Setting structure 
    42         virtual void from_setting( const Setting &set ) 
    43         { 
     40        virtual void from_setting(const Setting &set) { 
    4441        } 
    4542 
    46         //! This method save all the instance properties into the Setting structure  
    47         virtual void to_setting( Setting &set ) const 
    48         {        
     43        //! This method save all the instance properties into the Setting structure 
     44        virtual void to_setting(Setting &set) const { 
    4945        } 
    5046 
    5147        //! This method TODO 
    52         virtual void validate() 
    53         { 
     48        virtual void validate() { 
    5449        } 
    5550}; 
  • 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} 
  • library/bdm/osutils.h

    r262 r408  
    2626@param rewrite if true then existence of the directory is not an error 
    2727*/ 
    28 void makedir(string &dirname, bool rewrite = true); 
     28void makedir ( string &dirname, bool rewrite = true ); 
  • library/system/astylerc

    r356 r408  
    2424#                             auto-mode-alist)) 
    2525# ---------------------------------------------------------------------- 
    26 indent=spaces=2 
    27 brackets=linux 
    28 brackets=break-closing 
    29 indent-labels 
     26indent=tab=4 
     27brackets=attach 
    3028pad=oper 
     29pad=paren 
    3130unpad=paren 
    3231one-line=keep-blocks 
    33 convert-tabs