added some debug log

git-svn-id: svn://ttmath.org/publicrep/ezc/trunk@357 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
Tomasz Sowa 2011-07-13 23:15:12 +00:00
parent 8df9aa86a0
commit fb05eb6860
3 changed files with 30 additions and 6 deletions

View File

@ -5,5 +5,24 @@ edanticpattern.o: pattern.h item.h funinfo.h functions.h stringconv.h utf8.h
edanticpattern.o: /home/tomek/roboczy/winix/core/log.h
edanticpattern.o: /home/tomek/roboczy/winix/core/textstream.h
edanticpattern.o: /home/tomek/roboczy/winix/core/misc.h
edanticpattern.o: /home/tomek/roboczy/winix/core/requesttypes.h
edanticpattern.o: /home/tomek/roboczy/winix/core/logmanipulators.h
edanticpattern.o: /home/tomek/roboczy/winix/core/slog.h
edanticpattern.o: /home/tomek/roboczy/winix/core/cur.h
edanticpattern.o: /home/tomek/roboczy/winix/core/request.h
edanticpattern.o: /usr/local/include/fcgiapp.h
edanticpattern.o: /home/tomek/roboczy/winix/core/error.h
edanticpattern.o: /home/tomek/roboczy/winix/core/config.h
edanticpattern.o: /home/tomek/roboczy/winix/core/confparser.h
edanticpattern.o: /home/tomek/roboczy/winix/core/htmlfilter.h
edanticpattern.o: /home/tomek/roboczy/winix/templates/htmltextstream.h
edanticpattern.o: /home/tomek/roboczy/winix/core/textstream.h
edanticpattern.o: /home/tomek/roboczy/winix/core/session.h
edanticpattern.o: /home/tomek/roboczy/winix/core/user.h
edanticpattern.o: /home/tomek/roboczy/winix/core/plugindata.h
edanticpattern.o: /home/tomek/roboczy/winix/core/rebus.h
edanticpattern.o: /home/tomek/roboczy/winix/core/mount.h
edanticpattern.o: /home/tomek/roboczy/winix/templates/locale.h
edanticpattern.o: /home/tomek/roboczy/winix/core/confparser.h
edanticstringconv.o: stringconv.h
edanticutf8.o: utf8.h

View File

@ -781,7 +781,17 @@ void Generator<StreamType>::MakeTextContainer(Item & item)
std::vector<Item*>::iterator i = item.item_tab.begin();
for( ; i != item.item_tab.end() && !break_generating ; ++i )
MakeText(**i);
{
if( *i == 0 )
{
#ifdef EZC_HAS_SPECIAL_STREAM
// temporary for debugging
log << log1 << "Generator: something wrong !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" << logend;
#endif
}
else
MakeText(**i);
}
}

View File

@ -92,11 +92,6 @@ size_t IntToUTF8(int z, std::ostream & utf8);
/*!
converting a wide string to UTF-8 string
warning: current limitation
on MS Windows wide characters consist of two bytes only
and we tread them as UCS-2 (not UTF-16 with surrogate pairs as it should be trated)
so unicode characters above 0xffff value are ignored (depending on 'mode' parameter)
*/
bool WideToUTF8(const wchar_t * wide_string, size_t string_len, std::string & utf8, bool clear = true, int mode = 1);
bool WideToUTF8(const wchar_t * wide_string, std::string & utf8, bool clear = true, int mode = 1);