GDB (API)
/home/stan/gdb/src/gdb/common/gdb_vecs.h
Go to the documentation of this file.
00001 /* Some commonly-used VEC types.
00002 
00003    Copyright (C) 2012-2013 Free Software Foundation, Inc.
00004 
00005    This file is part of GDB.
00006 
00007    This program is free software; you can redistribute it and/or modify
00008    it under the terms of the GNU General Public License as published by
00009    the Free Software Foundation; either version 3 of the License, or
00010    (at your option) any later version.
00011 
00012    This program is distributed in the hope that it will be useful,
00013    but WITHOUT ANY WARRANTY; without even the implied warranty of
00014    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015    GNU General Public License for more details.
00016 
00017    You should have received a copy of the GNU General Public License
00018    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
00019 
00020 #ifndef GDB_VECS_H
00021 #define GDB_VECS_H
00022 
00023 #include "vec.h"
00024 
00025 typedef char *char_ptr;
00026 typedef const char *const_char_ptr;
00027 
00028 DEF_VEC_P (char_ptr);
00029 
00030 DEF_VEC_P (const_char_ptr);
00031 
00032 DEF_VEC_I (int);
00033 
00034 extern void free_char_ptr_vec (VEC (char_ptr) *char_ptr_vec);
00035 
00036 extern struct cleanup *
00037   make_cleanup_free_char_ptr_vec (VEC (char_ptr) *char_ptr_vec);
00038 
00039 extern void dirnames_to_char_ptr_vec_append (VEC (char_ptr) **vecp,
00040                                              const char *dirnames);
00041 
00042 extern VEC (char_ptr) *dirnames_to_char_ptr_vec (const char *dirnames);
00043 
00044 #endif /* GDB_VECS_H */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines