X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fvec.h;h=66905880c56323b468ffa81829954e433b7ea8c6;hb=1a2ab13a57bdddae90088e334aa792d2af742a3d;hp=f6b7f07146ca2fd0355290c2a103617e39556b2e;hpb=350da6eece0dc73ae5a74a81064f8d26f9d429d8;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/vec.h b/gdb/vec.h index f6b7f07146..66905880c5 100644 --- a/gdb/vec.h +++ b/gdb/vec.h @@ -1,12 +1,13 @@ /* Vector API for GDB. - Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc. + Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 + Free Software Foundation, Inc. Contributed by Nathan Sidwell This file is part of GDB. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or + the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -15,9 +16,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. */ + along with this program. If not, see . */ #if !defined (GDB_VEC_H) #define GDB_VEC_H @@ -378,7 +377,7 @@ /* Reallocate an array of elements with prefix. */ extern void *vec_p_reserve (void *, int); extern void *vec_o_reserve (void *, int, size_t, size_t); -#define vec_free(V) xfree (V) +#define vec_free_(V) xfree (V) #define VEC_ASSERT_INFO ,__FILE__,__LINE__ #define VEC_ASSERT_DECL ,const char *file_,unsigned line_ @@ -458,7 +457,7 @@ static inline void VEC_OP (T,free) \ (VEC(T) **vec_) \ { \ if (*vec_) \ - vec_free (*vec_); \ + vec_free_ (*vec_); \ *vec_ = NULL; \ } \ \ @@ -696,7 +695,7 @@ static inline void VEC_OP (T,free) \ (VEC(T) **vec_) \ { \ if (*vec_) \ - vec_free (*vec_); \ + vec_free_ (*vec_); \ *vec_ = NULL; \ } \ \ @@ -954,7 +953,7 @@ static inline void VEC_OP (T,free) \ (VEC(T) **vec_) \ { \ if (*vec_) \ - vec_free (*vec_); \ + vec_free_ (*vec_); \ *vec_ = NULL; \ } \ \