/usr/share/swig1.3/mzscheme/std_map.i contains spurious $1. where self-> should be

Bug #203876 reported by Artem Baguinski
4
Affects Status Importance Assigned to Milestone
swig2.0 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: swig1.3

(in ubuntu 7.10, package: swig1.3 1.3.31-1ubuntu3)

to experience the problem I'm gonna attach a minimal test case that wraps std::map<int,int> then greps for '$1.' in generated C++. (just unpack and run make in ./swig/ directory)

solution is to replace $1. with self-> in all instances of keys() function in std_map.i

Revision history for this message
Artem Baguinski (femistofel) wrote :
Revision history for this message
Artem Baguinski (femistofel) wrote :

the following patch shows what has to be changed, it is against isntalled std_map.i but is short enough to review and apply in source tree.

Revision history for this message
William Fulton (william-fultondesigns) wrote :

Applied fix for swig-2.0.0 release upstream - http://swig.svn.sourceforge.net/viewvc/swig?view=rev&revision=11986

Revision history for this message
Thomas Hotz (thotz-deactivatedaccount) wrote :

Swig 2.0 is now in Precise. Is your problem fixed now? Thank you for telling us!

Changed in swig1.3 (Ubuntu):
status: New → Incomplete
affects: swig1.3 (Ubuntu) → swig2.0 (Ubuntu)
Revision history for this message
Artem Baguinski (femistofel) wrote :

I'm almost sure it is fixed since the upstream has incorporated my patch, I can't easily test it though as I'm not using swig / mzscheme for several years already. I'd close this ticket if I were you.

Changed in swig2.0 (Ubuntu):
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.