From 4775f0d69ff6d71332d0508986c62ccc5ab7366a Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Mon, 8 Sep 2014 07:03:31 -0700 Subject: * gc.c (MALLOC_DELTA_THRESH): Macro remaned to DFL_MALLOC_DELTA_THRESH. (opt_gc_delta): New global variable. (make_obj): Use opt_gc_delta rather than MALLOC_DELTA_THRESH. (gc_set_delta, gc_wrap): New static functions. (gc_late_init): New function. * gc.h (gc_late_init): Declared. * genvim.txr: scan gc.c also. * lib.c (init): call gc_late_init. * txr.1: Document new --gc-delta option and the functions gc and gc-set-delta. * txr.c (help): Help text for --gc-delta. (txr_main): Parse --gc-delta option. * txr.h (opt_gc_delta): Declared. --- txr.h | 1 + 1 file changed, 1 insertion(+) (limited to 'txr.h') diff --git a/txr.h b/txr.h index 201bd385..e6a1f5f7 100644 --- a/txr.h +++ b/txr.h @@ -34,5 +34,6 @@ extern int opt_vg_debug; #endif extern int opt_derivative_regex; extern int opt_compat; +extern alloc_bytes_t opt_gc_delta; extern const wchli_t *version; extern const wchar_t *progname; -- cgit v1.2.3