This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

vec.h comment improvements


Approved by Nathan Sidwell.

2004-08-15  Ben Elliston  <bje@au.ibm.com>

	* vec.h: Comment improvements.

Index: vec.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/vec.h,v
retrieving revision 2.14
retrieving revision 2.15
diff -u -p -r2.14 -r2.15
--- vec.h       2 Aug 2004 16:45:50 -0000       2.14
+++ vec.h       15 Aug 2004 10:00:28 -0000      2.15
@@ -81,10 +81,10 @@ Software Foundation, 59 Temple Place - S
    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 - S
 
    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 }
 
 */
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]