Changeset 109 in libcf for trunk/include/cf_error.h


Ignore:
Timestamp:
06/04/13 14:25:10 (11 years ago)
Author:
cheese
Message:

#1 add typical data structure algorithms (linked-list / queue / stak) and rename symbol for context of each modules

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/cf_error.h

    r88 r109  
    5353#define CF_ERROR_THREAD                     CF_ERROR_BASE * 4
    5454/*------------------------------------------------------------*/
    55 #define CF_ERROR_THREAD_ALLOC               CF_ERROR_THREAD - 1
     55#define CF_ERROR_THREAD_CREATE_CTX          CF_ERROR_THREAD - 1
    5656#define CF_ERROR_THREAD_CREATE              CF_ERROR_THREAD - 2
    5757#define CF_ERROR_THREAD_INVALID_ARGS        CF_ERROR_THREAD - 3
     
    7676#define CF_ERROR_DEBUG_POP_CALLSTACK        CF_ERROR_DEBUG - 3
    7777#define CF_ERROR_DEBUG_PEEK_CALLSTACK       CF_ERROR_DEBUG - 4
    78 #define CF_ERROR_DEBUG_ALLOCATE_CTX         CF_ERROR_DEBUG - 5
     78#define CF_ERROR_DEBUG_CREATE_CTX           CF_ERROR_DEBUG - 5
    7979/* }}} debug */
    8080
     
    9494#define CF_ERROR_LOG_NOT_INITIALIZE         CF_ERROR_LOG - 11
    9595#define CF_ERROR_LOG_INVALID_ARGS           CF_ERROR_LOG - 12
    96 #define CF_ERROR_LOG_ALLOCATE_CTX           CF_ERROR_LOG - 13
     96#define CF_ERROR_LOG_CREATE_CTX             CF_ERROR_LOG - 13
    9797#define CF_ERROR_LOG_CREATE_FILE            CF_ERROR_LOG - 14
    9898#define CF_ERROR_LOG_ALLOCATE_BUFFER        CF_ERROR_LOG - 15
     
    107107/* }}} codec */
    108108
     109/* data structure - list/queue/stack {{{ */
     110#define CF_ERROR_DS                         CF_ERROR_BASE * 9
     111/*------------------------------------------------------------*/
     112#define CF_ERROR_DS_INVALID_CTX             CF_ERROR_DS - 1
     113#define CF_ERROR_DS_INVALID_TRAVERSER       CF_ERROR_DS - 2
     114#define CF_ERROR_DS_INVALID_ARGS            CF_ERROR_DS - 3
     115#define CF_ERROR_DS_CREATE_CTX              CF_ERROR_DS - 4
     116#define CF_ERROR_DS_CREATE_NODE             CF_ERROR_DS - 5
     117#define CF_ERROR_DS_NO_MORE                 CF_ERROR_DS - 6
     118/* }}} data structure - list/queue/stack */
    109119
    110120#endif // #ifndef __CF_ERROR_H__
Note: See TracChangeset for help on using the changeset viewer.