diff --git a/include/parrot/api.h b/include/parrot/api.h index c9eaece0b9..28908d03b4 100644 --- a/include/parrot/api.h +++ b/include/parrot/api.h @@ -218,13 +218,6 @@ Parrot_Int Parrot_api_set_runcore( Parrot_UInt trace) __attribute__nonnull__(2); -PARROT_API -Parrot_Int Parrot_api_set_stdhandles( - Parrot_PMC interp_pmc, - Parrot_Int in, - Parrot_Int out, - Parrot_Int err); - PARROT_API Parrot_Int Parrot_api_set_warnings(Parrot_PMC interp_pmc, Parrot_Int flags); @@ -293,7 +286,6 @@ Parrot_Int Parrot_api_wrap_imcc_hack( #define ASSERT_ARGS_Parrot_api_set_output_file __attribute__unused__ int _ASSERT_ARGS_CHECK = (0) #define ASSERT_ARGS_Parrot_api_set_runcore __attribute__unused__ int _ASSERT_ARGS_CHECK = (\ PARROT_ASSERT_ARG(corename)) -#define ASSERT_ARGS_Parrot_api_set_stdhandles __attribute__unused__ int _ASSERT_ARGS_CHECK = (0) #define ASSERT_ARGS_Parrot_api_set_warnings __attribute__unused__ int _ASSERT_ARGS_CHECK = (0) #define ASSERT_ARGS_Parrot_api_wrap_imcc_hack __attribute__unused__ int _ASSERT_ARGS_CHECK = (\ PARROT_ASSERT_ARG(sourcefile) \ diff --git a/include/parrot/string_funcs.h b/include/parrot/string_funcs.h index eefd85fc52..812f7e33c8 100644 --- a/include/parrot/string_funcs.h +++ b/include/parrot/string_funcs.h @@ -437,6 +437,9 @@ STRING * Parrot_str_from_int_base(PARROT_INTERP, __attribute__nonnull__(2) FUNC_MODIFIES(*tc); +STRING * Parrot_str_from_platform_cstring(PARROT_INTERP, char *c) + __attribute__nonnull__(1); + PARROT_WARN_UNUSED_RESULT PARROT_CANNOT_RETURN_NULL STRING* Parrot_str_from_uint(PARROT_INTERP, @@ -471,6 +474,9 @@ STRING * Parrot_str_iter_substr(PARROT_INTERP, __attribute__nonnull__(2) __attribute__nonnull__(3); +char * Parrot_str_to_platform_cstring(PARROT_INTERP, STRING *s) + __attribute__nonnull__(1); + #define ASSERT_ARGS_Parrot_str_bitwise_and __attribute__unused__ int _ASSERT_ARGS_CHECK = (\ PARROT_ASSERT_ARG(interp)) #define ASSERT_ARGS_Parrot_str_bitwise_not __attribute__unused__ int _ASSERT_ARGS_CHECK = (\ @@ -614,6 +620,9 @@ STRING * Parrot_str_iter_substr(PARROT_INTERP, #define ASSERT_ARGS_Parrot_str_from_int_base __attribute__unused__ int _ASSERT_ARGS_CHECK = (\ PARROT_ASSERT_ARG(interp) \ , PARROT_ASSERT_ARG(tc)) +#define ASSERT_ARGS_Parrot_str_from_platform_cstring \ + __attribute__unused__ int _ASSERT_ARGS_CHECK = (\ + PARROT_ASSERT_ARG(interp)) #define ASSERT_ARGS_Parrot_str_from_uint __attribute__unused__ int _ASSERT_ARGS_CHECK = (\ PARROT_ASSERT_ARG(interp) \ , PARROT_ASSERT_ARG(tc)) @@ -627,6 +636,9 @@ STRING * Parrot_str_iter_substr(PARROT_INTERP, PARROT_ASSERT_ARG(interp) \ , PARROT_ASSERT_ARG(str) \ , PARROT_ASSERT_ARG(l)) +#define ASSERT_ARGS_Parrot_str_to_platform_cstring \ + __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/api.c */