summaryrefslogtreecommitdiff
path: root/ghc/compiler/parser/cutils.h
blob: c7c1867ded049d7cc696252f9f1f2722ce1dae75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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 );