Browse files

The init_pmc vtable I added should have been in Packfile PMC, not Pac…

…kfileView. benabik++ for catching the mistake
  • Loading branch information...
1 parent 4647173 commit 11f9d7cabf0688775d1e9b2dd8229c12fc9df609 @Whiteknight Whiteknight committed Jul 20, 2012
Showing with 9 additions and 9 deletions.
  1. +9 −0 src/pmc/packfile.pmc
  2. +0 −9 src/pmc/packfileview.pmc
View
9 src/pmc/packfile.pmc
@@ -112,6 +112,10 @@ pmclass Packfile auto_attrs {
Initialize the structure. (Create a blank PackFile object.)
+=item C<VTABLE void init_pmc(view)>
+
+Create a new PackFile from an existing PackFileView.
+
=cut
*/
@@ -132,6 +136,11 @@ Initialize the structure. (Create a blank PackFile object.)
PackFile_destroy(INTERP, pf);
}
+ VTABLE void init_pmc(PMC *view) {
+ VTABLE_init(interp, SELF);
+ VTABLE_set_pointer(interp, SELF, VTABLE_get_pointer(interp, view));
+ }
+
/*
View
9 src/pmc/packfileview.pmc
@@ -146,10 +146,6 @@ pmclass PackfileView auto_attrs {
Create the new PMC and set flags
-=item C<VTABLE void init_pmc(view)>
-
-Create a new PackFile from an existing PackFileView.
-
=item C<VTABLE void destroy()>
Destroy the PMC *AND* the underlying PackFile*
@@ -180,11 +176,6 @@ Mark the PMC and the PackFile* contents
PObj_custom_mark_destroy_SETALL(SELF);
}
- VTABLE void init_pmc(PMC *view) {
- VTABLE_init(interp, SELF);
- VTABLE_set_pointer(interp, SELF, VTABLE_get_pointer(interp, view));
- }
-
VTABLE void destroy() {
Parrot_PackfileView_attributes * const attrs =
PARROT_PACKFILEVIEW(SELF);

0 comments on commit 11f9d7c

Please sign in to comment.