reactos
diff -u -r1.26 -r1.27
--- config 24 Oct 2004 12:39:52 -0000 1.26
+++ config 20 Nov 2004 17:48:37 -0000 1.27
@@ -48,11 +48,6 @@
3GB := 1
#
-# Whether to use Structured Exception Handling
-#
-SEH := 0
-
-#
# Which version of NDIS do we support up to?
#
#NDISVERSION=NDIS50
reactos/regtests/shared
diff -u -r1.8 -r1.9
--- regtests.c 23 Oct 2004 21:05:12 -0000 1.8
+++ regtests.c 20 Nov 2004 17:48:38 -0000 1.9
@@ -6,13 +6,14 @@
* UPDATE HISTORY:
* 06-07-2003 CSH Created
*/
-#include <roscfg.h>
#include <ctype.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
+#include <malloc.h>
#define NTOS_MODE_USER
#include <ntos.h>
+#include <pseh.h>
#include "regtests.h"
#define NDEBUG
@@ -23,20 +24,6 @@
static LIST_ENTRY AllTests;
-void *_alloca(size_t size)
-{
- void *ret;
-
- asm ("movl %1, %%eax\n"
- "addl $3, %%eax\n"
- "andl $-4, %%eax\n"
- "subl %%eax, %%esp\n"
- "movl %%esp, %0\n"
- : "=m" (ret) : "m" (size) : "eax");
-
- return ret;
-}
-
VOID
InitializeTests()
{
@@ -73,18 +60,14 @@
}
}
-#ifdef SEH
- __try {
-#endif
+ _SEH_TRY {
_Result = TS_OK;
_Buffer = Buffer;
(Test->Routine)(TESTCMD_RUN);
-#ifdef SEH
- } __except(EXCEPTION_EXECUTE_HANDLER) {
+ } _SEH_HANDLE {
_Result = TS_FAILED;
- strcpy(Buffer, "Failed due to exception");
- }
-#endif
+ sprintf(Buffer, "due to exception 0x%lx", _SEH_GetExceptionCode());
+ } _SEH_END;
if (_Result != TS_OK)
{
reactos/tools
diff -u -r1.6 -r1.7
--- config.mk 24 Oct 2004 12:39:54 -0000 1.6
+++ config.mk 20 Nov 2004 17:48:38 -0000 1.7
@@ -25,10 +25,6 @@
CONFIG += ACPI
endif
-ifeq ($(SEH), 1)
-CONFIG += SEH
-endif
-
$(PATH_TO_TOP)/tools/mkconfig$(EXE_POSTFIX): $(PATH_TO_TOP)/tools/mkconfig.c
@$(HOST_CC) -g -o $(PATH_TO_TOP)/tools/mkconfig$(EXE_POSTFIX) $(PATH_TO_TOP)/tools/mkconfig.c
reactos/tools
diff -u -r1.94 -r1.95
--- helper.mk 2 Nov 2004 19:47:18 -0000 1.94
+++ helper.mk 20 Nov 2004 17:48:38 -0000 1.95
@@ -1,4 +1,4 @@
-# $Id: helper.mk,v 1.94 2004/11/02 19:47:18 gvg Exp $
+# $Id: helper.mk,v 1.95 2004/11/20 17:48:38 chorns Exp $
#
# Helper makefile for ReactOS modules
# Variables this makefile accepts:
@@ -1076,7 +1076,8 @@
ifeq ($(TARGET_TYPE),test)
run: all
@$(CC) -nostdlib -o _runtest.exe regtests.a $(TARGET_LIBS) _stubs.o \
- $(SDK_PATH_LIB)/rtshared.a $(SDK_PATH_LIB)/regtests.a _hooks.o -lgcc -lmsvcrt -lntdll
+ $(SDK_PATH_LIB)/rtshared.a $(SDK_PATH_LIB)/regtests.a $(SDK_PATH_LIB)/pseh.a \
+ _hooks.o -lgcc -lmsvcrt -lntdll
@$(CP) $(REGTESTS_PATH)/regtests/regtests.dll regtests.dll
@_runtest.exe
@$(RM) regtests.dll