From 07c5c7a6f832852e459ec22546213cb1f2a90dee Mon Sep 17 00:00:00 2001 From: Alex Shinn Date: Wed, 25 May 2011 09:34:48 +0900 Subject: [PATCH] fixing TYPE_DEFS=0 --- include/chibi/features.h | 2 +- sexp.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/chibi/features.h b/include/chibi/features.h index 3d18b43b..95ab9ca0 100644 --- a/include/chibi/features.h +++ b/include/chibi/features.h @@ -337,7 +337,7 @@ #endif #ifndef SEXP_USE_GLOBAL_TYPES -#define SEXP_USE_GLOBAL_TYPES (! SEXP_USE_TYPE_DEFS) +#define SEXP_USE_GLOBAL_TYPES 0 #endif #ifndef SEXP_USE_GLOBAL_SYMBOLS diff --git a/sexp.c b/sexp.c index b4255f5d..3ec003cd 100755 --- a/sexp.c +++ b/sexp.c @@ -129,13 +129,13 @@ static struct sexp_type_struct _sexp_type_specs[] = { struct sexp_struct *sexp_type_specs = _sexp_type_specs; #endif +#define SEXP_INIT_NUM_TYPES (SEXP_NUM_CORE_TYPES*2) + #if SEXP_USE_TYPE_DEFS #if SEXP_USE_GLOBAL_TYPES static sexp_uint_t sexp_num_types = SEXP_NUM_CORE_TYPES; static sexp_uint_t sexp_type_array_size = SEXP_NUM_CORE_TYPES; -#else -#define SEXP_INIT_NUM_TYPES (SEXP_NUM_CORE_TYPES*2) #endif sexp sexp_register_type_op (sexp ctx sexp_api_params(self, n), sexp name,