gdb/common/gdb_vecs.h - gdb

Global variables defined

Data types defined

Macros defined

Source code

  1. /* Some commonly-used VEC types.

  2.    Copyright (C) 2012-2015 Free Software Foundation, Inc.

  3.    This file is part of GDB.

  4.    This program is free software; you can redistribute it and/or modify
  5.    it under the terms of the GNU General Public License as published by
  6.    the Free Software Foundation; either version 3 of the License, or
  7.    (at your option) any later version.

  8.    This program is distributed in the hope that it will be useful,
  9.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  10.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  11.    GNU General Public License for more details.

  12.    You should have received a copy of the GNU General Public License
  13.    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */

  14. #ifndef GDB_VECS_H
  15. #define GDB_VECS_H

  16. #include "vec.h"

  17. typedef char *char_ptr;
  18. typedef const char *const_char_ptr;

  19. DEF_VEC_P (char_ptr);

  20. DEF_VEC_P (const_char_ptr);

  21. DEF_VEC_I (int);

  22. extern void free_char_ptr_vec (VEC (char_ptr) *char_ptr_vec);

  23. extern struct cleanup *
  24.   make_cleanup_free_char_ptr_vec (VEC (char_ptr) *char_ptr_vec);

  25. extern VEC (char_ptr) *delim_string_to_char_ptr_vec (const char *str,
  26.                                                      char delimiter);

  27. extern void dirnames_to_char_ptr_vec_append (VEC (char_ptr) **vecp,
  28.                                              const char *dirnames);

  29. extern VEC (char_ptr) *dirnames_to_char_ptr_vec (const char *dirnames);

  30. #endif /* GDB_VECS_H */