[svn:parrot] r39367 - branches/pmc_i_ops/src/pmc

bacek at svn.parrot.org bacek at svn.parrot.org
Wed Jun 3 13:45:37 UTC 2009


Author: bacek
Date: Wed Jun  3 13:45:37 2009
New Revision: 39367
URL: https://trac.parrot.org/parrot/changeset/39367

Log:
[pmc][cage] Remove misleading comment in Integer about using *dest.

This comments cost me few hours of life. Hope this will not happen to someone else.

Modified:
   branches/pmc_i_ops/src/pmc/integer.pmc

Modified: branches/pmc_i_ops/src/pmc/integer.pmc
==============================================================================
--- branches/pmc_i_ops/src/pmc/integer.pmc	Wed Jun  3 13:35:57 2009	(r39366)
+++ branches/pmc_i_ops/src/pmc/integer.pmc	Wed Jun  3 13:45:37 2009	(r39367)
@@ -351,7 +351,7 @@
 
 =item C<PMC *add_int(INTVAL value, PMC *dest)>
 
-Adds C<value> to the integer and returns the result in C<*dest>.
+Adds C<value> to the integer. C<*dest> is unused.
 
 =cut
 
@@ -425,8 +425,7 @@
 
 =item C<PMC *subtract(PMC *value, PMC *dest)>
 
-Subtracts C<*value> from the integer and returns the result in C<*dest>.  If
-C<dest> is NULL, a PMC of this type.
+Subtracts C<*value> from the integer. C<*dest> is unused.
 
 Please note: as C<SELF> or C<value> maybe be subclassed, we have to call
 C<get_integer> and C<set_integer_native> always.
@@ -445,7 +444,7 @@
 
 =item C<PMC *subtract_int(INTVAL value, PMC *dest)>
 
-Subtracts C<value> from the integer and returns the result in C<*dest>.
+Subtracts C<value> from the integer. C<*dest> is unused.
 
 =cut
 
@@ -517,7 +516,7 @@
 
 =item C<PMC *multiply_int(INTVAL value, PMC *dest)>
 
-Multiplies the integer by C<*value> and returns the result in C<*dest>.
+Multiplies the integer by C<*value>. C<*dest> is unused.
 
 =cut
 
@@ -600,7 +599,7 @@
 
 =item C<PMC *divide_float(FLOATVAL value, PMC *dest)>
 
-Divides the number by C<value> and returns the result in C<*dest>.
+Divides the number by C<value>. C<*dest> is unused.
 
 =item C<void i_divide(PMC *value)>
 
@@ -645,7 +644,7 @@
 
 =item C<PMC *floor_divide_float(FLOATVAL value, PMC *dest)>
 
-Divides the number by C<value> and returns the result in C<*dest>.
+Divides the number by C<value>. C<*dest> is unused.
 
 =item C<void i_floor_divide(PMC *value)>
 
@@ -729,8 +728,7 @@
 
 =item C<PMC *modulus(FLOATVAL value, PMC *dest)>
 
-Calculates the value of corrected C<mod> C<value> and returns
-the result in C<dest>. See also ops/math.ops.
+Calculates the value of corrected C<mod> C<value>.  See also ops/math.ops.
 
 =item C<void i_modulus(PMC *value)>
 


More information about the parrot-commits mailing list