[project @ 2000-10-26 16:51:44 by sewardj]
[ghc-hetmet.git] / ghc / rts / Evaluator.h
index a6e46f7..8c3e9a9 100644 (file)
@@ -1,5 +1,5 @@
 /* -----------------------------------------------------------------------------
- * $Id: Evaluator.h,v 1.6 1999/11/08 15:30:37 sewardj Exp $
+ * $Id: Evaluator.h,v 1.8 2000/10/09 11:21:18 daan Exp $
  *
  * (c) The GHC Team, 1998-1999
  *
@@ -51,3 +51,23 @@ extern void   PushTaggedDouble     ( StgDouble    );
 
 extern void   PushPtr        ( StgPtr );
 extern StgPtr PopPtr         ( void );
+
+extern int    numEnters;
+
+/*-------------------------------------------------------------------------*/
+#ifdef XMLAMBDA
+
+#define MAX_CALL_VALUES  100
+
+/* Self contained CallInfo structure for the i_ccall instruction */
+typedef struct _CallInfo {
+  unsigned int  argCount;
+  unsigned int  resultCount;
+  char          callConv;     /* 's'=stdcall, 'c'=ccall */
+  
+/* The strings arg_tys and result_tys reside here. 
+   This allows us to put the complete CallInfo in the nonptrwords of a BCO */
+  char          data[MAX_CALL_VALUES+2];  
+} CallInfo;
+
+#endif