[svn:parrot] r49141 - trunk/src/pmc

plobsing at svn.parrot.org plobsing at svn.parrot.org
Sun Sep 19 01:18:18 UTC 2010


Author: plobsing
Date: Sun Sep 19 01:18:18 2010
New Revision: 49141
URL: https://trac.parrot.org/parrot/changeset/49141

Log:
fill out doc stubs

Modified:
   trunk/src/pmc/imageiofreeze.pmc

Modified: trunk/src/pmc/imageiofreeze.pmc
==============================================================================
--- trunk/src/pmc/imageiofreeze.pmc	Sun Sep 19 01:00:06 2010	(r49140)
+++ trunk/src/pmc/imageiofreeze.pmc	Sun Sep 19 01:18:18 2010	(r49141)
@@ -42,13 +42,6 @@
 static opcode_t * GET_VISIT_CURSOR(ARGIN(const PMC *pmc))
         __attribute__nonnull__(1);
 
-PARROT_WARN_UNUSED_RESULT
-PARROT_CAN_RETURN_NULL
-PARROT_INLINE
-static PMC* id_list_get(PARROT_INTERP, ARGIN(const PMC *io), UINTVAL id)
-        __attribute__nonnull__(1)
-        __attribute__nonnull__(2);
-
 PARROT_INLINE
 static void INC_VISIT_CURSOR(ARGMOD(PMC *pmc), UINTVAL inc)
         __attribute__nonnull__(1)
@@ -68,9 +61,6 @@
     , PARROT_ASSERT_ARG(io))
 #define ASSERT_ARGS_GET_VISIT_CURSOR __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
        PARROT_ASSERT_ARG(pmc))
-#define ASSERT_ARGS_id_list_get __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
-       PARROT_ASSERT_ARG(interp) \
-    , PARROT_ASSERT_ARG(io))
 #define ASSERT_ARGS_INC_VISIT_CURSOR __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
        PARROT_ASSERT_ARG(pmc))
 #define ASSERT_ARGS_SET_VISIT_CURSOR __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
@@ -83,6 +73,8 @@
 
 =item C<static opcode_t * GET_VISIT_CURSOR(const PMC *pmc)>
 
+Get the buffer cursor. Buffer relocations are handled.
+
 =cut
 
 */
@@ -104,6 +96,8 @@
 
 =item C<static void SET_VISIT_CURSOR(PMC *pmc, const char *cursor)>
 
+Set the buffer cursor. Buffer relocations are handled.
+
 =cut
 
 */
@@ -123,6 +117,8 @@
 
 =item C<static void INC_VISIT_CURSOR(PMC *pmc, UINTVAL inc)>
 
+Increment the buffer cursor. Buffer relocations are handled.
+
 =cut
 
 */
@@ -142,6 +138,8 @@
 
 =item C<static void create_buffer(PARROT_INTERP, PMC *pmc, PMC *info)>
 
+Allocate the image buffer.
+
 =cut
 
 */
@@ -211,25 +209,6 @@
 #endif
 }
 
-/*
-
-=item C<static PMC* id_list_get(PARROT_INTERP, const PMC *io, UINTVAL id)>
-
-=cut
-
-*/
-
-PARROT_WARN_UNUSED_RESULT
-PARROT_CAN_RETURN_NULL
-PARROT_INLINE
-static PMC*
-id_list_get(PARROT_INTERP, ARGIN(const PMC *io), UINTVAL id)
-{
-    ASSERT_ARGS(id_list_get)
-
-    return VTABLE_get_pmc_keyed_int(interp, PARROT_IMAGEIOFREEZE(io)->todo, id - 1);
-}
-
 pmclass ImageIOFreeze auto_attrs {
     ATTR Buffer              *buffer;      /* buffer to store the image */
     ATTR size_t               pos;         /* current read/write buf position */


More information about the parrot-commits mailing list