Fix for feature request #655 (Loading the GHC library from GHCi.)
[ghc-hetmet.git] / ghc / compiler / parser / cutils.h
diff --git a/ghc/compiler/parser/cutils.h b/ghc/compiler/parser/cutils.h
new file mode 100644 (file)
index 0000000..c7c1867
--- /dev/null
@@ -0,0 +1,16 @@
+/* -----------------------------------------------------------------------------
+ *
+ * Utility C functions.
+ *
+ * -------------------------------------------------------------------------- */
+
+#include "HsFFI.h"
+
+// Out-of-line string functions, see PrimPacked.lhs
+HsInt ghc_strlen( HsAddr a );
+HsInt ghc_memcmp( HsAddr a1, HsAddr a2, HsInt len );
+HsInt ghc_memcmp_off( HsAddr a1, HsInt i, HsAddr a2, HsInt len );
+
+
+void enableTimingStats( void );
+void setHeapSize( HsInt size );