summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2020-11-04 17:51:09 +0000
committerDimitry Andric <dim@FreeBSD.org>2020-11-04 17:51:09 +0000
commit7b7921b47e41798468048030401669244f08a7e5 (patch)
tree5a2388013bc6ce801c0a4937c28be2b3cd610de1 /contrib
parentcff169880e88bbb6ee1b39713bdd7acba2aca201 (diff)
downloadsrc-test2-7b7921b47e41798468048030401669244f08a7e5.tar.gz
src-test2-7b7921b47e41798468048030401669244f08a7e5.zip
Make vector-related functions in libcxxrt's demangler static
Follow-up to r367323 by re-adding static to a number of the functions copied from elftc's libelftc_vstr.c. This was requested by upstream. PR: 250702 MFC after: 3 days
Notes
Notes: svn path=/head/; revision=367337
Diffstat (limited to 'contrib')
-rw-r--r--contrib/libcxxrt/libelftc_dem_gnu3.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/contrib/libcxxrt/libelftc_dem_gnu3.c b/contrib/libcxxrt/libelftc_dem_gnu3.c
index 5ca044ff89b8..a8d061591826 100644
--- a/contrib/libcxxrt/libelftc_dem_gnu3.c
+++ b/contrib/libcxxrt/libelftc_dem_gnu3.c
@@ -153,7 +153,7 @@ get_strlen_sum(const struct vector_str *v)
/**
* @brief Deallocate resource in vector_str.
*/
-void
+static void
vector_str_dest(struct vector_str *v)
{
size_t i;
@@ -174,7 +174,7 @@ vector_str_dest(struct vector_str *v)
* @param l Length of the string.
* @return -1 at failed, 0 at not found, 1 at found.
*/
-int
+static int
vector_str_find(const struct vector_str *v, const char *o, size_t l)
{
size_t i;
@@ -197,7 +197,7 @@ vector_str_find(const struct vector_str *v, const char *o, size_t l)
* @param l Length of the string.
* @return NULL at failed or NUL terminated new allocated string.
*/
-char *
+static char *
vector_str_get_flat(const struct vector_str *v, size_t *l)
{
ssize_t elem_pos, elem_size, rtn_size;
@@ -263,7 +263,7 @@ vector_str_grow(struct vector_str *v)
* @brief Initialize vector_str.
* @return false at failed, true at success.
*/
-bool
+static bool
vector_str_init(struct vector_str *v)
{
@@ -287,7 +287,7 @@ vector_str_init(struct vector_str *v)
* @brief Remove last element in vector_str.
* @return false at failed, true at success.
*/
-bool
+static bool
vector_str_pop(struct vector_str *v)
{
@@ -309,7 +309,7 @@ vector_str_pop(struct vector_str *v)
* @brief Push back string to vector.
* @return false at failed, true at success.
*/
-bool
+static bool
vector_str_push(struct vector_str *v, const char *str, size_t len)
{
@@ -333,7 +333,7 @@ vector_str_push(struct vector_str *v, const char *str, size_t len)
* @brief Push front org vector to det vector.
* @return false at failed, true at success.
*/
-bool
+static bool
vector_str_push_vector_head(struct vector_str *dst, struct vector_str *org)
{
size_t i, j, tmp_cap;
@@ -373,7 +373,7 @@ vector_str_push_vector_head(struct vector_str *dst, struct vector_str *org)
* @brief Push org vector to the tail of det vector.
* @return false at failed, true at success.
*/
-bool
+static bool
vector_str_push_vector(struct vector_str *dst, struct vector_str *org)
{
size_t i, j, tmp_cap;
@@ -416,7 +416,7 @@ vector_str_push_vector(struct vector_str *dst, struct vector_str *org)
* If r_len is not NULL, string length will be returned.
* @return NULL at failed or NUL terminated new allocated string.
*/
-char *
+static char *
vector_str_substr(const struct vector_str *v, size_t begin, size_t end,
size_t *r_len)
{