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

mikehh at svn.parrot.org mikehh at svn.parrot.org
Sun Mar 28 14:16:18 UTC 2010


Author: mikehh
Date: Sun Mar 28 14:16:18 2010
New Revision: 45248
URL: https://trac.parrot.org/parrot/changeset/45248

Log:
fix codetest failure - unused assert macros - src/pmc/imageio.pmc

Modified:
   trunk/src/pmc/imageio.pmc

Modified: trunk/src/pmc/imageio.pmc
==============================================================================
--- trunk/src/pmc/imageio.pmc	Sun Mar 28 14:09:17 2010	(r45247)
+++ trunk/src/pmc/imageio.pmc	Sun Mar 28 14:16:18 2010	(r45248)
@@ -124,6 +124,8 @@
 static void
 create_buffer(PARROT_INTERP, ARGIN_NULLOK(PMC *pmc), ARGMOD(PMC *info))
 {
+    ASSERT_ARGS(create_buffer)
+
     INTVAL  len;
 
     if (!PMC_IS_NULL(pmc)) {
@@ -159,6 +161,8 @@
 static void
 ensure_buffer_size(PARROT_INTERP, ARGIN(PMC *io), size_t len)
 {
+    ASSERT_ARGS(ensure_buffer_size)
+
     Buffer *buf         = PARROT_IMAGEIO(io)->buffer;
     const size_t used   = PARROT_IMAGEIO(io)->pos;
     const int need_free = Buffer_buflen(buf) - used - len;
@@ -182,6 +186,8 @@
 PARROT_INLINE
 static INTVAL
 INFO_HAS_DATA(ARGIN(PMC *io)) {
+    ASSERT_ARGS(INFO_HAS_DATA)
+
     return PARROT_IMAGEIO(io)->pos < PARROT_IMAGEIO(io)->input_length;
 }
 
@@ -190,6 +196,8 @@
 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_IMAGEIO(io)->todo, id - 1);
 }
 
@@ -199,6 +207,8 @@
 static PMC *
 visit_todo_list_thaw(PARROT_INTERP, ARGIN(PMC* info))
 {
+    ASSERT_ARGS(visit_todo_list_thaw)
+
     const UINTVAL  n            = VTABLE_shift_integer(interp, info);
     const UINTVAL  id           = PackID_get_PMCID(n);
     const int      packid_flags = PackID_get_FLAGS(n);
@@ -237,6 +247,8 @@
 static void
 visit_todo_list_freeze(PARROT_INTERP, ARGIN_NULLOK(PMC* pmc), ARGMOD(PMC* info))
 {
+    ASSERT_ARGS(visit_todo_list_freeze)
+
     UINTVAL id;
     int packid_type;
 


More information about the parrot-commits mailing list