Ignore:
Timestamp:
Aug 31, 2008, 8:49:13 AM (11 years ago)
Author:
gb
Message:

Reference 'restore_windows_context*', not win64-specific.
Stub out some things for win32, conditionalize existing code for win64.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/lisp-kernel/x86-exceptions.c

    r10565 r10595  
    4040#ifdef WINDOWS
    4141#include <windows.h>
     42#ifdef WIN64
    4243#include <winternl.h>
    4344#include <ntstatus.h>
     45#endif
    4446#endif
    4547
     
    14661468}
    14671469
    1468 #ifdef WINDOWS
    1469 extern LONG restore_win64_context(ExceptionInformation *, TCR *, int;);
    1470 #endif
     1470
     1471extern DWORD restore_windows_context(ExceptionInformation *, TCR *, int);
     1472
    14711473
    14721474void
     
    15461548#endif
    15471549#ifdef WINDOWS
    1548   restore_win64_context(context,tcr,old_valence);
     1550  restore_windows_context(context,tcr,old_valence);
    15491551#else
    15501552  SIGRETURN(context);
     
    16371639#ifdef WINDOWS
    16381640BOOL
    1639 ControlEventHandler(DWORD event)
     1641CALLBACK ControlEventHandler(DWORD event)
    16401642{
    16411643  switch(event) {
     
    16701672  case EXCEPTION_IN_PAGE_ERROR:
    16711673    return SIGBUS;
    1672   case DBG_PRINTEXCEPTION_C:
    1673     return DBG_PRINTEXCEPTION_C;
    16741674  default:
    16751675    return -1;
     
    17041704  }
    17051705  unlock_exception_lock_in_handler(tcr);
    1706   return restore_win64_context(context, tcr, old_valence);
     1706  return restore_windows_context(context, tcr, old_valence);
    17071707}
    17081708
Note: See TracChangeset for help on using the changeset viewer.