From: <ct...@us...> - 2010-10-07 10:00:08
|
Revision: 1566 http://colorer.svn.sourceforge.net/colorer/?rev=1566&view=rev Author: ctapmex Date: 2010-10-07 10:00:01 +0000 (Thu, 07 Oct 2010) Log Message: ----------- stack overflow Modified Paths: -------------- trunk/colorer/changelog trunk/colorer/src/shared/cregexp/cregexp.cpp trunk/far2colorer/changelog trunk/far2colorer/src/FarEditorSet.cpp Modified: trunk/colorer/changelog =================================================================== --- trunk/colorer/changelog 2010-10-06 11:11:53 UTC (rev 1565) +++ trunk/colorer/changelog 2010-10-07 10:00:01 UTC (rev 1566) @@ -1,5 +1,11 @@ $Revision$ $Author$ $Date$ + 1. 1563 проверено на x64 - небольшая поправка. На моих комьютерах как под x86, так и под x64 перестало + падать, строка просто не раскрашена до конца. !!НО , даный метод не работает если запустить x86 фар, + на x64 операционке. Адресация не та. Пока так. + +#Revision: 1563 + #Author: ctapmex Date: 2010-10-06 12:03:56 +0600 (Ср, 06 окт 2010) 1. исправлен stack overflow при работе с длинными строками. Нужно проверить на x64 и выставить правильное значение. Modified: trunk/colorer/src/shared/cregexp/cregexp.cpp =================================================================== --- trunk/colorer/src/shared/cregexp/cregexp.cpp 2010-10-06 11:11:53 UTC (rev 1565) +++ trunk/colorer/src/shared/cregexp/cregexp.cpp 2010-10-07 10:00:01 UTC (rev 1566) @@ -749,12 +749,10 @@ bool leftenter = true; const String &pattern = *global_pattern; -#ifdef WIN32 //check for stack overflow -if ((unsigned int)(&leftenter)<0x00033333 ){ +if ((unsigned int)(&leftenter)<0x00034444 ){ return false; } -#endif if (!re){ re = prev->parent; Modified: trunk/far2colorer/changelog =================================================================== --- trunk/far2colorer/changelog 2010-10-06 11:11:53 UTC (rev 1565) +++ trunk/far2colorer/changelog 2010-10-07 10:00:01 UTC (rev 1566) @@ -1,5 +1,9 @@ $Revision$ $Author$ $Date$ + 1. ошибка при сохранении параметров, если до этого не был открыт редактор + +#Revision: 1565 + Author: ctapmex Date: 2010-10-06 17:11:53 +0600 (Ср, 06 окт 2010) 1. изменение системных настроек цвета "обычный текст" редактора на цвет по умолчанию для цветовой схемы. Modified: trunk/far2colorer/src/FarEditorSet.cpp =================================================================== --- trunk/far2colorer/src/FarEditorSet.cpp 2010-10-06 11:11:53 UTC (rev 1565) +++ trunk/far2colorer/src/FarEditorSet.cpp 2010-10-07 10:00:01 UTC (rev 1566) @@ -652,6 +652,14 @@ } delete[] t; + consoleAnnotationAvailable=checkConsoleAnnotationAvailable(); + if (consoleAnnotationAvailable){ + hrdClass = DString("rgb"); + } + else{ + hrdClass = DString("console"); + } + try{ parserFactoryLocal = new ParserFactory(catalogPathS); hrcParserLocal = parserFactoryLocal->getHRCParser(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |