develooper Front page | perl.cvs.parrot | Postings from December 2008

[svn:parrot] r34648 - trunk/compilers/pirc/new

From:
kjs
Date:
December 30, 2008 06:25
Subject:
[svn:parrot] r34648 - trunk/compilers/pirc/new
Message ID:
20081230142508.AD1E3CB9FA@x12.develooper.com
Author: kjs
Date: Tue Dec 30 06:25:07 2008
New Revision: 34648

Modified:
   trunk/compilers/pirc/new/pircompunit.c

Log:
[pirc] some comments updates. 

Modified: trunk/compilers/pirc/new/pircompunit.c
==============================================================================
--- trunk/compilers/pirc/new/pircompunit.c	(original)
+++ trunk/compilers/pirc/new/pircompunit.c	Tue Dec 30 06:25:07 2008
@@ -590,7 +590,9 @@
 
 Add a new target to the list pointed to by C<list>. C<list> points to
 the last element, C<<last->next>> points to the first. The list is
-circular linked. The newly added target C<t> is returned.
+circular linked. The newly added target C<t> is returned, which is also
+the "root" pointer of the list (pointing to the last element, through
+its "next" pointer you get the first item in the list.)
 
 =cut
 
@@ -744,7 +746,7 @@
 
 Add argument C<newarg> at the end of the list pointed to by C<last>.
 The list is circular linked, and C<last> points to the last item.
-Being circular linked, C<<arg1->next>> points to the first item.
+Being circular linked, C<<last->next>> points to the first item.
 
 After adding the element, the I<root> pointer (that points to the last
 element of the list) is updated, and returned.



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About