[svn:parrot] r47706 - in branches/gsoc_nfg/src/string: . encoding

darbelo at svn.parrot.org darbelo at svn.parrot.org
Sat Jun 19 11:44:32 UTC 2010


Author: darbelo
Date: Sat Jun 19 11:44:32 2010
New Revision: 47706
URL: https://trac.parrot.org/parrot/changeset/47706

Log:
Add some function docs and ASSERT_ARGS()

Modified:
   branches/gsoc_nfg/src/string/encoding/nfg.c
   branches/gsoc_nfg/src/string/grapheme.c

Modified: branches/gsoc_nfg/src/string/encoding/nfg.c
==============================================================================
--- branches/gsoc_nfg/src/string/encoding/nfg.c	Sat Jun 19 11:23:51 2010	(r47705)
+++ branches/gsoc_nfg/src/string/encoding/nfg.c	Sat Jun 19 11:44:32 2010	(r47706)
@@ -190,6 +190,19 @@
 #if PARROT_HAS_ICU
 #  include <unicode/ustring.h>
 
+
+/*
+
+=item C<static void nfg_encode(PARROT_INTERP, STRING *dest, UINTVAL index, STRING *src,
+UINTVAL offs, UINTVAL len, UINTVAL graphemes)
+
+Helper function to NFG-encode strings. It handles the (lazy) creation of the grapheme
+table and the graphemes it contains.
+
+=cut
+
+*/
+
 static void
 nfg_encode(PARROT_INTERP, STRING *dest, UINTVAL index, STRING *src,
            UINTVAL offs, UINTVAL len, UINTVAL graphemes)

Modified: branches/gsoc_nfg/src/string/grapheme.c
==============================================================================
--- branches/gsoc_nfg/src/string/grapheme.c	Sat Jun 19 11:23:51 2010	(r47705)
+++ branches/gsoc_nfg/src/string/grapheme.c	Sat Jun 19 11:44:32 2010	(r47706)
@@ -17,6 +17,7 @@
 INTVAL
 grapheme_table_capacity(PARROT_INTERP, grapheme_table *table)
 {
+    ASSERT_ARGS(grapheme_table_capacity)
     return table->size - table->used;
 }
 


More information about the parrot-commits mailing list