cvs commit: hugs98/src hugs.c
Sigbjorn Finne
sof@glass.cse.ogi.edu
Mon, 7 Oct 2002 16:41:06 -0700
sof 2002/10/07 16:41:06 PDT
Modified files:
src hugs.c
Log:
interpreter(): wrap a Win32 SEH handler around the read-eval-print
loop, catching EXCEPTION_STACK_OVERFLOWs. If the C stack is
exhausted, we reset the PAGE_GUARD flag on the last page before
scrubbing the C stack & longjmp() out of trouble.
I _believe_ this will behave identically with Win2k and Win9x
codebases, but have only tested with the former (XP). It is
only enabled when compiling with MSVC.
Revision Changes Path
1.96 +44 -2 hugs98/src/hugs.c