Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[perl #39849] [PATCH] pmc2c: Wrap MMD initializer code in block

0 views
Skip to first unread message

Ron Blaschke

unread,
Jul 16, 2006, 12:46:00 PM7/16/06
to bugs-bi...@rt.perl.org
# New Ticket Created by Ron Blaschke
# Please include the string: [perl #39849]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=39849 >


Problem: languages/lua doesn't compile on Win32, with the following
error message.
luanumber.c
luanumber.c(1152) : error C2143: syntax error : missing ';' before
'type'
luanumber.c(1154) : error C2065: 'my_enum_class_LuaString' :
undeclared identifier
luanumber.c(1195) : error C2143: syntax error : missing '{' before
'*'
luanumber.c(1197) : error C2371: 'Parrot_lib_luanumber_load' :
redefinition; different basic types
luanumber.c(1195) : see declaration of
'Parrot_lib_luanumber_load'
compile luanumber.c failed (512)

The reason for this is the following initialization, in the middle of
function Parrot_LuaNumber_class_init.

int my_enum_class_LuaString = pmc_type(interp,
string_from_const_cstring(interp, "LuaString", 0));


Possible Solution: Attached patch adds a block around the MMD
initializer code, which should bring the generated code back to valid C.


Changed Files: lib/Parrot/Pmc2c.pm

pmc2c_mmd_initializer_block.patch

Leopold Toetsch

unread,
Jul 17, 2006, 12:31:52 PM7/17/06
to perl6-i...@perl.org, Ron Blaschke, bugs-bi...@netlabs.develooper.com
Am Sonntag, 16. Juli 2006 18:46 schrieb Ron Blaschke:
> Possible Solution: Attached patch adds a block around the MMD
> initializer code, which should bring the generated code back to valid C.

Thanks, applied - r13329.
leo

0 new messages