Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

consting local arguments

  • Loading branch information...
commit 353b6ac3ef195a68b8d8ffa27c91a72e265cb5ef 1 parent f3a9b26
@petdance petdance authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/pmc/nativepccmethod.pmc
View
8 src/pmc/nativepccmethod.pmc
@@ -38,7 +38,7 @@ Initializes the PMC with a C<NULL> function pointer.
*/
VTABLE void init() {
- Parrot_NativePCCMethod_attributes *attrs = PARROT_NATIVEPCCMETHOD(SELF);
+ Parrot_NativePCCMethod_attributes * const attrs = PARROT_NATIVEPCCMETHOD(SELF);
attrs->func = NULL;
attrs->signature = STRINGNULL;
@@ -146,7 +146,7 @@ Mark contained elements for GC.
*/
VTABLE void mark() {
- Parrot_NativePCCMethod_attributes *attrs = PARROT_NATIVEPCCMETHOD(SELF);
+ const Parrot_NativePCCMethod_attributes * const attrs = PARROT_NATIVEPCCMETHOD(SELF);
Parrot_gc_mark_STRING_alive(interp, attrs->signature);
Parrot_gc_mark_STRING_alive(interp, attrs->mmd_long_signature);
@@ -165,8 +165,8 @@ Create a clone of this PMC.
VTABLE PMC *clone() {
PMC * const ret = Parrot_pmc_new(INTERP, SELF->vtable->base_type);
- Parrot_NativePCCMethod_attributes *self_attrs = PARROT_NATIVEPCCMETHOD(SELF);
- Parrot_NativePCCMethod_attributes *ret_attrs = PARROT_NATIVEPCCMETHOD(ret);
+ const Parrot_NativePCCMethod_attributes * const self_attrs = PARROT_NATIVEPCCMETHOD(SELF);
+ Parrot_NativePCCMethod_attributes * const ret_attrs = PARROT_NATIVEPCCMETHOD(ret);
ret_attrs->func = self_attrs->func;
ret_attrs->signature = self_attrs->signature;
Please sign in to comment.
Something went wrong with that request. Please try again.