From: Marcelo M. <mar...@us...> - 2004-10-18 01:41:01
|
Update of /cvsroot/swig/SWIG/Source/Swig In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23686 Modified Files: naming.c Log Message: more fixes for feature Index: naming.c =================================================================== RCS file: /cvsroot/swig/SWIG/Source/Swig/naming.c,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** naming.c 5 Oct 2004 00:19:26 -0000 1.13 --- naming.c 18 Oct 2004 01:40:39 -0000 1.14 *************** *** 574,577 **** --- 574,595 ---- } + /* + very specific hack for functions that return pointers/references, + in the long term, %feature should check the entire declaration, + including the returning type, but for now, these declarations + + char f(); -> decl: f(). + char* f(); -> decl: f().p. + char& f(); -> decl: f().r. ? + + are working again, since we get ride of the extra 'p./r.' + */ + if (SwigType_isfunction(decl)) { + rdecl = Copy(decl); + decl = SwigType_pop(rdecl); + Delete(rdecl); + rdecl = decl; + } + /* Printf(stdout,"feature_get: %s %s %s\n", prefix, name, decl); */ |