Commit 2272d9cf by Nathan Sidwell Committed by Nathan Sidwell

* vec.h: Fix the example use.

From-SVN: r84195
parent 84936f6f
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 }
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment