rename uc_strvec_expand->uc_strvec_check_expand, and clarify
docs
This commit is contained in:
+4
-4
@@ -24,7 +24,7 @@ int uc_strv_grow(struct UCStrv *strv, size_t cnt)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int uc_strv_expand(struct UCStrv *strv)
|
||||
int uc_strv_check_expand(struct UCStrv *strv)
|
||||
{
|
||||
int rc = 0;
|
||||
|
||||
@@ -41,7 +41,7 @@ int uc_strv_append(struct UCStrv *strv, const char *str)
|
||||
int rc;
|
||||
char *dup;
|
||||
|
||||
rc = uc_strv_expand(strv);
|
||||
rc = uc_strv_check_expand(strv);
|
||||
if (rc != 0) {
|
||||
return rc;
|
||||
}
|
||||
@@ -60,7 +60,7 @@ int uc_strv_append(struct UCStrv *strv, const char *str)
|
||||
int uc_strv_append_nocopy(struct UCStrv *strv, char *str)
|
||||
{
|
||||
int rc;
|
||||
rc = uc_strv_expand(strv);
|
||||
rc = uc_strv_check_expand(strv);
|
||||
|
||||
if (rc != 0) {
|
||||
return rc;
|
||||
@@ -76,7 +76,7 @@ int uc_strv_null_terminate(struct UCStrv *strv)
|
||||
{
|
||||
int rc;
|
||||
|
||||
rc = uc_strv_expand(strv);
|
||||
rc = uc_strv_check_expand(strv);
|
||||
if (rc != 0) {
|
||||
return rc;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user