summary refs log tree commit diff stats
path: root/lib/nimbase.h
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2011-05-16 00:27:47 +0200
committerAraq <rumpf_a@web.de>2011-05-16 00:27:47 +0200
commit67a30d837132e8000d1a8b10ce3d32423d149318 (patch)
treeb059b56027b57c45777d15d33e88b3dac9313f14 /lib/nimbase.h
parentc7b3d828be1bbca81f3576875636ea571e595402 (diff)
downloadNim-67a30d837132e8000d1a8b10ce3d32423d149318.tar.gz
further steps for thread support; bootstrapping should require unzip C sources and ./build.sh
Diffstat (limited to 'lib/nimbase.h')
-rwxr-xr-xlib/nimbase.h26
1 files changed, 0 insertions, 26 deletions
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 {