[svn:parrot] r47309 - in branches/gsoc_nfg/src/string: . encoding
darbelo at svn.parrot.org
darbelo at svn.parrot.org
Wed Jun 2 20:46:39 UTC 2010
Author: darbelo
Date: Wed Jun 2 20:46:39 2010
New Revision: 47309
URL: https://trac.parrot.org/parrot/changeset/47309
Log:
Headerize.
Modified:
branches/gsoc_nfg/src/string/encoding/nfg.c
branches/gsoc_nfg/src/string/grapheme.h
Modified: branches/gsoc_nfg/src/string/encoding/nfg.c
==============================================================================
--- branches/gsoc_nfg/src/string/encoding/nfg.c Wed Jun 2 20:30:13 2010 (r47308)
+++ branches/gsoc_nfg/src/string/encoding/nfg.c Wed Jun 2 20:46:39 2010 (r47309)
@@ -53,7 +53,7 @@
if (hash != 0xffff) {
nfg_encode(interp, dest, index, src, offs, len, graphemes + 1);
- buf[index] = add_grapheme_from_substr(dest->extra, src, aux, offs-aux, hash);
+ buf[index] = add_grapheme_from_substr(interp, dest->extra, src, aux, offs-aux, hash);
return;
}
offs++;
Modified: branches/gsoc_nfg/src/string/grapheme.h
==============================================================================
--- branches/gsoc_nfg/src/string/grapheme.h Wed Jun 2 20:30:13 2010 (r47308)
+++ branches/gsoc_nfg/src/string/grapheme.h Wed Jun 2 20:46:39 2010 (r47309)
@@ -37,6 +37,24 @@
|| (0xfe1f < (c) && (c) < 0xfe30))
/* HEADERIZER BEGIN: src/string/grapheme.c */
+/* Don't modify between HEADERIZER BEGIN / HEADERIZER END. Your changes will be lost. */
+
+UChar32 * add_grapheme_from_substr(PARROT_INTERP,
+ grapheme_table *table,
+ STRING *src,
+ UINTVAL start,
+ UINTVAL len,
+ UINTVAL hash)
+ __attribute__nonnull__(1);
+
+grapheme_table * create_grapheme_table(PARROT_INTERP, UINTVAL n)
+ __attribute__nonnull__(1);
+
+#define ASSERT_ARGS_add_grapheme_from_substr __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
+ PARROT_ASSERT_ARG(interp))
+#define ASSERT_ARGS_create_grapheme_table __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
+ PARROT_ASSERT_ARG(interp))
+/* Don't modify between HEADERIZER BEGIN / HEADERIZER END. Your changes will be lost. */
/* HEADERIZER END: src/string/grapheme.c */
#endif /* PARROT_HAS_ICU */
More information about the parrot-commits
mailing list