StringBuffer 功能完善
This commit is contained in:
+13
-4
@@ -110,10 +110,14 @@ typedef time_t c_time_t;
|
||||
/* ------------------------------------------------------------------------------------------------------------------ */
|
||||
/* */
|
||||
|
||||
typedef c_size_t c_index_t;
|
||||
|
||||
/* ------------------------------------------------------------------------------------------------------------------ */
|
||||
/* */
|
||||
|
||||
typedef int c_err_t;
|
||||
|
||||
#define C_ERR_OK (0)
|
||||
#define C_ERR_SUCCESS C_ERR_OK
|
||||
#define C_ERR_FAIL (-1)
|
||||
#define C_ERR_NOMEM (-2)
|
||||
#define C_ERR_PARAM (-3)
|
||||
@@ -121,10 +125,15 @@ typedef int c_err_t;
|
||||
#define C_ERR_EMPTY (-5)
|
||||
#define C_ERR_INDEX (-6)
|
||||
#define C_ERR_STATUS (-7)
|
||||
#define C_ERR_NOT_FOUND (-8)
|
||||
#define C_ERR_ALREADY_EXISTS (-9)
|
||||
#define C_ERR_INVALID C_ERR_FAIL
|
||||
#define C_ERR_ALREADY_EXISTS (-8)
|
||||
|
||||
#define C_ERR_INVALID C_ERR_FAIL
|
||||
#define C_ERR_SUCCESS C_ERR_OK
|
||||
#define C_SUCCESS C_ERR_OK
|
||||
#define C_ERR_OUT_OF_MEMORY C_ERR_NOMEM
|
||||
#define C_ERR_INVALID_PARAM C_ERR_PARAM
|
||||
#define C_ERR_OUT_OF_BOUNDS C_ERR_INDEX
|
||||
#define C_ERR_NOT_FOUND ((c_index_t)C_ERR_FAIL)
|
||||
|
||||
|
||||
#endif /*INCLUDED_C_TYPES_H*/
|
||||
|
||||
Reference in New Issue
Block a user