1
/*===========================================================================
2
* Filename : config-old.h
3
* About : build configuration file (going to be removed)
5
* Copyright (C) 2005-2006 Kazuki Ohta <mover AT hct.zaq.ne.jp>
6
* Copyright (C) 2005-2006 YAMAMOTO Kengo <yamaken AT bp.iij4u.or.jp>
7
* Copyright (c) 2007 SigScheme Project <uim AT freedesktop.org>
11
* Redistribution and use in source and binary forms, with or without
12
* modification, are permitted provided that the following conditions
15
* 1. Redistributions of source code must retain the above copyright
16
* notice, this list of conditions and the following disclaimer.
17
* 2. Redistributions in binary form must reproduce the above copyright
18
* notice, this list of conditions and the following disclaimer in the
19
* documentation and/or other materials provided with the distribution.
20
* 3. Neither the name of authors nor the names of its contributors
21
* may be used to endorse or promote products derived from this software
22
* without specific prior written permission.
24
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS
25
* IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
26
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
27
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR
28
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
29
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
30
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
31
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
32
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
33
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
34
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35
===========================================================================*/
37
/* FIXME: port all things into configure.in and remove this file */
39
#ifndef __SIGSCHEME_CONFIG_OLD_H
40
#define __SIGSCHEME_CONFIG_OLD_H
42
/*===========================================================================
43
Storage configurations
44
===========================================================================*/
46
/* on-stack initial token buffer size for parser */
47
#define SCM_INITIAL_STRING_BUF_SIZE 64
48
#define SCM_INITIAL_SYMBOL_BUF_SIZE 64
50
/* token buffer size extender function */
51
#define SCM_LBUF_F_STRING scm_lbuf_f_linear
52
#define SCM_LBUF_F_SYMBOL scm_lbuf_f_linear
54
#define SCM_DEFAULT_HEAP_SIZE 0x4000
55
#define SCM_DEFAULT_HEAP_ALLOC_THRESHOLD (SCM_DEFAULT_HEAP_SIZE / 2)
56
#undef SCM_DEFAULT_N_HEAPS_MAX
57
#define SCM_DEFAULT_N_HEAPS_INIT 1
58
#define SCM_DEFAULT_SYMBOL_HASH_SIZE 0x400
61
/*===========================================================================
63
===========================================================================*/
64
#define SCM_NEWLINE_STR "\n" /* UNIX flavors */
66
#define SCM_NEWLINE_STR "\r\n" /* Windows/DOS */
67
#define SCM_NEWLINE_STR "\r" /* Mac OS */
70
/*===========================================================================
72
===========================================================================*/
73
#if ((defined(__SYMBIAN32__) && !defined(EKA2)) \
74
|| BREW_MAJ_VER) /* FIXME: inappropriate detection method */
75
#define SCM_HAVE_WRITABLE_GLOBAL_VARS 0
77
#define SCM_HAVE_WRITABLE_GLOBAL_VARS 1
80
#if SCM_HAVE_WRITABLE_GLOBAL_VARS
81
#ifndef SCM_USE_AGGREGATED_GLOBAL_VARS
82
#define SCM_USE_AGGREGATED_GLOBAL_VARS 0
83
#endif /* !SCM_USE_AGGREGATED_GLOBAL_VARS */
84
#else /* SCM_HAVE_WRITABLE_GLOBAL_VARS */
85
#undef SCM_USE_AGGREGATED_GLOBAL_VARS
86
#define SCM_USE_AGGREGATED_GLOBAL_VARS 1
87
#endif /* SCM_HAVE_WRITABLE_GLOBAL_VARS */
90
#endif /* __SIGSCHEME_CONFIG_OLD_H */