[svn:parrot] r49237 - branches/typesafe_consttable/src

plobsing at svn.parrot.org plobsing at svn.parrot.org
Wed Sep 22 05:25:36 UTC 2010


Author: plobsing
Date: Wed Sep 22 05:25:36 2010
New Revision: 49237
URL: https://trac.parrot.org/parrot/changeset/49237

Log:
document static functions in pod
Hey users, here's a bunch of functions you can't use!

Modified:
   branches/typesafe_consttable/src/packdump.c
   branches/typesafe_consttable/src/packout.c

Modified: branches/typesafe_consttable/src/packdump.c
==============================================================================
--- branches/typesafe_consttable/src/packdump.c	Wed Sep 22 05:14:27 2010	(r49236)
+++ branches/typesafe_consttable/src/packdump.c	Wed Sep 22 05:25:36 2010	(r49237)
@@ -173,6 +173,18 @@
     Parrot_io_printf(interp, ")\n");
 }
 
+
+/*
+
+=item C<static void PackFile_Constant_dump_str(PARROT_INTERP, const
+PackFile_ConstTable *ct, const STRING *self)>
+
+Print the representation of a string constant.
+
+=cut
+
+*/
+
 static void
 PackFile_Constant_dump_str(PARROT_INTERP, ARGIN(const PackFile_ConstTable *ct),
                             ARGIN(const STRING *self))
@@ -188,6 +200,18 @@
     Parrot_io_printf(interp, "    } ],\n");
 }
 
+
+/*
+
+=item C<static void PackFile_Constant_dump_pmc(PARROT_INTERP, const
+PackFile_ConstTable *ct, PMC *self)>
+
+Print the representation of a PMC constant.
+
+=cut
+
+*/
+
 static void
 PackFile_Constant_dump_pmc(PARROT_INTERP, ARGIN(const PackFile_ConstTable *ct),
                             ARGIN(PMC *self))

Modified: branches/typesafe_consttable/src/packout.c
==============================================================================
--- branches/typesafe_consttable/src/packout.c	Wed Sep 22 05:14:27 2010	(r49236)
+++ branches/typesafe_consttable/src/packout.c	Wed Sep 22 05:25:36 2010	(r49237)
@@ -356,17 +356,10 @@
 
 /*
 
-=item C<opcode_t * PackFile_Constant_pack(PARROT_INTERP, const
-PackFile_ConstTable *const_table, const PackFile_Constant *self, opcode_t
-*cursor)>
+=item C<static opcode_t * PackFile_Constant_pack_key(PARROT_INTERP, PMC *self,
+const PackFile_ConstTable *const_table, opcode_t *cursor)>
 
-Pack a PackFile Constant into a contiguous region of memory.
-
-Note that the memory block had better have at least the amount of memory
-indicated by C<PackFile_pack_size()>.
-
-This means that you MUST call C<PackFile_pack_size()> before
-C<PackFile_Constant_pack()>
+Pack a Key constant into a contiguous region of memory.
 
 The data is zero-padded to an opcode_t-boundary, so pad bytes may be added.
 (Note this padding is not yet implemented for FLOATVALs.)


More information about the parrot-commits mailing list