+2004-09-22 Nathan Sidwell <nathan@codesourcery.com>
+
+ * vec.h (VEC_space): Return true if there _is_ space.
+ (VEC_reserve): Adjust.
+
2004-09-22 Richard Sandiford <rsandifo@redhat.com>
* config/mips/mips.c (mips_function_value): For o32, o64, n32 and n64,
if (parser_check_super_interface (type_decl, class_decl, wfl))
return;
- if (VEC_space (tree, BINFO_BASE_BINFOS (binfo), 1))
+ if (!VEC_space (tree, BINFO_BASE_BINFOS (binfo), 1))
{
/* Extend the binfo - by reallocating and copying it. */
tree new_binfo;
(VEC (TDEF) *vec_, int alloc_) \
{ \
return vec_ ? ((vec_)->alloc - (vec_)->num \
- < (unsigned)(alloc_ < 0 ? 1 : alloc_)) : alloc_ != 0; \
+ >= (unsigned)(alloc_ < 0 ? 1 : alloc_)) : !alloc_; \
} \
\
static inline int VEC_OP (TDEF,reserve) \
(VEC (TDEF) **vec_, int alloc_ MEM_STAT_DECL) \
{ \
- int extend = VEC_OP (TDEF,space) (*vec_, alloc_); \
+ int extend = !VEC_OP (TDEF,space) (*vec_, alloc_); \
\
if (extend) \
*vec_ = (VEC (TDEF) *) vec_##a##_p_reserve (*vec_, alloc_ PASS_MEM_STAT); \
(VEC (TDEF) *vec_, int alloc_) \
{ \
return vec_ ? ((vec_)->alloc - (vec_)->num \
- < (unsigned)(alloc_ < 0 ? 1 : alloc_)) : alloc_ != 0; \
+ >= (unsigned)(alloc_ < 0 ? 1 : alloc_)) : !alloc_; \
} \
\
static inline int VEC_OP (TDEF,reserve) \
(VEC (TDEF) **vec_, int alloc_ MEM_STAT_DECL) \
{ \
- int extend = VEC_OP (TDEF,space) (*vec_, alloc_); \
+ int extend = !VEC_OP (TDEF,space) (*vec_, alloc_); \
\
if (extend) \
*vec_ = (VEC (TDEF) *) vec_##a##_o_reserve (*vec_, alloc_, \