[svn:parrot] r38537 - trunk/lib/Parrot/Pmc2c

Infinoid at svn.parrot.org Infinoid at svn.parrot.org
Thu May 7 15:36:23 UTC 2009


Author: Infinoid
Date: Thu May  7 15:36:21 2009
New Revision: 38537
URL: https://trac.parrot.org/parrot/changeset/38537

Log:
[pmc2c] Fix warnings caused by tt631_part2 branch merge.
The code had been generating the necessary prototypes for the Default PMC, but no others.  It is needed elsewhere, too.
This fixes the following warnings:
./src/pmc/managedstruct.c:1089: warning: implicit declaration of function 'Parrot_UnManagedStruct_update_vtable'
./src/pmc/managedstruct.c:1100: warning: implicit declaration of function 'Parrot_UnManagedStruct_ro_update_vtable'
(Those warnings turn into errors under a C++ compiler.)

Modified:
   trunk/lib/Parrot/Pmc2c/PMCEmitter.pm

Modified: trunk/lib/Parrot/Pmc2c/PMCEmitter.pm
==============================================================================
--- trunk/lib/Parrot/Pmc2c/PMCEmitter.pm	Thu May  7 12:27:30 2009	(r38536)
+++ trunk/lib/Parrot/Pmc2c/PMCEmitter.pm	Thu May  7 15:36:21 2009	(r38537)
@@ -125,11 +125,8 @@
     # Emit available functions for work with vtables.
     my $export = $self->is_dynamic ? 'PARROT_DYNEXT_EXPORT ' : 'PARROT_EXPORT ';
 
-    if (!$name eq 'default') {
-        $h->emit("${export}VTABLE* Parrot_${name}_update_vtable(VTABLE*);\n");
-        $h->emit("${export}VTABLE* Parrot_${name}_ro_update_vtable(VTABLE*);\n");
-    }
-
+    $h->emit("${export}VTABLE* Parrot_${name}_update_vtable(VTABLE*);\n");
+    $h->emit("${export}VTABLE* Parrot_${name}_ro_update_vtable(VTABLE*);\n");
     $h->emit("${export}VTABLE* Parrot_${name}_get_vtable(PARROT_INTERP);\n");
     $h->emit("${export}VTABLE* Parrot_${name}_ro_get_vtable(PARROT_INTERP);\n");
 


More information about the parrot-commits mailing list