cwCommon.h : Add literal result code values to result code comments.

This commit is contained in:
kpl 2020-03-16 22:58:05 -04:00
parent af87b52d2f
commit f2ec64c722

View File

@ -16,30 +16,30 @@ namespace cw
typedef enum typedef enum
{ {
kOkRC = 0, kOkRC = 0, // 0
kObjAllocFailRC, // an object allocation failed kObjAllocFailRC, // 1 - an object allocation failed
kObjFreeFailRC, // an object free failed kObjFreeFailRC, // 2 - an object free failed
kInvalidOpRC, // the current state does not support the operation kInvalidOpRC, // 3 - the current state does not support the operation
kInvalidArgRC, kInvalidArgRC, // 4 -
kInvalidIdRC, // an identifer was found to be invalid kInvalidIdRC, // 5 - an identifer was found to be invalid
kOpenFailRC, kOpenFailRC, // 6
kCloseFailRC, kCloseFailRC, // 7
kWriteFailRC, kWriteFailRC, // 8
kReadFailRC, kReadFailRC, // 9
kFlushFailRC, kFlushFailRC, // 10
kSeekFailRC, kSeekFailRC, // 11
kEofRC, kEofRC, // 12
kResourceNotAvailableRC, kResourceNotAvailableRC, // 13
kMemAllocFailRC, kMemAllocFailRC, // 14
kGetAttrFailRC, kGetAttrFailRC, // 15
kSetAttrFailRC, kSetAttrFailRC, // 16
kTimeOutRC, kTimeOutRC, // 17
kProtocolErrorRC, kProtocolErrorRC, // 18
kOpFailRC, kOpFailRC, // 19
kSyntaxErrorRC, kSyntaxErrorRC, // 20
kBufTooSmallRC, kBufTooSmallRC, // 21
kAssertFailRC, // used with cwLogFatal kAssertFailRC, // 22 - used with cwLogFatal
kBaseAppRC kBaseAppRC // 23
} cwRC_t; } cwRC_t;
typedef unsigned rc_t; typedef unsigned rc_t;