00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041 #ifndef __CCXX_MACROS_H__
00042 #define __CCXX_MACROS_H__
00043
00044
00045
00046 #define COMMON_TPPORT_TYPE_DEFINED
00047 #define COMMON_EXCEPTION_DEFINED
00048
00049
00050
00051 #define ENTER_CRITICAL EnterMutex();
00052 #define LEAVE_CRITICAL LeaveMutex();
00053 #define ENTER_DEFERRED setCancel(THREAD_CANCEL_DEFERRED);
00054 #define LEAVE_DEFERRED setCancel(THREAD_CANCEL_IMMEDIATE);
00055
00056
00057
00058
00059
00060
00061
00062 #undef sleep
00063 #define sleep(x) ccxx_sleep((x) * 1000)
00064 #define delay(x) ccxx_sleep(x)
00065 #define yield() ccxx_yield()
00066
00067
00068
00069 #ifndef __EXPORT
00070 #define __EXPORT
00071 #endif
00072
00073 #ifndef __DLL
00074 #define __DLL
00075 #endif
00076
00077 #endif
00078
00079
00080
00081
00082
00083 #define RandomFile cc_RandomFile
00084 #define File cc_File
00085 #define NewFile cc_NewFile
00086 #define NamedPipe cc_NamedPipe
00087 #define MappedFile cc_MappedFile
00088 #define ThreadFile cc_ThreadFile
00089 #define SharedFile cc_SharedFile
00090 #define Socket cc_Socket
00091 #define TCPSocket cc_TCPSocket
00092 #define TCPStream cc_TCPStream
00093 #define TCPSession cc_TCPSession
00094 #define UDPSocket cc_UDPSocket
00095 #define UDPBroadcast cc_UDPBroadcast
00096 #define UDPTransmit cc_UDPTransmit
00097 #define UDPReceive cc_UDPReceive
00098 #define UDPDuplex cc_UDPDuplex
00099 #define SocketPort cc_SocketPort
00100 #define TimerPort cc_TimerPort
00101 #define SocketService cc_SocketService
00102 #define InetAddress cc_InetAddress
00103 #define InetMaskAddress cc_InetMaskAddress
00104 #define InetHostAddress cc_InetHostAddress
00105 #define InetMcastAddress cc_InetMcastAddress
00106 #define BroadcastAddress cc_BroadcastAddress
00107 #define Mutex cc_Mutex
00108 #define MutexCounter cc_MutexCounter
00109 #define AtomicCounter cc_AtomicCounter
00110 #define Semaphore cc_Semaphore
00111 #define Event cc_Event
00112 #define Buffer cc_Buffer
00113 #define FixedBuffer cc_FixedBuffer
00114 #define Pipe cc_Pipe
00115 #define Thread cc_Thread
00116 #define ThreadKey cc_ThreadKey
00117 #define MemPager cc_MemPager
00118 #define Keydata cc_Keydata
00119 #define PersistException cc_PersistException
00120 #define TypeManager cc_TypeManager
00121 #define BaseObject cc_BaseObject
00122 #define Engine cc_Engine
00123 #define Vector2D cc_Vector2D
00124 #define Serial cc_Serial
00125 #define Slog cc_Slog
00126 #define Dir cc_Dir
00127 #define FIFOSession cc_FIFOSession
00128 #define SharedMemPager cc_SharedMemPager
00129 #define ScriptCommand cc_ScriptCommand
00130 #define ScriptSymbol cc_ScriptSymbol
00131 #define ScriptInterp cc_ScriptInterp
00132 #define ScriptImage cc_ScriptImage
00133