[svn:parrot] r48551 - in trunk: compilers/imcc include/parrot src/io

petdance at svn.parrot.org petdance at svn.parrot.org
Tue Aug 17 15:52:30 UTC 2010


Author: petdance
Date: Tue Aug 17 15:52:29 2010
New Revision: 48551
URL: https://trac.parrot.org/parrot/changeset/48551

Log:
added PARROT_PURE_FUNCTION annotations

Modified:
   trunk/compilers/imcc/sets.c
   trunk/compilers/imcc/sets.h
   trunk/include/parrot/io.h
   trunk/src/io/socket_api.c

Modified: trunk/compilers/imcc/sets.c
==============================================================================
--- trunk/compilers/imcc/sets.c	Tue Aug 17 15:43:29 2010	(r48550)
+++ trunk/compilers/imcc/sets.c	Tue Aug 17 15:52:29 2010	(r48551)
@@ -154,6 +154,7 @@
 
 */
 
+PARROT_PURE_FUNCTION
 int
 set_equal(ARGIN(const Set *s1), ARGIN(const Set *s2))
 {

Modified: trunk/compilers/imcc/sets.h
==============================================================================
--- trunk/compilers/imcc/sets.h	Tue Aug 17 15:43:29 2010	(r48550)
+++ trunk/compilers/imcc/sets.h	Tue Aug 17 15:52:29 2010	(r48551)
@@ -33,6 +33,7 @@
         __attribute__nonnull__(1)
         __attribute__nonnull__(2);
 
+PARROT_PURE_FUNCTION
 int set_equal(ARGIN(const Set *s1), ARGIN(const Set *s2))
         __attribute__nonnull__(1)
         __attribute__nonnull__(2);

Modified: trunk/include/parrot/io.h
==============================================================================
--- trunk/include/parrot/io.h	Tue Aug 17 15:43:29 2010	(r48550)
+++ trunk/include/parrot/io.h	Tue Aug 17 15:52:29 2010	(r48551)
@@ -875,6 +875,7 @@
         FUNC_MODIFIES(*socket);
 
 PARROT_EXPORT
+PARROT_PURE_FUNCTION
 PARROT_WARN_UNUSED_RESULT
 PARROT_CANNOT_RETURN_NULL
 INTVAL Parrot_io_socket_is_closed(ARGMOD(PMC *socket))

Modified: trunk/src/io/socket_api.c
==============================================================================
--- trunk/src/io/socket_api.c	Tue Aug 17 15:43:29 2010	(r48550)
+++ trunk/src/io/socket_api.c	Tue Aug 17 15:52:29 2010	(r48551)
@@ -107,6 +107,7 @@
 
 
 PARROT_EXPORT
+PARROT_PURE_FUNCTION
 PARROT_WARN_UNUSED_RESULT
 PARROT_CANNOT_RETURN_NULL
 INTVAL


More information about the parrot-commits mailing list