From: Marcelo M. <mar...@us...> - 2005-06-17 00:46:20
|
Update of /cvsroot/swig/SWIG/Source/Swig In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18857 Modified Files: symbol.c Log Message: fix infinity loop #1209289 Index: symbol.c =================================================================== RCS file: /cvsroot/swig/SWIG/Source/Swig/symbol.c,v retrieving revision 1.28 retrieving revision 1.29 diff -C2 -d -r1.28 -r1.29 *** symbol.c 17 Jun 2005 00:22:12 -0000 1.28 --- symbol.c 17 Jun 2005 00:46:10 -0000 1.29 *************** *** 1010,1015 **** /* Check if s is a 'using' node */ while (s && Strcmp(nodeType(s),k_using) == 0) { ! Node *ss; ! ss = Swig_symbol_clookup(Getattr(s,k_uname), Getattr(s,k_symsymtab)); if (!ss) { Swig_warning(WARN_PARSE_USING_UNDEF, Getfile(s), Getline(s), "Nothing known about '%s'.\n", Getattr(s,k_uname)); --- 1010,1017 ---- /* Check if s is a 'using' node */ while (s && Strcmp(nodeType(s),k_using) == 0) { ! String *uname = Getattr(s,k_uname); ! Symtab *un = Getattr(s,k_symsymtab); ! Node *ss = (Strcmp(name,uname) || (un != n)) ? ! Swig_symbol_clookup(uname, un) : 0; /* avoid infinity loop */ if (!ss) { Swig_warning(WARN_PARSE_USING_UNDEF, Getfile(s), Getline(s), "Nothing known about '%s'.\n", Getattr(s,k_uname)); |