From: Leon W. <moo...@us...> - 2005-02-03 14:39:13
|
Update of /cvsroot/anyedit/AnyEditv2 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9964 Modified Files: TagManager.cpp Log Message: Bugfix: The 'tag' file parser could get stuck in an endless loop. First noticed on C# files. It now has a default action, that prevent it from looping endlessly. Index: TagManager.cpp =================================================================== RCS file: /cvsroot/anyedit/AnyEditv2/TagManager.cpp,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** TagManager.cpp 30 Nov 2004 19:25:19 -0000 1.14 --- TagManager.cpp 3 Feb 2005 14:39:00 -0000 1.15 *************** *** 1,2 **** --- 1,26 ---- + /**************************************************************************** + Copyright (C) AnyEdit Team + + This software is provided 'as-is', without any express or implied + warranty. In no event will the authors be held liable for any damages + arising from the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + + 3. This notice may not be removed or altered from any source distribution. + + http://www.anyedit.org + *****************************************************************************/ + /*********************************************************************\ ** *************** *** 1153,1156 **** --- 1177,1181 ---- std::string AETagParser::GetNextParent(AELanguage lang, std::string& sName) { + std::string sRet; std::string sBreaker; switch (lang) *************** *** 1160,1163 **** --- 1185,1189 ---- sBreaker = "::"; break; + case CSharp: case Eiffel: case Java: *************** *** 1165,1172 **** break; default: ! return ""; }; std::string::size_type nPos = sName.find(sBreaker); - std::string sRet; if (nPos == 0) return ""; --- 1191,1199 ---- break; default: ! sRet = sName; ! sName = ""; ! return sRet; }; std::string::size_type nPos = sName.find(sBreaker); if (nPos == 0) return ""; |