rts/Linker.c: declare 'deRefStablePtr' as an exported 'rts' symbol
[ghc.git] / rts / GetEnv.h
1 /* -----------------------------------------------------------------------------
2 *
3 * (c) The GHC Team 2011
4 *
5 * OS-independent interface to the process environment variables
6 *
7 * ---------------------------------------------------------------------------*/
8
9 #ifndef GETENV_H
10 #define GETENV_H
11
12 #include "BeginPrivate.h"
13
14 /* Get the process environment vector (same style interface as argc/argv)
15 */
16 void getProgEnvv (int *out_envc, char **out_envv[]);
17 void freeProgEnvv (int envc, char *envv[]);
18
19 /* calls to getProgEnvv must have a corresponding freeProgEnvv */
20
21 #include "EndPrivate.h"
22
23 #endif /* GETENV_H */
24
25 // Local Variables:
26 // mode: C
27 // fill-column: 80
28 // indent-tabs-mode: nil
29 // c-basic-offset: 4
30 // buffer-file-coding-system: utf-8-unix
31 // End: