mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-19 05:39:18 +02:00
Hide unnecessarily exported symbols
gc_heap_err_str and load_image_header() are never used outside of gc_heap.c but they are not marked static and are effectively exported by Chibi's shared library. Since this is unlikely to be intentional, let's hide them.
This commit is contained in:
parent
2b7927b9bc
commit
24f207115c
1 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@
|
|||
#if SEXP_USE_IMAGE_LOADING
|
||||
|
||||
#define ERR_STR_SIZE 256
|
||||
char gc_heap_err_str[ERR_STR_SIZE];
|
||||
static char gc_heap_err_str[ERR_STR_SIZE];
|
||||
|
||||
|
||||
static sexp_uint_t sexp_gc_allocated_bytes (sexp ctx, sexp *types, size_t types_cnt, sexp x) {
|
||||
|
@ -573,7 +573,7 @@ static sexp load_image_callback_p2 (sexp ctx, sexp dstp, void *user) {
|
|||
}
|
||||
|
||||
|
||||
int load_image_header(FILE *fp, struct sexp_image_header_t* header) {
|
||||
static int load_image_header(FILE *fp, struct sexp_image_header_t* header) {
|
||||
if (!fp || !header) { return 0; }
|
||||
|
||||
if (fread(header, sizeof(struct sexp_image_header_t), 1, fp) != 1) {
|
||||
|
|
Loading…
Add table
Reference in a new issue