summaryrefslogtreecommitdiff
path: root/rts/RtsFlags.h
blob: 6c81081d4da2a6044b37d55bacde789f77086f5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* -----------------------------------------------------------------------------
 *
 * (c) The AQUA Project, Glasgow University, 1994-1997
 * (c) The GHC Team, 1998-2006
 *
 * Functions for parsing the argument list.
 *
 * ---------------------------------------------------------------------------*/

#pragma once

#include <stdbool.h>

#include "BeginPrivate.h"

/* Routines that operate-on/to-do-with RTS flags: */

#if defined(mingw32_HOST_OS)
//The returned buffer has to be freed with stgFree()
char* lpcwstrToUTF8(const wchar_t* utf16_str);
char** getUTF8Args(int* argc);
#endif
void initRtsFlagsDefaults (void);
void setupRtsFlags        (int *argc, char *argv[], RtsConfig rtsConfig);
void freeRtsArgs          (void);
bool is_io_mng_native_p   (void);

extern RtsConfig rtsConfig;

#include "EndPrivate.h"