X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fsave.h;h=0327efa7f4870a4ebb54272c1962dfaee08a9aec;hb=37d3828773e2f847bb1ed7522b0af4fb8e736fc8;hp=5b1cdcdd77f86752038cb91011107fb8e333030e;hpb=f82850855bab2cdaaf51c4e92d506b365866e65f;p=sbcl.git diff --git a/src/runtime/save.h b/src/runtime/save.h index 5b1cdcd..0327efa 100644 --- a/src/runtime/save.h +++ b/src/runtime/save.h @@ -11,14 +11,20 @@ #ifndef _SAVE_H_ #define _SAVE_H_ - +#include #include "core.h" +#define COMPRESSION_LEVEL_NONE INT_MIN + extern FILE* open_core_for_saving(char *filename); extern void *load_runtime(char *runtime_path, size_t *size_out); extern FILE *prepare_to_save(char *filename, boolean prepend_runtime, void **runtime_bytes, size_t *runtime_size); extern boolean save_runtime_to_filehandle(FILE *output, void *runtime_bytes, size_t runtime_size); -extern boolean save_to_filehandle(FILE *file, char *filename, lispobj initfun, boolean make_executable, boolean keep_runtime_options); -extern boolean save(char *filename, lispobj initfun, boolean prepend_runtime, boolean keep_runtime_options); +extern boolean save_to_filehandle(FILE *file, char *filename, lispobj initfun, + boolean make_executable, boolean keep_runtime_options, + int core_compression_level); +extern boolean save(char *filename, lispobj initfun, boolean prepend_runtime, + boolean keep_runtime_options, + boolean compressed_core, int core_compression_level); #endif