StringBuffer 功能完善

This commit is contained in:
2026-08-10 11:09:47 +08:00
parent e6a29bcdfd
commit 62cfd720c9
4 changed files with 1176 additions and 125 deletions
+13 -4
View File
@@ -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*/