[svn:parrot] r45899 - in branches/string_consting: include/parrot src
bacek at svn.parrot.org
bacek at svn.parrot.org
Thu Apr 22 11:33:16 UTC 2010
Author: bacek
Date: Thu Apr 22 11:33:15 2010
New Revision: 45899
URL: https://trac.parrot.org/parrot/changeset/45899
Log:
Consting Parrot_psprintf
Modified:
branches/string_consting/include/parrot/misc.h
branches/string_consting/src/misc.c
Modified: branches/string_consting/include/parrot/misc.h
==============================================================================
--- branches/string_consting/include/parrot/misc.h Thu Apr 22 11:32:57 2010 (r45898)
+++ branches/string_consting/include/parrot/misc.h Thu Apr 22 11:33:15 2010 (r45899)
@@ -144,7 +144,7 @@
PARROT_WARN_UNUSED_RESULT
PARROT_CANNOT_RETURN_NULL
STRING * Parrot_psprintf(PARROT_INTERP,
- ARGIN(STRING *pat),
+ ARGIN(const STRING *pat),
ARGOUT(PMC *ary))
__attribute__nonnull__(1)
__attribute__nonnull__(2)
Modified: branches/string_consting/src/misc.c
==============================================================================
--- branches/string_consting/src/misc.c Thu Apr 22 11:32:57 2010 (r45898)
+++ branches/string_consting/src/misc.c Thu Apr 22 11:33:15 2010 (r45899)
@@ -222,7 +222,7 @@
/*
-=item C<STRING * Parrot_psprintf(PARROT_INTERP, STRING *pat, PMC *ary)>
+=item C<STRING * Parrot_psprintf(PARROT_INTERP, const STRING *pat, PMC *ary)>
Calls C<Parrot_sprintf_format()> with the insertion arguments in an
C<Array> PMC.
@@ -235,7 +235,7 @@
PARROT_WARN_UNUSED_RESULT
PARROT_CANNOT_RETURN_NULL
STRING *
-Parrot_psprintf(PARROT_INTERP, ARGIN(STRING *pat), ARGOUT(PMC *ary))
+Parrot_psprintf(PARROT_INTERP, ARGIN(const STRING *pat), ARGOUT(PMC *ary))
{
ASSERT_ARGS(Parrot_psprintf)
SPRINTF_OBJ obj = pmc_core;
More information about the parrot-commits
mailing list