Hi,
I got the following syntax errors while building swigutil_py.c in trunk with Visual Studio 2008 (VC9).
"C:\usr\src\subversion\trunk\subversion_vcnet.sln" (__MORE__;__SWIG_PYTHON__ target) (1) ->
(Libraries\Swig\svn_swig_py target) ->
..\..\..\subversion\bindings\swig\python\libsvn_swig_py\swigutil_py.c(1183): error C2143: syntax error : missing ';' before 'const'
..\..\..\subversion\bindings\swig\python\libsvn_swig_py\swigutil_py.c(1189): error C2065: 'propval' : undeclared identifier
..\..\..\subversion\bindings\swig\python\libsvn_swig_py\swigutil_py.c(1189): error C4022: 'apr_hash_set' : pointer mismatch for actual parameter 4
..\..\..\subversion\bindings\swig\python\libsvn_swig_py\swigutil_py.c(1195): error C2143: syntax error : missing '{' before '*'
..\..\..\subversion\bindings\swig\python\libsvn_swig_py\swigutil_py.c(1197): error C2371: 'svn_swig_py_mergeinfo_from_dict' : redefinition; different basic types
..\..\..\subversion\bindings\swig\python\libsvn_swig_py\swigutil_py.c(1227): error C2143: syntax error : missing ';' before 'const'
..\..\..\subversion\bindings\swig\python\libsvn_swig_py\swigutil_py.c(1234): error C2065: 'ranges' : undeclared identifier
..\..\..\subversion\bindings\swig\python\libsvn_swig_py\swigutil_py.c(1241): error C2065: 'ranges' : undeclared identifier
..\..\..\subversion\bindings\swig\python\libsvn_swig_py\swigutil_py.c(1241): error C4022: 'apr_hash_set' : pointer mismatch for actual parameter 4
..\..\..\subversion\bindings\swig\python\libsvn_swig_py\swigutil_py.c(1247): error C2143: syntax error : missing '{' before '*'
..\..\..\subversion\bindings\swig\python\libsvn_swig_py\swigutil_py.c(1249): error C2371: 'svn_swig_py_proparray_from_dict' : redefinition; different basic types
..\..\..\subversion\bindings\swig\python\libsvn_swig_py\swigutil_py.c(1326): error C2275: 'svn_string_t' : illegal use of this type as an expression
..\..\..\subversion\bindings\swig\python\libsvn_swig_py\swigutil_py.c(1326): error C2065: 'propval' : undeclared identifier
..\..\..\subversion\bindings\swig\python\libsvn_swig_py\swigutil_py.c(1332): error C2065: 'propval' : undeclared identifier
..\..\..\subversion\bindings\swig\python\libsvn_swig_py\swigutil_py.c(1332): error C4022: 'apr_hash_set' : pointer mismatch for actual parameter 4
It seems that several variable declarations are not at start of block.
The declarations lead the syntax errors with Visual Studio 2008.
After attached patch, the errors go away.
--
Jun Omae <jun66j5_at_gmail.com> ($BBgA0(B $B=a(B)
Received on 2020-05-01 12:18:35 CEST