[svn:parrot] r40486 - in branches/auto_attrs: lib/Parrot/Pmc2c src/pmc
NotFound at svn.parrot.org
NotFound at svn.parrot.org
Tue Aug 11 07:56:34 UTC 2009
Author: NotFound
Date: Tue Aug 11 07:56:32 2009
New Revision: 40486
URL: https://trac.parrot.org/parrot/changeset/40486
Log:
fix several codingstd
Modified:
branches/auto_attrs/lib/Parrot/Pmc2c/PMCEmitter.pm
branches/auto_attrs/src/pmc/cpointer.pmc
branches/auto_attrs/src/pmc/parrotinterpreter.pmc
branches/auto_attrs/src/pmc/stringiterator.pmc
branches/auto_attrs/src/pmc/unmanagedstruct.pmc
Modified: branches/auto_attrs/lib/Parrot/Pmc2c/PMCEmitter.pm
==============================================================================
--- branches/auto_attrs/lib/Parrot/Pmc2c/PMCEmitter.pm Tue Aug 11 07:38:33 2009 (r40485)
+++ branches/auto_attrs/lib/Parrot/Pmc2c/PMCEmitter.pm Tue Aug 11 07:56:32 2009 (r40486)
@@ -767,7 +767,8 @@
if ( @{$self->attributes} && $self->{flags}{auto_attrs} ) {
$set_attr_size .= "sizeof(Parrot_${classname}_attributes)";
- } else {
+ }
+ else {
$set_attr_size .= "0" if exists($self->{has_method}{init}) ||
exists($self->{has_method}{init_pmc});
}
Modified: branches/auto_attrs/src/pmc/cpointer.pmc
==============================================================================
--- branches/auto_attrs/src/pmc/cpointer.pmc Tue Aug 11 07:38:33 2009 (r40485)
+++ branches/auto_attrs/src/pmc/cpointer.pmc Tue Aug 11 07:56:32 2009 (r40486)
@@ -80,10 +80,10 @@
VTABLE void mark() {
STRING *sig;
- GET_ATTR_sig(INTERP, SELF, sig);
+ GET_ATTR_sig(INTERP, SELF, sig);
if (sig) {
- void *pointer;
- GET_ATTR_pointer(INTERP, SELF, pointer);
+ void *pointer;
+ GET_ATTR_pointer(INTERP, SELF, pointer);
Parrot_gc_mark_PObj_alive(interp, (PObj *)sig);
if (pointer) {
Modified: branches/auto_attrs/src/pmc/parrotinterpreter.pmc
==============================================================================
--- branches/auto_attrs/src/pmc/parrotinterpreter.pmc Tue Aug 11 07:38:33 2009 (r40485)
+++ branches/auto_attrs/src/pmc/parrotinterpreter.pmc Tue Aug 11 07:56:32 2009 (r40486)
@@ -241,7 +241,7 @@
mem_allocate_zeroed_typed(Parrot_ParrotInterpreter_attributes);
PMC_data(SELF) = attrs;
}
- if (!PMC_interp(SELF)) {
+ if (!PMC_interp(SELF)) {
create_interp(SELF, INTERP);
}
PObj_active_destroy_SET(SELF);
@@ -267,7 +267,7 @@
mem_allocate_zeroed_typed(Parrot_ParrotInterpreter_attributes);
PMC_data(SELF) = attrs;
}
- if (!PMC_interp(SELF)) {
+ if (!PMC_interp(SELF)) {
create_interp(SELF, p);
}
PObj_active_destroy_SET(SELF);
Modified: branches/auto_attrs/src/pmc/stringiterator.pmc
==============================================================================
--- branches/auto_attrs/src/pmc/stringiterator.pmc Tue Aug 11 07:38:33 2009 (r40485)
+++ branches/auto_attrs/src/pmc/stringiterator.pmc Tue Aug 11 07:56:32 2009 (r40486)
@@ -39,7 +39,7 @@
*/
VTABLE void init_pmc(PMC *string) {
- SET_ATTR_string(INTERP, SELF, string);
+ SET_ATTR_string(INTERP, SELF, string);
/* by default, iterate from start */
SELF.set_integer_native(ITERATE_FROM_START);
Modified: branches/auto_attrs/src/pmc/unmanagedstruct.pmc
==============================================================================
--- branches/auto_attrs/src/pmc/unmanagedstruct.pmc Tue Aug 11 07:38:33 2009 (r40485)
+++ branches/auto_attrs/src/pmc/unmanagedstruct.pmc Tue Aug 11 07:56:32 2009 (r40486)
@@ -664,8 +664,6 @@
=over 4
-/*
-
=item C<void init_pmc(PMC *value)>
Initialize the struct with some data.
More information about the parrot-commits
mailing list