removed a duplicate function
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-07-15 18:52:57 +09:00
parent 8c5affe9a5
commit 43062e4db3
3 changed files with 13 additions and 46 deletions

View File

@ -95,7 +95,7 @@ literals -->
// the rest must be manipulated with code...
------------------------------ */
static int copy_string_to (hcl_t* hcl, const hcl_oocs_t* src, hcl_oocs_t* dst, hcl_oow_t* dstcapa, int append, hcl_ooch_t delim_char)
int hcl_copy_string_to (hcl_t* hcl, const hcl_oocs_t* src, hcl_oocs_t* dst, hcl_oow_t* dstcapa, int append, hcl_ooch_t delim_char)
{
hcl_oow_t len, pos;
@ -211,7 +211,7 @@ static int add_temporary_variable (hcl_t* hcl, const hcl_oocs_t* name, hcl_oow_t
hcl_seterrnum (hcl, HCL_EEXIST);
return -1;
}
x = copy_string_to(hcl, name, &hcl->c->tv.s, &hcl->c->tv.capa, 1, ' ');
x = hcl_copy_string_to(hcl, name, &hcl->c->tv.s, &hcl->c->tv.capa, 1, ' ');
if (HCL_LIKELY(x >= 0)) hcl->c->tv.wcount++;
return x;
}