Remove free_char_ptr_vec
Nothing is using it anymore. gdb/ChangeLog: * common/gdb_vecs.c (free_char_ptr_vec): Remove. * common/gdb_vecs.h (free_char_ptr_vec): Remove.
This commit is contained in:
parent
ccb2231cd8
commit
54693cf5f1
@ -1,3 +1,8 @@
|
|||||||
|
2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
|
||||||
|
|
||||||
|
* common/gdb_vecs.c (free_char_ptr_vec): Remove.
|
||||||
|
* common/gdb_vecs.h (free_char_ptr_vec): Remove.
|
||||||
|
|
||||||
2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
|
2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
|
||||||
|
|
||||||
* charset.c (struct charset_vector): New.
|
* charset.c (struct charset_vector): New.
|
||||||
|
@ -21,24 +21,6 @@
|
|||||||
#include "gdb_vecs.h"
|
#include "gdb_vecs.h"
|
||||||
#include "host-defs.h"
|
#include "host-defs.h"
|
||||||
|
|
||||||
/* Call xfree for each element of CHAR_PTR_VEC and final VEC_free for
|
|
||||||
CHAR_PTR_VEC itself.
|
|
||||||
|
|
||||||
You must not modify CHAR_PTR_VEC after it got registered with this function
|
|
||||||
by make_cleanup as the CHAR_PTR_VEC base address may change on its updates.
|
|
||||||
Contrary to VEC_free this function does not (cannot) clear the pointer. */
|
|
||||||
|
|
||||||
void
|
|
||||||
free_char_ptr_vec (VEC (char_ptr) *char_ptr_vec)
|
|
||||||
{
|
|
||||||
int ix;
|
|
||||||
char *name;
|
|
||||||
|
|
||||||
for (ix = 0; VEC_iterate (char_ptr, char_ptr_vec, ix, name); ++ix)
|
|
||||||
xfree (name);
|
|
||||||
VEC_free (char_ptr, char_ptr_vec);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Worker function to split character delimiter separated string of fields
|
/* Worker function to split character delimiter separated string of fields
|
||||||
STR into a char pointer vector. */
|
STR into a char pointer vector. */
|
||||||
|
|
||||||
|
@ -29,8 +29,6 @@ DEF_VEC_P (char_ptr);
|
|||||||
|
|
||||||
DEF_VEC_P (const_char_ptr);
|
DEF_VEC_P (const_char_ptr);
|
||||||
|
|
||||||
extern void free_char_ptr_vec (VEC (char_ptr) *char_ptr_vec);
|
|
||||||
|
|
||||||
/* Split STR, a list of DELIMITER-separated fields, into a char pointer vector.
|
/* Split STR, a list of DELIMITER-separated fields, into a char pointer vector.
|
||||||
|
|
||||||
You may modify the returned strings. */
|
You may modify the returned strings. */
|
||||||
|
Loading…
Reference in New Issue
Block a user