From 67a30d837132e8000d1a8b10ce3d32423d149318 Mon Sep 17 00:00:00 2001 From: Araq Date: Mon, 16 May 2011 00:27:47 +0200 Subject: further steps for thread support; bootstrapping should require unzip C sources and ./build.sh --- lib/nimbase.h | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'lib/nimbase.h') diff --git a/lib/nimbase.h b/lib/nimbase.h index ab03b97fa..fc527e0d0 100755 --- a/lib/nimbase.h +++ b/lib/nimbase.h @@ -400,15 +400,6 @@ static unsigned long nimNaN[2]={0xffffffff, 0x7fffffff}; # define INF (1.0 / 0.0) # endif #endif -/* -typedef struct TSafePoint TSafePoint; -struct TSafePoint { - NI exc; - NCSTRING excname; - NCSTRING msg; - TSafePoint* prev; - jmp_buf context; -}; */ typedef struct TFrame TFrame; struct TFrame { @@ -419,25 +410,8 @@ struct TFrame { NI len; }; -/* -extern TFrame* framePtr; -extern TSafePoint* excHandler; */ - -#if defined(__cplusplus) -struct NimException { - TSafePoint sp; - - NimException(NI aExc, NCSTRING aExcname, NCSTRING aMsg) { - sp.exc = aExc; sp.excname = aExcname; sp.msg = aMsg; - sp.prev = excHandler; - excHandler = &sp; - } -}; -#endif - #define NIM_POSIX_INIT __attribute__((constructor)) - #if defined(_MSCVER) && defined(__i386__) __declspec(naked) int __fastcall NimXadd(volatile int* pNum, int val) { __asm { -- cgit 1.4.1-2-gfad0