summaryrefslogtreecommitdiff
path: root/ACE
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2021-10-25 14:35:12 +0200
committerJohnny Willemsen <jwillemsen@remedy.nl>2021-10-25 14:35:12 +0200
commitb823d4738c4d72853db6ac4382a3afd8a54eb0c1 (patch)
tree00a5b30fa6c783c928a62ee972ab5b43ccc039a5 /ACE
parent36a9f816d472c0ba515a6a9ed3f78225994c122c (diff)
downloadATCD-b823d4738c4d72853db6ac4382a3afd8a54eb0c1.tar.gz
Make use of using instead of typedef, doxygen changes, use bool instead of int
* ACE/ace/Signal.cpp: * ACE/ace/Signal.h: * ACE/ace/Signal.inl: * ACE/ace/os_include/os_signal.h:
Diffstat (limited to 'ACE')
-rw-r--r--ACE/ace/Signal.cpp3
-rw-r--r--ACE/ace/Signal.h10
-rw-r--r--ACE/ace/Signal.inl2
-rw-r--r--ACE/ace/os_include/os_signal.h24
4 files changed, 19 insertions, 20 deletions
diff --git a/ACE/ace/Signal.cpp b/ACE/ace/Signal.cpp
index 90f09bbd13c..dcca442ef5f 100644
--- a/ACE/ace/Signal.cpp
+++ b/ACE/ace/Signal.cpp
@@ -33,8 +33,7 @@ ACE_Sig_Action::~ACE_Sig_Action ()
ACE_TRACE ("ACE_Sig_Action::~ACE_Sig_Action");
}
-// Restore the signal mask.
-
+/// Restore the signal mask.
ACE_Sig_Guard::~ACE_Sig_Guard ()
{
//ACE_TRACE ("ACE_Sig_Guard::~ACE_Sig_Guard");
diff --git a/ACE/ace/Signal.h b/ACE/ace/Signal.h
index d16268539fa..f0b068ec8a7 100644
--- a/ACE/ace/Signal.h
+++ b/ACE/ace/Signal.h
@@ -27,7 +27,7 @@
#include "ace/OS_NS_signal.h"
/// Type of the extended signal handler.
-typedef void (*ACE_Sig_Handler_Ex) (int, siginfo_t *siginfo, ucontext_t *ucontext);
+using ACE_Sig_Handler_Ex = void (*) (int, siginfo_t *siginfo, ucontext_t *ucontext);
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
@@ -43,17 +43,17 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Export ACE_Sig_Set
{
public:
- /// Initialize <sigset_> with @a sigset. If @a sigset == 0 then fill
+ /// Initialize sigset_ with @a sigset. If @a sigset == 0 then fill
/// the set.
ACE_Sig_Set (sigset_t *sigset);
- /// Initialize <sigset_> with @a sigset. If @a sigset == 0 then fill
+ /// Initialize sigset_ with @a sigset. If @a sigset == 0 then fill
/// the set.
ACE_Sig_Set (ACE_Sig_Set *sigset);
- /// If @a fill == 0 then initialize the <sigset_> to be empty, else
+ /// If @a fill == false then initialize the sigset_ to be empty, else
/// full.
- ACE_Sig_Set (int fill = 0);
+ ACE_Sig_Set (bool fill = false);
~ACE_Sig_Set ();
diff --git a/ACE/ace/Signal.inl b/ACE/ace/Signal.inl
index 55882f85b9f..6a81ce6c464 100644
--- a/ACE/ace/Signal.inl
+++ b/ACE/ace/Signal.inl
@@ -21,7 +21,7 @@ ACE_Sig_Set::ACE_Sig_Set (sigset_t *ss)
}
ACE_INLINE
-ACE_Sig_Set::ACE_Sig_Set (int fill)
+ACE_Sig_Set::ACE_Sig_Set (bool fill)
// : sigset_ ()
{
ACE_TRACE ("ACE_Sig_Set::ACE_Sig_Set");
diff --git a/ACE/ace/os_include/os_signal.h b/ACE/ace/os_include/os_signal.h
index 32161dfaf70..e98ef206875 100644
--- a/ACE/ace/os_include/os_signal.h
+++ b/ACE/ace/os_include/os_signal.h
@@ -151,28 +151,28 @@ extern "C"
#if defined (ACE_HAS_CONSISTENT_SIGNAL_PROTOTYPES)
// Prototypes for both signal() and struct sigaction are consistent..
- typedef void (*ACE_SignalHandler)(int);
- typedef void (*ACE_SignalHandlerV)(int);
+ using ACE_SignalHandler = void (*)(int);
+ using ACE_SignalHandlerV = void (*)(int);
#elif defined (ACE_HAS_SVR4_SIGNAL_T)
// SVR4 Signals are inconsistent (e.g., see struct sigaction)..
- typedef void (*ACE_SignalHandler)(int);
- typedef void (*ACE_SignalHandlerV)(void);
+ using ACE_SignalHandler = void (*)(int);
+ using ACE_SignalHandlerV = void (*)(void);
#elif defined (ACE_WIN32)
- typedef void (__cdecl *ACE_SignalHandler)(int);
- typedef void (__cdecl *ACE_SignalHandlerV)(int);
+ using ACE_SignalHandler = void (__cdecl *)(int);
+ using ACE_SignalHandlerV = void (__cdecl *)(int);
#elif defined (INTEGRITY)
- typedef void (*ACE_SignalHandler)();
- typedef void (*ACE_SignalHandlerV)(int);
+ using ACE_SignalHandler = void (*)();
+ using ACE_SignalHandlerV = void (*)(int);
#elif defined (ACE_HAS_RTEMS)
- typedef void (*ACE_SignalHandler)();
- typedef void (*ACE_SignalHandlerV)();
+ using ACE_SignalHandler = void (*)();
+ using ACE_SignalHandlerV = void (*)();
#else /* This is necessary for some older broken version of cfront */
# if defined (SIG_PF)
# define ACE_SignalHandler SIG_PF
# else
- typedef void (*ACE_SignalHandler)(int);
+ using ACE_SignalHandler = void (*)(int);
# endif /* SIG_PF */
- typedef void (*ACE_SignalHandlerV)(...);
+ using ACE_SignalHandlerV = void (*)(...);
#endif /* ACE_HAS_CONSISTENT_SIGNAL_PROTOTYPES */
#if defined (ACE_LACKS_SIGACTION)