#1158 Version 2.0.3 does not work with C code

closed
nobody
tcl (60)
5
2011-06-18
2011-04-17
No

The following functions have C++-style initializations, which do not work with pure C code.
Add the following initializations at the start of the function or block:

tclinit.swg / SWIG_Tcl_InstallMethodLookupTables: swig_method* meth;
tclrun.swg / SWIG_Tcl_MethodCommand: Tcl_HashEntry* hashentry;

Discussion

  • Olly Betts

    Olly Betts - 2011-06-18
    • status: open --> closed
     
  • Olly Betts

    Olly Betts - 2011-06-18

    Thanks for your report. Fixed in trunk r12744.

    Declaring variables in the middle of a block is valid in C99, but not in C90 (I guess this is how this regression wasn't noticed).

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks