* vec.h: Fix the example use.

From-SVN: r84195
This commit is contained in:
Nathan Sidwell 2004-07-07 08:25:04 +00:00 committed by Nathan Sidwell
parent 84936f6f88
commit 2272d9cf7c
2 changed files with 7 additions and 3 deletions

View File

@ -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.

View File

@ -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 }
*/