Added checks for mismatched curly braces so that when docs are generated, a count of the curly braces that have been processed are kept track of. If they mismatch, the file name is reported as having mismatched braces. If more closed braces are detected than open braces, then the line that the first extra close brace is detected on is reported.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7124 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -170,7 +170,8 @@ bool MyApp::OnInit()
|
||||
if (!InputFile || !OutputFile)
|
||||
isInteractive = TRUE;
|
||||
|
||||
for (int i = n; i < argc;)
|
||||
int i;
|
||||
for (i = n; i < argc;)
|
||||
{
|
||||
if (strcmp(argv[i], "-winhelp") == 0)
|
||||
{
|
||||
@@ -497,6 +498,7 @@ void MyFrame::OnExit(wxCommandEvent& event)
|
||||
|
||||
void MyFrame::OnGo(wxCommandEvent& event)
|
||||
{
|
||||
passNumber = 1;
|
||||
menuBar->EnableTop(0, FALSE);
|
||||
menuBar->EnableTop(1, FALSE);
|
||||
menuBar->EnableTop(2, FALSE);
|
||||
@@ -826,7 +828,7 @@ bool Go(void)
|
||||
char buf[100];
|
||||
#ifndef NO_GUI
|
||||
long tim = wxGetElapsedTime();
|
||||
sprintf(buf, "Finished in %ld seconds.", (long)(tim/1000.0));
|
||||
sprintf(buf, "Finished PASS #%d in %ld seconds.\n", passNumber, (long)(tim/1000.0));
|
||||
OnInform(buf);
|
||||
if (isInteractive)
|
||||
{
|
||||
|
Reference in New Issue
Block a user