Commit in reactos on MAIN
include/pseh/excpt.h+32added 1.1
            /framebased.h+3-71.7 -> 1.8
lib/pseh/framebased.c+7-61.3 -> 1.4
tools/helper.mk+3-31.68 -> 1.69
+45-16
1 added + 3 modified, total 4 files
Another PSEH fix

reactos/include/pseh
excpt.h added at 1.1
diff -N excpt.h
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ excpt.h	21 Jun 2004 20:55:16 -0000	1.1
@@ -0,0 +1,32 @@
+/*
+ Copyright (c) 2004 KJK::Hyperion
+ 
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
+ this software and associated documentation files (the "Software"), to deal in
+ the Software without restriction, including without limitation the rights to
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
+ of the Software, and to permit persons to whom the Software is furnished to do
+ so, subject to the following conditions:
+ 
+ The above copyright notice and this permission notice shall be included in all
+ copies or substantial portions of the Software.
+ 
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ SOFTWARE.
+*/
+
+#ifndef KJK_PSEH_EXCPT_H_
+#define KJK_PSEH_EXCPT_H_
+
+#define _SEH_CONTINUE_EXECUTION (-1)
+#define _SEH_CONTINUE_SEARCH (0)
+#define _SEH_EXECUTE_HANDLER (1)
+
+#endif
+
+/* EOF */

reactos/include/pseh
framebased.h 1.7 -> 1.8
diff -u -r1.7 -r1.8
--- framebased.h	18 Jun 2004 22:33:06 -0000	1.7
+++ framebased.h	21 Jun 2004 20:55:16 -0000	1.8
@@ -24,11 +24,7 @@
 #define KJK_PSEH_FRAMEBASED_H_
 
 #include <pseh/framebased/internal.h>
-
-/* Safeguards against broken SDK/CRT headers */
-#ifndef _SEH_NO_SYSTEM_HEADERS
-# include <excpt.h>
-#endif
+#include <pseh/excpt.h>
 
 #ifndef offsetof
 # include <stddef.h>
@@ -81,7 +77,7 @@
 #define _SEH_TRY_FINALLY(FINALLY_) \
  _SEH_TRY_FILTER_FINALLY \
  ( \
-  (_SEHFilter_t)(EXCEPTION_CONTINUE_SEARCH + 1), \
+  (_SEHFilter_t)(_SEH_CONTINUE_SEARCH + 1), \
   (FINALLY_) \
  )
 
@@ -93,7 +89,7 @@
 #define _SEH_TRY_HANDLE_FINALLY(FINALLY_) \
  _SEH_TRY_FILTER_FINALLY \
  ( \
-  (_SEHFilter_t)(EXCEPTION_EXECUTE_HANDLER + 1), \
+  (_SEHFilter_t)(_SEH_EXECUTE_HANDLER + 1), \
   (FINALLY_) \
  )
 

reactos/lib/pseh
framebased.c 1.3 -> 1.4
diff -u -r1.3 -r1.4
--- framebased.c	3 Jun 2004 22:19:09 -0000	1.3
+++ framebased.c	21 Jun 2004 20:55:16 -0000	1.4
@@ -25,6 +25,7 @@
 #include <windows.h>
 
 #include <pseh/framebased/internal.h>
+#include <pseh/excpt.h>
 #include <excpt.h>
 
 /* Assembly helpers, see i386/framebased.asm */
@@ -78,9 +79,9 @@
 
    switch((UINT_PTR)frame->SPF_Handlers->SH_Filter)
    {
-    case EXCEPTION_EXECUTE_HANDLER + 1:
-    case EXCEPTION_CONTINUE_SEARCH + 1:
-    case EXCEPTION_CONTINUE_EXECUTION + 1:
+    case _SEH_EXECUTE_HANDLER + 1:
+    case _SEH_CONTINUE_SEARCH + 1:
+    case _SEH_CONTINUE_EXECUTION + 1:
     {
      ret = (int)((UINT_PTR)frame->SPF_Handlers->SH_Filter) - 1;
      break;
@@ -98,13 +99,13 @@
     }
    }
 
-   /* EXCEPTION_CONTINUE_EXECUTION */
+   /* _SEH_CONTINUE_EXECUTION */
    if(ret < 0)
     return ExceptionContinueExecution;
-   /* EXCEPTION_EXECUTE_HANDLER */
+   /* _SEH_EXECUTE_HANDLER */
    else if(ret > 0)
     _SEHCallHandler(frame);
-   /* EXCEPTION_CONTINUE_SEARCH */
+   /* _SEH_CONTINUE_SEARCH */
    else
     /* fall through */;
   }

reactos/tools
helper.mk 1.68 -> 1.69
diff -u -r1.68 -r1.69
--- helper.mk	18 Jun 2004 22:33:06 -0000	1.68
+++ helper.mk	21 Jun 2004 20:55:16 -0000	1.69
@@ -1,4 +1,4 @@
-# $Id: helper.mk,v 1.68 2004/06/18 22:33:06 hyperion Exp $
+# $Id: helper.mk,v 1.69 2004/06/21 20:55:16 hyperion Exp $
 #
 # Helper makefile for ReactOS modules
 # Variables this makefile accepts:
@@ -583,8 +583,8 @@
 ifeq ($(MK_MODE),kernel)
   MK_DEFBASE := 0x10000
   MK_LIBS := $(addprefix $(DDK_PATH_LIB)/, $(TARGET_DDKLIBS) $(MK_DDKLIBS))
-  MK_CFLAGS += -D_SEH_NO_NATIVE_NLG -D_SEH_NO_SYSTEM_HEADERS
-  MK_CPPFLAGS += -D_SEH_NO_NATIVE_NLG -D_SEH_NO_SYSTEM_HEADERS
+  MK_CFLAGS += -D_SEH_NO_NATIVE_NLG
+  MK_CPPFLAGS += -D_SEH_NO_NATIVE_NLG
 endif
 
 
CVSspam 0.2.8