Changes to catch macros that are missing arguments - not perfect, but it will work with all our current TEX files.

Added cleaner ABORT handling in some situations
If \\end{document} is not found, then program auto-aborts after first pass to avoid hanging in some endless loop until all system resources are exhausted and the program crashes.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10532 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
George Tasker
2001-06-11 12:54:38 +00:00
parent 36e67c5cfc
commit 04b9c5bb04
3 changed files with 61 additions and 17 deletions

View File

@@ -5090,6 +5090,9 @@ bool RTFOnArgument(int macroId, int arg_no, bool start)
bool RTFGo(void)
{
if (stopRunning)
return FALSE;
// Reset variables
indentLevel = 0;
forbidParindent = 0;
@@ -5164,6 +5167,9 @@ bool RTFGo(void)
SetCurrentOutput(Chapters);
if (stopRunning)
return FALSE;
OnInform("Converting...");
TraverseDocument();