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]

[PATCH] Fix comment in tree.c.


The parameter name is "purpose" not "parm".  (As an aside, I keep running
into mistakes like this one, where (I suspect) somebody changed the code and
didn't update the comment, because "EVERYbody knows what THIS function does".
Sigh.  I'll fix them as I find them.)

Committed as obvious.


2003-02-10  Phil Edwards  <pme@gcc.gnu.org>

	* tree.c (build_tree_list):  Fix parameter names in comment.


Index: tree.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree.c,v
retrieving revision 1.288
diff -u -5 -p -r1.288 tree.c
--- tree.c	10 Jan 2003 02:22:04 -0000	1.288
+++ tree.c	10 Feb 2003 20:41:43 -0000
@@ -1068,11 +1068,11 @@ build_tree_list (parm, value)
   TREE_VALUE (t) = value;
   return t;
 }
 
 /* Return a newly created TREE_LIST node whose
-   purpose and value fields are PARM and VALUE
+   purpose and value fields are PURPOSE and VALUE
    and whose TREE_CHAIN is CHAIN.  */
 
 tree
 tree_cons (purpose, value, chain)
      tree purpose, value, chain;


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