[svn:parrot] r46861 - trunk/src/string

petdance at svn.parrot.org petdance at svn.parrot.org
Fri May 21 15:41:38 UTC 2010


Author: petdance
Date: Fri May 21 15:41:38 2010
New Revision: 46861
URL: https://trac.parrot.org/parrot/changeset/46861

Log:
Marking more functions as pure

Modified:
   trunk/src/string/charset.c

Modified: trunk/src/string/charset.c
==============================================================================
--- trunk/src/string/charset.c	Fri May 21 15:11:45 2010	(r46860)
+++ trunk/src/string/charset.c	Fri May 21 15:41:38 2010	(r46861)
@@ -149,6 +149,7 @@
 */
 
 PARROT_EXPORT
+PARROT_PURE_FUNCTION
 PARROT_CAN_RETURN_NULL
 PARROT_WARN_UNUSED_RESULT
 const CHARSET *
@@ -227,6 +228,7 @@
 */
 
 PARROT_EXPORT
+PARROT_PURE_FUNCTION
 PARROT_WARN_UNUSED_RESULT
 INTVAL
 Parrot_charset_number_of_str(SHIM_INTERP, ARGIN(const STRING *src))
@@ -254,6 +256,7 @@
 */
 
 PARROT_EXPORT
+PARROT_PURE_FUNCTION
 PARROT_CAN_RETURN_NULL
 PARROT_WARN_UNUSED_RESULT
 STRING *
@@ -277,6 +280,7 @@
 */
 
 PARROT_EXPORT
+PARROT_PURE_FUNCTION
 PARROT_CAN_RETURN_NULL
 PARROT_WARN_UNUSED_RESULT
 const CHARSET *
@@ -301,6 +305,7 @@
 */
 
 PARROT_EXPORT
+PARROT_PURE_FUNCTION
 PARROT_CAN_RETURN_NULL
 PARROT_WARN_UNUSED_RESULT
 const char *
@@ -539,6 +544,7 @@
 */
 
 PARROT_EXPORT
+PARROT_PURE_FUNCTION
 PARROT_WARN_UNUSED_RESULT
 PARROT_CAN_RETURN_NULL
 const CHARSET *
@@ -560,6 +566,7 @@
 */
 
 PARROT_EXPORT
+PARROT_PURE_FUNCTION
 PARROT_WARN_UNUSED_RESULT
 PARROT_CAN_RETURN_NULL
 charset_converter_t
@@ -572,7 +579,7 @@
 
     for (i = 0; i < n; ++i) {
         if (lhs == all_charsets->set[i].charset) {
-            One_charset * const left = all_charsets->set + i;
+            const One_charset * const left = all_charsets->set + i;
             const int nc = left->n_converters;
             int j;
 


More information about the parrot-commits mailing list