From: Marcelo M. <mar...@us...> - 2006-01-24 22:23:21
|
Update of /cvsroot/swig/SWIG/Source/Swig In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19779/Source/Swig Modified Files: symbol.c Log Message: fix template forward + using Index: symbol.c =================================================================== RCS file: /cvsroot/swig/SWIG/Source/Swig/symbol.c,v retrieving revision 1.50 retrieving revision 1.51 diff -C2 -d -r1.50 -r1.51 *** symbol.c 20 Jan 2006 22:04:17 -0000 1.50 --- symbol.c 24 Jan 2006 22:23:12 -0000 1.51 *************** *** 1730,1734 **** * ----------------------------------------------------------------------------- */ - #define SWIG_TEMPLATE_DEFTYPE_CACHE SwigType* --- 1730,1733 ---- *************** *** 1788,1793 **** ParmList *tparms = SwigType_function_parms(targs); Node *tempn = Swig_symbol_clookup_local(tprefix,tscope); #ifdef SWIG_DEBUG ! Printf(stderr,"deftype type %s \n", e); #endif if (tempn) { --- 1787,1796 ---- ParmList *tparms = SwigType_function_parms(targs); Node *tempn = Swig_symbol_clookup_local(tprefix,tscope); + if (!tempn && tsuffix && Len(tsuffix)) { + tempn = Swig_symbol_clookup(tprefix,0); + } + #ifdef SWIG_DEBUG ! Printf(stderr,"deftype type %s %s %d\n", e, tprefix, (long) tempn); #endif if (tempn) { |