diff options
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/vec.h | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0b9f703..63ebf59 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2004-07-07 Nathan Sidwell <nathan@codesourcery.com> + + * vec.h: Fix the example use. + 2004-07-06 Richard Henderson <rth@redhat.com> * langhooks-def.h (LANG_HOOKS_GIMPLE_BEFORE_INLINING): Remove. @@ -85,9 +85,9 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA struct my_struct *s; - if (VEC_length(tree,s)) { we have some contents } - VEC_safe_push(tree,s,decl); // append some decl onto the end - for (ix = 0; (t = VEC_iterate(tree,s,ix)); ix++) + if (VEC_length(tree,s->v)) { we have some contents } + VEC_safe_push(tree,s->v,decl); // append some decl onto the end + for (ix = 0; (t = VEC_iterate(tree,s->v,ix)); ix++) { do something with t } */ |