Subject: | Encode.xs doesn't compile with Microsoft C compiler |
Because it mixes declarations and executable code now.
cl -c -IEncode -nologo -GF -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSOLE -DNO_STRICT -DPERL_TEXTMODE_SCRIPTS -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -D_USE_32BIT_TIME_T -MD -Zi -DNDEBUG -O1 -DVERSION=\"2.50\" -DXS_VERSION=\"2.50\" "-IC:\tmp\perl-lkwoadasaskrmyflmttahhwhtqyhywgnybvwqxkoolctjpeoggif\lib\CORE" Encode.c
Encode.c
Encode.xs(109) : error C2143: syntax error : missing ';' before 'type'
Encode.xs(110) : error C2275: 'STRLEN' : illegal use of this type as an expression
C:\tmp\perl-lkwoadasaskrmyflmttahhwhtqyhywgnybvwqxkoolctjpeoggif\lib\CORE\perl.h(2398) : see declaration of 'STRLEN'
Encode.xs(110) : error C2146: syntax error : missing ';' before identifier 'dlen'
Encode.xs(110) : error C2065: 'dlen' : undeclared identifier
Encode.xs(111) : error C2143: syntax error : missing ';' before 'type'
Encode.xs(112) : error C2275: 'STRLEN' : illegal use of this type as an expression
C:\tmp\perl-lkwoadasaskrmyflmttahhwhtqyhywgnybvwqxkoolctjpeoggif\lib\CORE\perl.h(2398) : see declaration of 'STRLEN'
Encode.xs(112) : error C2146: syntax error : missing ';' before identifier 'trmlen'
Encode.xs(112) : error C2065: 'trmlen' : undeclared identifier
Encode.xs(113) : error C2275: 'U8' : illegal use of this type as an expression
C:\tmp\perl-lkwoadasaskrmyflmttahhwhtqyhywgnybvwqxkoolctjpeoggif\lib\CORE\handy.h(181) : see declaration of 'U8'
Encode.xs(113) : error C2065: 'trm' : undeclared identifier
Encode.xs(131) : error C2065: 'code' : undeclared identifier
Encode.xs(131) : error C2065: 'd' : undeclared identifier
Encode.xs(131) : warning C4047: 'function' : 'unsigned char *' differs in levels of indirection from 'int '
Encode.xs(131) : warning C4024: 'do_encode' : different types for formal and actual parameter 4
Encode.xs(132) : warning C4047: 'function' : 'const unsigned char *' differs in levels of indirection from 'int '
Encode.xs(132) : warning C4024: 'do_encode' : different types for formal and actual parameter 8
Encode.xs(166) : warning C4047: '=' : 'int ' differs in levels of indirection from 'unsigned char *'
Encode.xs(250) : warning C4047: '=' : 'int ' differs in levels of indirection from 'unsigned char *'
NMAKE : fatal error U1077: 'cl' : return code '0x2'