diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2004-07-07 08:25:04 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2004-07-07 08:25:04 +0000 |
commit | 2272d9cf7ce97e702af9a203209f4aa4a649faa9 (patch) | |
tree | b1f3131ab2330b129334db6856373ee2ad86d0ae /gcc/vec.h | |
parent | 84936f6f88f198da47855b9d7d2ff0e7e904fbb4 (diff) | |
download | gcc-2272d9cf7ce97e702af9a203209f4aa4a649faa9.tar.gz |
* vec.h: Fix the example use.
From-SVN: r84195
Diffstat (limited to 'gcc/vec.h')
-rw-r--r-- | gcc/vec.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/vec.h b/gcc/vec.h index 2e0ab8e0bf8..be4aaad1977 100644 --- a/gcc/vec.h +++ b/gcc/vec.h @@ -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 } */ |