diff options
| author | bje <bje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-08-15 10:00:28 +0000 |
|---|---|---|
| committer | bje <bje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-08-15 10:00:28 +0000 |
| commit | 6c798041b74aad70fc5898aa48e26cbe0b5dc4a5 (patch) | |
| tree | e552d0df86fc482e87d3291cebe2402399edadb8 /gcc | |
| parent | 4487a7e80c7f3186fc6d2ca4e1dbd022f89b2ae7 (diff) | |
| download | ppe42-gcc-6c798041b74aad70fc5898aa48e26cbe0b5dc4a5.tar.gz ppe42-gcc-6c798041b74aad70fc5898aa48e26cbe0b5dc4a5.zip | |
* vec.h: Comment improvements.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86021 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
| -rw-r--r-- | gcc/ChangeLog | 4 | ||||
| -rw-r--r-- | gcc/vec.h | 10 |
2 files changed, 9 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4419c3c458a..8c66c9dba46 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2004-08-15 Ben Elliston <bje@au.ibm.com> + + * vec.h: Comment improvements. + 2004-08-14 Roger Sayle <roger@eyesopen.com> * c-common.c (shorten_compare, pointer_int_sum, diff --git a/gcc/vec.h b/gcc/vec.h index 33d9bf6a6dd..35d260335b0 100644 --- a/gcc/vec.h +++ b/gcc/vec.h @@ -81,10 +81,10 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA the 'space' predicate will tell you whether there is spare capacity in the vector. You will not normally need to use these two functions. - Vector types are defined using a DEF_VEC_x(TYPEDEF) macro, and + Vector types are defined using a DEF_VEC_{O,P}(TYPEDEF) macro, and variables of vector type are declared using a VEC(TYPEDEF) - macro. The 'x' letter indicates whether TYPEDEF is a pointer (P) or - object (O) type. + macro. The characters O and P indicate whether TYPEDEF is a pointer + (P) or object (O) type. An example of their use would be, @@ -99,8 +99,8 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA 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; VEC_iterate(tree,s->v,ix,t); ix++) - { do something with t } + for (ix = 0; VEC_iterate(tree,s->v,ix,elt); ix++) + { do something with elt } */ |

