Import Upstream version 20180207
[hcoop/debian/mlton.git] / runtime / gc / world.h
1 /* Copyright (C) 1999-2006 Henry Cejtin, Matthew Fluet, Suresh
2 * Jagannathan, and Stephen Weeks.
3 * Copyright (C) 1997-2000 NEC Research Institute.
4 *
5 * MLton is released under a BSD-style license.
6 * See the file MLton-LICENSE for details.
7 */
8
9 #if (defined (MLTON_GC_INTERNAL_FUNCS))
10
11 static void loadWorldFromFILE (GC_state s, FILE *f);
12 static void loadWorldFromFileName (GC_state s, const char *fileName);
13 static int saveWorldToFILE (GC_state s, FILE *f);
14
15 #endif /* (defined (MLTON_GC_INTERNAL_FUNCS)) */
16
17 #if (defined (MLTON_GC_INTERNAL_BASIS))
18
19 PRIVATE void GC_saveWorld (GC_state s, NullString8_t fileName);
20 /* TRUE = success, FALSE = failure */
21 PRIVATE C_Errno_t(Bool_t) GC_getSaveWorldStatus (GC_state s);
22
23 #endif /* (defined (MLTON_GC_INTERNAL_BASIS)) */