summaryrefslogtreecommitdiff
path: root/rts/RtsFlags.h
blob: c36c64a63b9136432815b891052cd4cbe03bc6c7 (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
/* -----------------------------------------------------------------------------
 *
 * (c) The AQUA Project, Glasgow University, 1994-1997
 * (c) The GHC Team, 1998-2006
 *
 * Functions for parsing the argument list.
 *
 * ---------------------------------------------------------------------------*/

#pragma once

#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);

extern RtsConfig rtsConfig;

#include "EndPrivate.h"