Changes to attempt to silence bcc64x
[ACE_TAO.git] / ACE / ace / config-lite.h
blob87d168f25047ab5b7bf517b053586d87fcfd527f
1 // -*- C++ -*-
3 //==========================================================================
4 /**
5 * @file config-lite.h
7 * @author Doug Schmidt <d.schmidt@vanderbilt.edu>
8 * @author Jesper S. M|ller<stophph@diku.dk>
9 * @author and a cast of thousands...
11 * This file contains the contents of the old config-all.h in order to
12 * avoid a circular dependency problem caused by some of the new
13 * includes added to config-all.h, e.g., OS_main.h.
15 //==========================================================================
17 #ifndef ACE_CONFIG_LITE_H
18 #define ACE_CONFIG_LITE_H
20 #include /**/ "ace/pre.h"
22 #include "ace/config-macros.h"
24 #if !defined (ACE_LACKS_PRAGMA_ONCE)
25 # pragma once
26 #endif /* ACE_LACKS_PRAGMA_ONCE */
28 // ============================================================================
29 // UNICODE macros (to be added later)
30 // ============================================================================
32 // Get the unicode (i.e. ACE_TCHAR) defines
33 # include "ace/ace_wchar.h"
35 // ============================================================================
36 // at_exit declarations
37 // ============================================================================
39 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
41 // Marker for cleanup, used by ACE_Exit_Info.
42 extern int ace_exit_hook_marker;
44 ACE_END_VERSIONED_NAMESPACE_DECL
46 // For use by <ACE_OS::exit>.
47 extern "C"
49 typedef void (*ACE_EXIT_HOOK) ();
52 // Signature for registering a cleanup function that is used by the
53 // ACE_Object_Manager and the ACE_Thread_Manager.
54 # if defined (ACE_HAS_SIG_C_FUNC)
55 extern "C" {
56 # endif /* ACE_HAS_SIG_C_FUNC */
57 typedef void (*ACE_CLEANUP_FUNC)(void *object, void *param) /* noexcept */;
58 # if defined (ACE_HAS_SIG_C_FUNC)
60 # endif /* ACE_HAS_SIG_C_FUNC */
62 // ============================================================================
63 // log_msg declarations
64 // ============================================================================
66 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
68 # if defined (ACE_HAS_WIN32_STRUCTURED_EXCEPTIONS)
69 typedef int (*ACE_SEH_EXCEPT_HANDLER)(void *);
70 // Prototype of win32 structured exception handler functions.
71 // They are used to get the exception handling expression or
72 // as exception handlers.
73 # endif /* ACE_HAS_WIN32_STRUCTURED_EXCEPTIONS */
75 class ACE_OS_Thread_Descriptor;
76 class ACE_OS_Log_Msg_Attributes;
77 typedef void (*ACE_INIT_LOG_MSG_HOOK) (ACE_OS_Log_Msg_Attributes &attr
78 # if defined (ACE_HAS_WIN32_STRUCTURED_EXCEPTIONS)
79 , ACE_SEH_EXCEPT_HANDLER selector
80 , ACE_SEH_EXCEPT_HANDLER handler
81 # endif /* ACE_HAS_WIN32_STRUCTURED_EXCEPTIONS */
83 typedef void (*ACE_INHERIT_LOG_MSG_HOOK) (ACE_OS_Thread_Descriptor*,
84 ACE_OS_Log_Msg_Attributes &);
86 typedef void (*ACE_CLOSE_LOG_MSG_HOOK) ();
88 typedef void (*ACE_SYNC_LOG_MSG_HOOK) (const ACE_TCHAR *prog_name);
90 typedef ACE_OS_Thread_Descriptor *(*ACE_THR_DESC_LOG_MSG_HOOK) ();
92 ACE_END_VERSIONED_NAMESPACE_DECL
94 #include /**/ "ace/post.h"
96 #endif /* ACE_CONFIG_LITE_H */