mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-07-09 22:17:34 +02:00
Allow linking clibs.c instead of including it.
This commit is contained in:
parent
b78187c89b
commit
14e0b4f6eb
2 changed files with 8 additions and 3 deletions
6
eval.c
6
eval.c
|
@ -1221,10 +1221,10 @@ sexp sexp_get_port_fileno (sexp ctx, sexp self, sexp_sint_t n, sexp port) {
|
|||
#endif
|
||||
|
||||
#if SEXP_USE_STATIC_LIBS
|
||||
#ifndef PLAN9
|
||||
#include "clibs.c"
|
||||
#else
|
||||
#if SEXP_USE_STATIC_LIBS_NO_INCLUDE
|
||||
struct sexp_library_entry_t sexp_static_libraries[];
|
||||
#else
|
||||
#include "clibs.c"
|
||||
#endif
|
||||
static struct sexp_library_entry_t *sexp_find_static_library(const char *file)
|
||||
{
|
||||
|
|
|
@ -336,6 +336,11 @@
|
|||
#define SEXP_USE_STATIC_LIBS 0
|
||||
#endif
|
||||
|
||||
/* don't include clibs.c - include separately or link */
|
||||
#ifndef SEXP_USE_STATIC_LIBS_NO_INCLUDE
|
||||
#define SEXP_USE_STATIC_LIBS_NO_INCLUDE defined(PLAN9)
|
||||
#endif
|
||||
|
||||
#ifndef SEXP_USE_FULL_SOURCE_INFO
|
||||
#define SEXP_USE_FULL_SOURCE_INFO ! SEXP_USE_NO_FEATURES
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue