[svn:parrot] r44413 - in branches/boehm_gc_2: include/parrot src/gc
bacek at svn.parrot.org
bacek at svn.parrot.org
Tue Feb 23 21:31:41 UTC 2010
Author: bacek
Date: Tue Feb 23 21:31:40 2010
New Revision: 44413
URL: https://trac.parrot.org/parrot/changeset/44413
Log:
Export Parrot_gc_strdup
Modified:
branches/boehm_gc_2/include/parrot/gc_api.h
branches/boehm_gc_2/src/gc/api.c
Modified: branches/boehm_gc_2/include/parrot/gc_api.h
==============================================================================
--- branches/boehm_gc_2/include/parrot/gc_api.h Tue Feb 23 21:31:18 2010 (r44412)
+++ branches/boehm_gc_2/include/parrot/gc_api.h Tue Feb 23 21:31:40 2010 (r44413)
@@ -157,6 +157,11 @@
__attribute__nonnull__(1);
PARROT_EXPORT
+char* Parrot_gc_strdup(PARROT_INTERP, ARGIN(const char * const str))
+ __attribute__nonnull__(1)
+ __attribute__nonnull__(2);
+
+PARROT_EXPORT
unsigned int Parrot_is_blocked_GC_mark(PARROT_INTERP)
__attribute__nonnull__(1);
@@ -316,10 +321,6 @@
__attribute__nonnull__(2)
FUNC_MODIFIES(*str);
-char* Parrot_gc_strdup(PARROT_INTERP, ARGIN(const char * const str))
- __attribute__nonnull__(1)
- __attribute__nonnull__(2);
-
PARROT_CANNOT_RETURN_NULL
STRING * Parrot_gc_sys_name(PARROT_INTERP)
__attribute__nonnull__(1);
@@ -362,6 +363,9 @@
#define ASSERT_ARGS_Parrot_gc_reallocate_memory_chunk_with_interior_pointers \
__attribute__unused__ int _ASSERT_ARGS_CHECK = (\
PARROT_ASSERT_ARG(interp))
+#define ASSERT_ARGS_Parrot_gc_strdup __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
+ PARROT_ASSERT_ARG(interp) \
+ , PARROT_ASSERT_ARG(str))
#define ASSERT_ARGS_Parrot_is_blocked_GC_mark __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
PARROT_ASSERT_ARG(interp))
#define ASSERT_ARGS_Parrot_is_blocked_GC_sweep __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
@@ -462,9 +466,6 @@
__attribute__unused__ int _ASSERT_ARGS_CHECK = (\
PARROT_ASSERT_ARG(interp) \
, PARROT_ASSERT_ARG(str))
-#define ASSERT_ARGS_Parrot_gc_strdup __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
- PARROT_ASSERT_ARG(interp) \
- , PARROT_ASSERT_ARG(str))
#define ASSERT_ARGS_Parrot_gc_sys_name __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
PARROT_ASSERT_ARG(interp))
#define ASSERT_ARGS_Parrot_gc_total_copied __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
Modified: branches/boehm_gc_2/src/gc/api.c
==============================================================================
--- branches/boehm_gc_2/src/gc/api.c Tue Feb 23 21:31:18 2010 (r44412)
+++ branches/boehm_gc_2/src/gc/api.c Tue Feb 23 21:31:40 2010 (r44413)
@@ -771,6 +771,7 @@
=cut
*/
+PARROT_EXPORT
char*
Parrot_gc_strdup(PARROT_INTERP, ARGIN(const char * const str))
{
More information about the parrot-commits
mailing list