[svn:parrot] r45910 - in branches/string_consting: include/parrot src
bacek at svn.parrot.org
bacek at svn.parrot.org
Thu Apr 22 13:04:52 UTC 2010
Author: bacek
Date: Thu Apr 22 13:04:52 2010
New Revision: 45910
URL: https://trac.parrot.org/parrot/changeset/45910
Log:
Constify src/sub.c
Modified:
branches/string_consting/include/parrot/sub.h
branches/string_consting/src/sub.c
Modified: branches/string_consting/include/parrot/sub.h
==============================================================================
--- branches/string_consting/include/parrot/sub.h Thu Apr 22 13:04:38 2010 (r45909)
+++ branches/string_consting/include/parrot/sub.h Thu Apr 22 13:04:52 2010 (r45910)
@@ -224,7 +224,7 @@
PARROT_CAN_RETURN_NULL
PARROT_WARN_UNUSED_RESULT
PMC* Parrot_find_dynamic_pad(PARROT_INTERP,
- ARGIN(STRING *lex_name),
+ ARGIN(const STRING *lex_name),
ARGIN(PMC *ctx))
__attribute__nonnull__(1)
__attribute__nonnull__(2)
@@ -233,7 +233,7 @@
PARROT_CAN_RETURN_NULL
PARROT_WARN_UNUSED_RESULT
PMC* Parrot_find_pad(PARROT_INTERP,
- ARGIN(STRING *lex_name),
+ ARGIN(const STRING *lex_name),
ARGIN(PMC *ctx))
__attribute__nonnull__(1)
__attribute__nonnull__(2)
Modified: branches/string_consting/src/sub.c
==============================================================================
--- branches/string_consting/src/sub.c Thu Apr 22 13:04:38 2010 (r45909)
+++ branches/string_consting/src/sub.c Thu Apr 22 13:04:52 2010 (r45910)
@@ -323,7 +323,7 @@
/*
-=item C<PMC* Parrot_find_pad(PARROT_INTERP, STRING *lex_name, PMC *ctx)>
+=item C<PMC* Parrot_find_pad(PARROT_INTERP, const STRING *lex_name, PMC *ctx)>
Locate the LexPad containing the given name. Return NULL on failure.
@@ -334,7 +334,7 @@
PARROT_CAN_RETURN_NULL
PARROT_WARN_UNUSED_RESULT
PMC*
-Parrot_find_pad(PARROT_INTERP, ARGIN(STRING *lex_name), ARGIN(PMC *ctx))
+Parrot_find_pad(PARROT_INTERP, ARGIN(const STRING *lex_name), ARGIN(PMC *ctx))
{
ASSERT_ARGS(Parrot_find_pad)
while (1) {
@@ -355,7 +355,8 @@
/*
-=item C<PMC* Parrot_find_dynamic_pad(PARROT_INTERP, STRING *lex_name, PMC *ctx)>
+=item C<PMC* Parrot_find_dynamic_pad(PARROT_INTERP, const STRING *lex_name, PMC
+*ctx)>
Locate the LexPad containing the given C<lex_name> in C<ctx> and
its caller pads. Return PMCNULL on failure.
@@ -367,7 +368,7 @@
PARROT_CAN_RETURN_NULL
PARROT_WARN_UNUSED_RESULT
PMC*
-Parrot_find_dynamic_pad(PARROT_INTERP, ARGIN(STRING *lex_name), ARGIN(PMC *ctx))
+Parrot_find_dynamic_pad(PARROT_INTERP, ARGIN(const STRING *lex_name), ARGIN(PMC *ctx))
{
ASSERT_ARGS(Parrot_find_dynamic_pad)
while (1) {
More information about the parrot-commits
mailing list