summaryrefslogtreecommitdiff
path: root/libguile/whippet/src/gc-options-internal.h
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2025-04-11 14:10:41 +0200
committerAndy Wingo <wingo@pobox.com>2025-04-11 14:10:41 +0200
commitdb181e67ff482ab08cbdb0c1a88997b3a886f900 (patch)
tree6d16fbca515ae3cf506a9d16dbc89c472446e5d9 /libguile/whippet/src/gc-options-internal.h
parentaf96820e072d18c49ac03e80c6f3466d568dc77d (diff)
parentf909438596f63ecd44c5b9a28385260714857361 (diff)
downloadguile-db181e67ff482ab08cbdb0c1a88997b3a886f900.tar.gz
Merged Whippet into libguile/whippet
Diffstat (limited to 'libguile/whippet/src/gc-options-internal.h')
-rw-r--r--libguile/whippet/src/gc-options-internal.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/libguile/whippet/src/gc-options-internal.h b/libguile/whippet/src/gc-options-internal.h
new file mode 100644
index 000000000..9e9fbca22
--- /dev/null
+++ b/libguile/whippet/src/gc-options-internal.h
@@ -0,0 +1,32 @@
+#ifndef GC_OPTIONS_INTERNAL_H
+#define GC_OPTIONS_INTERNAL_H
+
+#ifndef GC_IMPL
+#error internal header file, not part of API
+#endif
+
+#include "gc-options.h"
+
+struct gc_common_options {
+ enum gc_heap_size_policy heap_size_policy;
+ size_t heap_size;
+ size_t maximum_heap_size;
+ double heap_size_multiplier;
+ double heap_expansiveness;
+ int parallelism;
+};
+
+GC_INTERNAL void gc_init_common_options(struct gc_common_options *options);
+
+GC_INTERNAL int gc_common_option_from_string(const char *str);
+
+GC_INTERNAL int gc_common_options_set_int(struct gc_common_options *options,
+ int option, int value);
+GC_INTERNAL int gc_common_options_set_size(struct gc_common_options *options,
+ int option, size_t value);
+GC_INTERNAL int gc_common_options_set_double(struct gc_common_options *options,
+ int option, double value);
+GC_INTERNAL int gc_common_options_parse_and_set(struct gc_common_options *options,
+ int option, const char *value);
+
+#endif // GC_OPTIONS_INTERNAL_H