- Timestamp:
- 01/30/13 17:17:16 (11 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/cf_base.h
r4 r6 8 8 CF_TRUE = 0, 9 9 CF_FALSE = 1 10 } E_CF_BOOL ;10 } E_CF_BOOL, CF_BOOL; 11 11 12 12 #define CF_OK 0 13 13 #define CF_ERROR -1 14 14 15 #define CF_ERROR_BASE CF_ERROR * 1000 16 17 #define CF_ERROR_FILE CF_ERROR_BASE * 2 18 #define CF_ERROR_SOCKET CF_ERROR_BASE * 3 19 #define CF_ERROR_THREAD CF_ERROR_BASE * 4 20 #define CF_ERROR_MUTEX CF_ERROR_BASE * 5 21 #define CF_ERROR_DEBUG CF_ERROR_BASE * 6 15 22 16 23 #ifdef _WIN32 -
trunk/include/cf_file.h
r5 r6 7 7 #include "cf_base.h" 8 8 #include <fcntl.h> 9 10 #define CF_ERROR_FILE CF_ERROR_BASE * 211 9 12 10 #define CF_ERROR_FILE_OPEN CF_ERROR_FILE - 1 -
trunk/include/cf_socket.h
r4 r6 7 7 #include "cf_base.h" 8 8 #include <stddef.h> 9 10 #ifdef _WIN3211 typedef int socklen_t;12 #endif // #ifdef _WIN3213 14 #define CF_ERROR_SOCKET CF_ERROR_BASE * 315 9 16 10 #define CF_ERROR_SOCKET_INITIALIZE CF_ERROR_SOCKET - 1 … … 32 26 #define CF_ERROR_SOCKET_RECV CF_ERROR_SOCKET - 17 33 27 28 #ifdef _WIN32 29 typedef int socklen_t; 30 #endif // #ifdef _WIN32 31 34 32 #ifdef __cplusplus 35 33 extern "C" { 36 34 #endif 37 35 38 CF_EXPORT E_CF_BOOL36 CF_EXPORT CF_BOOL 39 37 CF_Socket_IsInitialized (void); 40 38 -
trunk/include/cf_thread.h
r5 r6 6 6 7 7 #include "cf_base.h" 8 9 #define CF_ERROR_THREAD_CREATE CF_ERROR_THREAD - 1 10 #define CF_ERROR_THREAD_INVALID_ARGS CF_ERROR_THREAD - 2 11 12 #define CF_ERROR_MUTEX_CREATE CF_ERROR_MUTEX - 1 13 #define CF_ERROR_MUTEX_INVALID_ARGS CF_ERROR_MUTEX - 2 8 14 9 15 #ifdef _WIN32 … … 17 23 18 24 typedef CF_THREAD_RETURN (CF_THREAD_CALL * CF_Thread_Function) (void *); 19 20 #define CF_ERROR_THREAD CF_ERROR_BASE * 421 #define CF_ERROR_THREAD_CREATE CF_ERROR_THREAD - 122 #define CF_ERROR_THREAD_INVALID_ARGS CF_ERROR_THREAD - 223 24 #define CF_ERROR_MUTEX CF_ERROR_BASE * 525 #define CF_ERROR_MUTEX_CREATE CF_ERROR_MUTEX - 126 #define CF_ERROR_MUTEX_INVALID_ARGS CF_ERROR_MUTEX - 227 25 28 26 typedef void * CF_Thread; -
trunk/src/cf_socket.c
r5 r6 28 28 return CF_ERROR_SOCKET_INVALID_SOCKET 29 29 30 E_CF_BOOL gInitialized = CF_FALSE;31 32 E_CF_BOOL30 CF_BOOL gInitialized = CF_FALSE; 31 32 CF_BOOL 33 33 CF_Socket_IsInitialized (void) 34 34 { -
trunk/src/makefile
r4 r6 40 40 cf_socket \ 41 41 cf_thread \ 42 cf_debug \ 42 43 43 44 LIB_NAME = CF
Note:
See TracChangeset
for help on using the changeset viewer.