[svn:parrot] r46860 - in trunk: include/parrot src

petdance at svn.parrot.org petdance at svn.parrot.org
Fri May 21 15:11:45 UTC 2010


Author: petdance
Date: Fri May 21 15:11:45 2010
New Revision: 46860
URL: https://trac.parrot.org/parrot/changeset/46860

Log:
GCC 4.6 found more ufnctions to const

Modified:
   trunk/include/parrot/hash.h
   trunk/src/hash.c

Modified: trunk/include/parrot/hash.h
==============================================================================
--- trunk/include/parrot/hash.h	Fri May 21 14:54:58 2010	(r46859)
+++ trunk/include/parrot/hash.h	Fri May 21 15:11:45 2010	(r46860)
@@ -315,13 +315,13 @@
         __attribute__nonnull__(2);
 
 PARROT_WARN_UNUSED_RESULT
-PARROT_PURE_FUNCTION
+PARROT_CONST_FUNCTION
 int int_compare(SHIM_INTERP,
     ARGIN_NULLOK(const void *a),
     ARGIN_NULLOK(const void *b));
 
 PARROT_WARN_UNUSED_RESULT
-PARROT_PURE_FUNCTION
+PARROT_CONST_FUNCTION
 size_t key_hash_int(SHIM_INTERP,
     ARGIN_NULLOK(const void *value),
     size_t seed);

Modified: trunk/src/hash.c
==============================================================================
--- trunk/src/hash.c	Fri May 21 14:54:58 2010	(r46859)
+++ trunk/src/hash.c	Fri May 21 15:11:45 2010	(r46860)
@@ -375,7 +375,7 @@
 */
 
 PARROT_WARN_UNUSED_RESULT
-PARROT_PURE_FUNCTION
+PARROT_CONST_FUNCTION
 size_t
 key_hash_int(SHIM_INTERP, ARGIN_NULLOK(const void *value), size_t seed)
 {
@@ -396,7 +396,7 @@
 */
 
 PARROT_WARN_UNUSED_RESULT
-PARROT_PURE_FUNCTION
+PARROT_CONST_FUNCTION
 int
 int_compare(SHIM_INTERP, ARGIN_NULLOK(const void *a), ARGIN_NULLOK(const void *b))
 {
@@ -1121,8 +1121,7 @@
 */
 
 void
-parrot_chash_destroy_values(PARROT_INTERP, ARGMOD(Hash *hash),
-    NOTNULL(value_free func))
+parrot_chash_destroy_values(PARROT_INTERP, ARGMOD(Hash *hash), NOTNULL(value_free func))
 {
     ASSERT_ARGS(parrot_chash_destroy_values)
     UINTVAL i;


More information about the parrot-commits mailing list