projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[project @ 2002-10-22 11:01:18 by simonmar]
[ghc-hetmet.git]
/
ghc
/
includes
/
Rts.h
diff --git
a/ghc/includes/Rts.h
b/ghc/includes/Rts.h
index
2fa8591
..
565b035
100644
(file)
--- a/
ghc/includes/Rts.h
+++ b/
ghc/includes/Rts.h
@@
-1,5
+1,5
@@
/* -----------------------------------------------------------------------------
/* -----------------------------------------------------------------------------
- * $Id: Rts.h,v 1.13 2000/04/05 14:26:31 panne Exp $
+ * $Id: Rts.h,v 1.19 2002/07/18 06:07:37 sof Exp $
*
* (c) The GHC Team, 1998-1999
*
*
* (c) The GHC Team, 1998-1999
*
@@
-10,6
+10,10
@@
#ifndef RTS_H
#define RTS_H
#ifndef RTS_H
#define RTS_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#ifndef IN_STG_CODE
#define IN_STG_CODE 0
#endif
#ifndef IN_STG_CODE
#define IN_STG_CODE 0
#endif
@@
-19,14
+23,6
@@
RTS Exit codes
-------------------------------------------------------------------------- */
RTS Exit codes
-------------------------------------------------------------------------- */
-#if ! defined(EXIT_SUCCESS) || ! defined(EXIT_FAILURE)
-/* "stdlib.h" should have defined these; but at least
- on SunOS 4.1.3, this is not so.
-*/
-#define EXIT_SUCCESS 0
-#define EXIT_FAILURE 1
-#endif
-
/* 255 is allegedly used by dynamic linkers to report linking failure */
#define EXIT_INTERNAL_ERROR 254
#define EXIT_DEADLOCK 253
/* 255 is allegedly used by dynamic linkers to report linking failure */
#define EXIT_INTERNAL_ERROR 254
#define EXIT_DEADLOCK 253
@@
-41,6
+37,14
@@
/* declarations for runtime flags/values */
#define MAX_RTS_ARGS 32
/* declarations for runtime flags/values */
#define MAX_RTS_ARGS 32
+#ifdef _WIN32
+/* On the yucky side..suppress -Wmissing-declarations warnings when
+ * including <windows.h>
+ */
+extern void* GetCurrentFiber ( void );
+extern void* GetFiberData ( void );
+#endif
+
/* -----------------------------------------------------------------------------
Assertions and Debuggery
-------------------------------------------------------------------------- */
/* -----------------------------------------------------------------------------
Assertions and Debuggery
-------------------------------------------------------------------------- */
@@
-90,15
+94,13
@@
Useful macros and inline functions
-------------------------------------------------------------------------- */
Useful macros and inline functions
-------------------------------------------------------------------------- */
-/*
- * Use this on the RHS of macros which expand to nothing
- * to make sure that the macro can be used in a context which
- * demands a non-empty statement.
- */
-
-#define doNothing() do { } while (0)
-
#define stg_min(a,b) ({typeof(a) _a = (a), _b = (b); _a <= _b ? _a : _b; })
#define stg_max(a,b) ({typeof(a) _a = (a), _b = (b); _a <= _b ? _b : _a; })
#define stg_min(a,b) ({typeof(a) _a = (a), _b = (b); _a <= _b ? _a : _b; })
#define stg_max(a,b) ({typeof(a) _a = (a), _b = (b); _a <= _b ? _b : _a; })
+/* -------------------------------------------------------------------------- */
+
+#ifdef __cplusplus
+}
+#endif
+
#endif /* RTS_H */
#endif /* RTS_H */