Show
Ignore:
Timestamp:
08/05/09 14:40:03 (15 years ago)
Author:
mido
Message:

panove, vite, jak jsem peclivej na upravu kodu.. snad se vam bude libit:) konfigurace je v souboru /system/astylerc

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/tests/unittest-cpp/Posix/SignalTranslator.cpp

    r418 r477  
    77namespace { 
    88 
    9 void SignalHandler(int sig) 
    10 { 
    11     siglongjmp(*SignalTranslator::s_jumpTarget, sig ); 
     9void SignalHandler ( int sig ) { 
     10        siglongjmp ( *SignalTranslator::s_jumpTarget, sig ); 
    1211} 
    1312 
     
    1514 
    1615 
    17 SignalTranslator::SignalTranslator() 
    18 { 
    19     m_oldJumpTarget = s_jumpTarget; 
    20     s_jumpTarget = &m_currentJumpTarget; 
     16SignalTranslator::SignalTranslator() { 
     17        m_oldJumpTarget = s_jumpTarget; 
     18        s_jumpTarget = &m_currentJumpTarget; 
    2119 
    22     struct sigaction action; 
    23     action.sa_flags = 0; 
    24     action.sa_handler = SignalHandler; 
    25     sigemptyset( &action.sa_mask ); 
     20        struct sigaction action; 
     21        action.sa_flags = 0; 
     22        action.sa_handler = SignalHandler; 
     23        sigemptyset ( &action.sa_mask ); 
    2624 
    27     sigaction( SIGSEGV, &action, &m_old_SIGSEGV_action ); 
    28     sigaction( SIGFPE , &action, &m_old_SIGFPE_action ); 
    29     sigaction( SIGTRAP, &action, &m_old_SIGTRAP_action ); 
    30     sigaction( SIGBUS , &action, &m_old_SIGBUS_action ); 
    31     sigaction( SIGILL , &action, &m_old_SIGBUS_action ); 
     25        sigaction ( SIGSEGV, &action, &m_old_SIGSEGV_action ); 
     26        sigaction ( SIGFPE , &action, &m_old_SIGFPE_action ); 
     27        sigaction ( SIGTRAP, &action, &m_old_SIGTRAP_action ); 
     28        sigaction ( SIGBUS , &action, &m_old_SIGBUS_action ); 
     29        sigaction ( SIGILL , &action, &m_old_SIGBUS_action ); 
    3230} 
    3331 
    34 SignalTranslator::~SignalTranslator() 
    35 { 
    36     sigaction( SIGILL , &m_old_SIGBUS_action , 0 ); 
    37     sigaction( SIGBUS , &m_old_SIGBUS_action , 0 ); 
    38     sigaction( SIGTRAP, &m_old_SIGTRAP_action, 0 ); 
    39     sigaction( SIGFPE , &m_old_SIGFPE_action , 0 ); 
    40     sigaction( SIGSEGV, &m_old_SIGSEGV_action, 0 ); 
     32SignalTranslator::~SignalTranslator() { 
     33        sigaction ( SIGILL , &m_old_SIGBUS_action , 0 ); 
     34        sigaction ( SIGBUS , &m_old_SIGBUS_action , 0 ); 
     35        sigaction ( SIGTRAP, &m_old_SIGTRAP_action, 0 ); 
     36        sigaction ( SIGFPE , &m_old_SIGFPE_action , 0 ); 
     37        sigaction ( SIGSEGV, &m_old_SIGSEGV_action, 0 ); 
    4138 
    42     s_jumpTarget = m_oldJumpTarget; 
     39        s_jumpTarget = m_oldJumpTarget; 
    4340} 
    4441