~ubuntu-branches/ubuntu/hardy/uim/hardy

« back to all changes in this revision

Viewing changes to sigscheme/src/config-old.h

  • Committer: Bazaar Package Importer
  • Author(s): Masahito Omote
  • Date: 2007-04-21 03:46:09 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20070421034609-gpcurkutp8vaysqj
Tags: 1:1.4.1-3
* Switch to dh_gtkmodules for the gtk 2.10 transition (Closes:
  #419318)
  - debian/control: Add ${misc:Depends} and remove libgtk2.0-bin on
    uim-gtk2.0.
  - debian/uim-gtk2.0.post{inst,rm}: Removed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*===========================================================================
 
2
 *  Filename : config-old.h
 
3
 *  About    : build configuration file (going to be removed)
 
4
 *
 
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>
 
8
 *
 
9
 *  All rights reserved.
 
10
 *
 
11
 *  Redistribution and use in source and binary forms, with or without
 
12
 *  modification, are permitted provided that the following conditions
 
13
 *  are met:
 
14
 *
 
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.
 
23
 *
 
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
===========================================================================*/
 
36
 
 
37
/* FIXME: port all things into configure.in and remove this file */
 
38
 
 
39
#ifndef __SIGSCHEME_CONFIG_OLD_H
 
40
#define __SIGSCHEME_CONFIG_OLD_H
 
41
 
 
42
/*===========================================================================
 
43
  Storage configurations
 
44
===========================================================================*/
 
45
 
 
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
 
49
 
 
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
 
53
 
 
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
 
59
 
 
60
 
 
61
/*===========================================================================
 
62
  Platform Dependency
 
63
===========================================================================*/
 
64
#define SCM_NEWLINE_STR         "\n"   /* UNIX flavors */
 
65
#if 0
 
66
#define SCM_NEWLINE_STR         "\r\n" /* Windows/DOS */
 
67
#define SCM_NEWLINE_STR         "\r"   /* Mac OS */
 
68
#endif
 
69
 
 
70
/*===========================================================================
 
71
  Dependency Resolution
 
72
===========================================================================*/
 
73
#if ((defined(__SYMBIAN32__) && !defined(EKA2)) \
 
74
     || BREW_MAJ_VER)  /* FIXME: inappropriate detection method */
 
75
#define SCM_HAVE_WRITABLE_GLOBAL_VARS 0
 
76
#else
 
77
#define SCM_HAVE_WRITABLE_GLOBAL_VARS 1
 
78
#endif
 
79
 
 
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 */
 
88
 
 
89
 
 
90
#endif /* __SIGSCHEME_CONFIG_OLD_H */