diff options
author | Ian Lance Taylor <iant@google.com> | 2007-01-17 17:42:10 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2007-01-17 17:42:10 +0000 |
commit | efb7e1e02617b779d8bd376d9dcccd0cdb4d3a94 (patch) | |
tree | d11736fef8af73b7b6d37819f905d5ad1e594615 /libjava/java/io/ObjectStreamConstants.h | |
parent | 9dd8004e9108e08d45b25781bc6d44a624f690b8 (diff) | |
download | gcc-efb7e1e02617b779d8bd376d9dcccd0cdb4d3a94.zip gcc-efb7e1e02617b779d8bd376d9dcccd0cdb4d3a94.tar.gz gcc-efb7e1e02617b779d8bd376d9dcccd0cdb4d3a94.tar.bz2 |
vec.h (VEC_reserve_exact): Define.
./: * vec.h (VEC_reserve_exact): Define.
(vec_gc_p_reserve_exact): Declare.
(vec_gc_o_reserve_exact): Declare.
(vec_heap_p_reserve_exact): Declare.
(vec_heap_o_reserve_exact): Declare.
(VEC_OP (T,A,reserve_exact)): New static inline function, three
versions.
(VEC_OP (T,A,reserve)) [all versions]: Remove handling of
negative parameter.
(VEC_OP (T,A,alloc)) [all versions]: Call ...reserve_exact.
(VEC_OP (T,A,copy)) [all versions]: Likewise.
(VEC_OP (T,a,safe_grow)) [all versions]: Likewise.
* vec.c (calculate_allocation): Add exact parameter. Change all
callers.
(vec_gc_o_reserve_1): New static function, from vec_gc_o_reserve.
(vec_gc_p_reserve, vec_gc_o_reserve): Call vec_gc_o_reserve_1.
(vec_gc_p_reserve_exact, vec_gc_o_reserve_exact): New functions.
(vec_heap_o_reserve_1): New static function, from vec_heap_o_reserve.
(vec_heap_p_reserve, vec_heap_o_reserve): Call vec_heap_o_reserve_1.
(vec_heap_p_reserve_exact): New function.
(vec_heap_o_reserve_exact): New function.
cp/:
* class.c (add_method): Call VEC_reserve_exact rather than passing
a negative size to VEC_reserve.
From-SVN: r120861
Diffstat (limited to 'libjava/java/io/ObjectStreamConstants.h')
0 files changed, 0 insertions, 0 deletions