Added FlushAll to CloseClass, otherwise text was only flushed right at the end,
and appeared in one file. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13330 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -909,6 +909,7 @@ void HelpGenVisitor::CloseClass()
|
|||||||
m_inClass = FALSE;
|
m_inClass = FALSE;
|
||||||
m_classname.clear();
|
m_classname.clear();
|
||||||
}
|
}
|
||||||
|
m_file.FlushAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
void HelpGenVisitor::EndVisit()
|
void HelpGenVisitor::EndVisit()
|
||||||
@@ -920,6 +921,11 @@ void HelpGenVisitor::EndVisit()
|
|||||||
m_fileHeader.Empty();
|
m_fileHeader.Empty();
|
||||||
|
|
||||||
m_file.FlushAll();
|
m_file.FlushAll();
|
||||||
|
if (m_file.IsOpened())
|
||||||
|
{
|
||||||
|
m_file.Flush();
|
||||||
|
m_file.Close();
|
||||||
|
}
|
||||||
|
|
||||||
wxLogVerbose("%s: finished generating for the current file.",
|
wxLogVerbose("%s: finished generating for the current file.",
|
||||||
GetCurrentTime("%H:%M:%S"));
|
GetCurrentTime("%H:%M:%S"));
|
||||||
@@ -936,6 +942,12 @@ void HelpGenVisitor::VisitClass( spClass& cl )
|
|||||||
{
|
{
|
||||||
CloseClass();
|
CloseClass();
|
||||||
|
|
||||||
|
if (m_file.IsOpened())
|
||||||
|
{
|
||||||
|
m_file.Flush();
|
||||||
|
m_file.Close();
|
||||||
|
}
|
||||||
|
|
||||||
wxString name = cl.GetName();
|
wxString name = cl.GetName();
|
||||||
|
|
||||||
if ( m_ignoreNames.IgnoreClass(name) ) {
|
if ( m_ignoreNames.IgnoreClass(name) ) {
|
||||||
@@ -1104,6 +1116,8 @@ void HelpGenVisitor::VisitClass( spClass& cl )
|
|||||||
InsertDataStructuresHeader();
|
InsertDataStructuresHeader();
|
||||||
InsertTypedefDocs();
|
InsertTypedefDocs();
|
||||||
InsertEnumDocs();
|
InsertEnumDocs();
|
||||||
|
|
||||||
|
m_file.Flush();
|
||||||
}
|
}
|
||||||
|
|
||||||
void HelpGenVisitor::VisitEnumeration( spEnumeration& en )
|
void HelpGenVisitor::VisitEnumeration( spEnumeration& en )
|
||||||
@@ -2149,6 +2163,10 @@ static const wxString GetVersionString()
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.19 2002/01/03 13:34:12 JS
|
||||||
|
Added FlushAll to CloseClass, otherwise text was only flushed right at the end,
|
||||||
|
and appeared in one file.
|
||||||
|
|
||||||
Revision 1.18 2002/01/03 12:02:47 JS
|
Revision 1.18 2002/01/03 12:02:47 JS
|
||||||
Added main() and corrected VC++ project settings
|
Added main() and corrected VC++ project settings
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user