renaming config.h to features.h

This commit is contained in:
Alex Shinn 2009-12-29 14:39:13 +09:00
parent e5bcac2142
commit dd16dcef2d
4 changed files with 38 additions and 20 deletions

View file

@ -90,7 +90,7 @@ COMPILED_LIBS := lib/srfi/27/rand$(SO) lib/srfi/33/bit$(SO) \
libs: $(COMPILED_LIBS) libs: $(COMPILED_LIBS)
INCLUDES = include/chibi/sexp.h include/chibi/config.h include/chibi/install.h INCLUDES = include/chibi/sexp.h include/chibi/features.h include/chibi/install.h
include/chibi/install.h: Makefile include/chibi/install.h: Makefile
echo '#define sexp_so_extension "'$(SO)'"' > $@ echo '#define sexp_so_extension "'$(SO)'"' > $@

28
README
View file

@ -23,9 +23,9 @@ To build, just run "make". This will provide a shared library
repl. The "chibi-scheme-static" make target builds an equivalent repl. The "chibi-scheme-static" make target builds an equivalent
static executable. static executable.
You can edit the file config.h for a number of settings, mostly You can edit the file chibi/features.h for a number of settings,
disabling features to make the executable smaller. You can specify mostly disabling features to make the executable smaller. You can
standard options directly as arguments to make, for example specify standard options directly as arguments to make, for example
make CFLAGS=-Os CPPFLAGS=-DSEXP_USE_NO_FEATURES=1 make CFLAGS=-Os CPPFLAGS=-DSEXP_USE_NO_FEATURES=1
@ -36,7 +36,7 @@ to optimize for size, or
to compile against a library installed in /usr/local. to compile against a library installed in /usr/local.
By default Chibi uses a custom, precise, non-moving GC. You can link By default Chibi uses a custom, precise, non-moving GC. You can link
against the Boehm conservative GC by editing the config file, or against the Boehm conservative GC by editing the features.h file, or
directly from make with: directly from make with:
make SEXP_USE_BOEHM=1 make SEXP_USE_BOEHM=1
@ -154,7 +154,25 @@ this.
Currently you can load the following SRFIs with (import (srfi N)): Currently you can load the following SRFIs with (import (srfi N)):
0, 1, 2, 6, 8, 9, 11, 16, 22, 23, 26, 27, 33, 39, 46, 62, 69, 95, 98 (srfi 0) - cond-expand
(srfi 1) - list library
(srfi 2) - and-let*
(srfi 6) - basic string ports
(srfi 8) - receive
(srfi 9) - define-record-type
(srfi 11) - let-values/let*-values
(srfi 16) - case-lambda
(srfi 22) - running scheme scripts on Unix
(srfi 23) - error reporting mechanism
(srfi 26) - cut/cute partial application
(srfi 27) - sources of random bits
(srfi 33) - bitwise operators
(srfi 39) - prameter objects
(srfi 46) - basic syntax-rules extensions
(srfi 62) - s-expression comments
(srfi 69) - basic hash tables
(srfi 95) - sorting and merging
(srfi 98) - environment access
although 0, 22, 23, 46 and 62 are built into the default environment although 0, 22, 23, 46 and 62 are built into the default environment
so there's no need to import them. so there's no need to import them.

View file

@ -1,4 +1,4 @@
/* config.h -- general configuration */ /* features.h -- general feature configuration */
/* Copyright (c) 2009 Alex Shinn. All rights reserved. */ /* Copyright (c) 2009 Alex Shinn. All rights reserved. */
/* BSD-style license: http://synthcode.com/license.txt */ /* BSD-style license: http://synthcode.com/license.txt */

View file

@ -7,7 +7,7 @@
#define SEXP_MODULE_PATH_VAR "CHIBI_MODULE_PATH" #define SEXP_MODULE_PATH_VAR "CHIBI_MODULE_PATH"
#include "chibi/config.h" #include "chibi/features.h"
#include "chibi/install.h" #include "chibi/install.h"
#include <ctype.h> #include <ctype.h>