OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [language/] [c/] [libc/] [i18n/] [v2_0/] [cdl/] [i18n.cdl] - Blame information for rev 174

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 unneback
# ====================================================================
2
#
3
#      i18n.cdl
4
#
5
#      C library internationalization (i18n) related configuration data
6
#
7
# ====================================================================
8
#####ECOSGPLCOPYRIGHTBEGIN####
9
## -------------------------------------------
10
## This file is part of eCos, the Embedded Configurable Operating System.
11
## Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
12
##
13
## eCos is free software; you can redistribute it and/or modify it under
14
## the terms of the GNU General Public License as published by the Free
15
## Software Foundation; either version 2 or (at your option) any later version.
16
##
17
## eCos is distributed in the hope that it will be useful, but WITHOUT ANY
18
## WARRANTY; without even the implied warranty of MERCHANTABILITY or
19
## FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
20
## for more details.
21
##
22
## You should have received a copy of the GNU General Public License along
23
## with eCos; if not, write to the Free Software Foundation, Inc.,
24
## 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
25
##
26
## As a special exception, if other files instantiate templates or use macros
27
## or inline functions from this file, or you compile this file and link it
28
## with other works to produce a work based on this file, this file does not
29
## by itself cause the resulting work to be covered by the GNU General Public
30
## License. However the source code for this file must still be made available
31
## in accordance with section (3) of the GNU General Public License.
32
##
33
## This exception does not invalidate any other reasons why a work based on
34
## this file might be covered by the GNU General Public License.
35
##
36
## Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
37
## at http://sources.redhat.com/ecos/ecos-license/
38
## -------------------------------------------
39
#####ECOSGPLCOPYRIGHTEND####
40
# ====================================================================
41
######DESCRIPTIONBEGIN####
42
#
43
# Author(s):      jlarmour
44
# Contributors:   jjohnstn
45
# Date:           2000-04-14
46
#
47
#####DESCRIPTIONEND####
48
#
49
# ====================================================================
50
 
51
cdl_package CYGPKG_LIBC_I18N {
52
    display       "ISO C library internationalization functions"
53
    description   "
54
        This package provides internationalization functions specified by the
55
        ISO C standard - ISO/IEC 9899:1990. These include locale-related
56
        functionality and  functionality."
57
    doc           ref/libc.html
58
    include_dir   cyg/libc/i18n
59
    parent        CYGPKG_LIBC
60
    implements    CYGINT_ISO_LOCALE
61
    implements    CYGINT_ISO_CTYPE
62
    implements    CYGINT_ISO_STDLIB_MULTIBYTE
63
    requires      CYGPKG_ISOINFRA
64
    compile       ctype.cxx locale.cxx mblen.cxx mbtowc.cxx mbstowcs.cxx \
65
                  wctomb.cxx wcstombs.cxx mbtowc_jp.cxx wctomb_jp.cxx mbtowc_c.cxx
66
 
67
# ====================================================================
68
 
69
    cdl_component CYGPKG_LIBC_I18N_LOCALES {
70
        display       "Supported locales"
71
        flavor        none
72
        description   "
73
            These options determine which locales other than the \"C\" locale
74
            are supported and hence contribute to the size of the executable."
75
 
76
        cdl_interface CYGINT_LIBC_I18N_MB_REQUIRED {
77
            display       "Support for multiple locales required"
78
            flavor        booldata
79
            requires      { CYGBLD_ISO_STDLIB_MB_CUR_MAX_HEADER == \
80
                            "" }
81
        }
82
 
83
        cdl_option CYGFUN_LIBC_I18N_LOCALE_C_SJIS {
84
            display       "C-SJIS locale support"
85
            default_value 0
86
            implements    CYGINT_LIBC_I18N_MB_REQUIRED
87
            description    "
88
                This option controls if the \"C-SJIS\" locale will be
89
                supported by setlocale().  The locale is a hybrid locale
90
                that is mostly the \"C\" locale with Japanese SJIS multibyte
91
                support added."
92
        }
93
 
94
        cdl_option CYGFUN_LIBC_I18N_LOCALE_C_JIS {
95
            display       "C-JIS locale support"
96
            default_value 0
97
            implements    CYGINT_LIBC_I18N_MB_REQUIRED
98
            description    "
99
                This option controls if the \"C-JIS\" locale will be
100
                supported by setlocale().  The locale is a hybrid locale
101
                that is mostly the \"C\" locale with Japanese JIS multibyte
102
                support added."
103
        }
104
 
105
        cdl_option CYGFUN_LIBC_I18N_LOCALE_C_EUCJP {
106
            display       "C-EUCJP locale support"
107
            default_value 0
108
            implements    CYGINT_LIBC_I18N_MB_REQUIRED
109
            description    "
110
                This option controls if the \"C-EUCJP\" locale will be
111
                supported by setlocale().  The locale is a hybrid locale
112
                that is mostly the \"C\" locale with Japanese EUCJP multibyte
113
                support added."
114
        }
115
    }
116
 
117
# ====================================================================
118
 
119
    cdl_option CYGSEM_LIBC_I18N_PER_THREAD_MB    {
120
        display       "Per-thread multibyte state"
121
        requires      CYGVAR_KERNEL_THREADS_DATA
122
        default_value 0
123
        description   "
124
            This option controls whether the multibyte character
125
            handling functions mblen(), mbtowc(), and wctomb(),
126
            have their state recorded on a per-thread
127
            basis rather than global. If this option is
128
            disabled, some per-thread space can be saved.
129
            Enabling this option will use three slots
130
            of kernel per-thread data. You should ensure you
131
            have enough slots configured for all your
132
            per-thread data."
133
    }
134
 
135
# ====================================================================
136
 
137
    cdl_option CYGNUM_LIBC_I18N_MAX_LOCALE_NAME_SIZE {
138
        display       "Size of locale name strings"
139
        flavor        data
140
        legal_values  { (CYGFUN_LIBC_I18N_LOCALE_C_EUCJP ? 8 : \
141
                        (CYGFUN_LIBC_I18N_LOCALE_C_SJIS ? 7 :  \
142
                          (CYGFUN_LIBC_I18N_LOCALE_C_JIS ? 6 : 2))) to 0x7fffffff }
143
        default_value { (CYGFUN_LIBC_I18N_LOCALE_C_EUCJP ? 8 : \
144
                        (CYGFUN_LIBC_I18N_LOCALE_C_SJIS ? 7 :  \
145
                          (CYGFUN_LIBC_I18N_LOCALE_C_JIS ? 6 : 2)))  }
146
        description   "
147
            This option controls the maximum size of
148
            locale names and is used, among other things
149
            to instantiate a static string used
150
            as a return value from the
151
            setlocale() function. When requesting the
152
            current locale settings with LC_ALL, a string
153
            must be constructed to contain this data, rather
154
            than just returning a constant string. This
155
            string data is stored in the static string.
156
            This depends on the length of locale names,
157
            hence this option. If just the C locale is
158
            present, this option can be set as low as 2."
159
    }
160
 
161
# ====================================================================
162
 
163
    cdl_option CYGIMP_LIBC_I18N_CTYPE_INLINES {
164
        display       "Inline versions of  functions"
165
        default_value 1
166
        requires      { CYGBLD_ISO_CTYPE_HEADER == \
167
                           "" }
168
        description   "
169
            This option chooses whether the simple character
170
            classification and conversion functions (e.g.
171
            isupper(), isalpha(), toupper(), etc.)
172
            from  are available as inline
173
            functions. This may improve performance and as
174
            the functions are small, may even improve code
175
            size."
176
    }
177
 
178
# ====================================================================
179
 
180
    cdl_component CYGPKG_LIBC_I18N_OPTIONS {
181
        display "C library i18n functions build options"
182
        flavor  none
183
        no_define
184
        description   "
185
            Package specific build options including control over
186
            compiler flags used only in building this package,
187
            and details of which tests are built."
188
 
189
 
190
        cdl_option CYGPKG_LIBC_I18N_CFLAGS_ADD {
191
            display "Additional compiler flags"
192
            flavor  data
193
            no_define
194
            default_value { "" }
195
            description   "
196
                This option modifies the set of compiler flags for
197
                building the C library. These flags are used in addition
198
                to the set of global flags."
199
        }
200
 
201
        cdl_option CYGPKG_LIBC_I18N_CFLAGS_REMOVE {
202
            display "Suppressed compiler flags"
203
            flavor  data
204
            no_define
205
            default_value { "" }
206
            description   "
207
                This option modifies the set of compiler flags for
208
                building the C library. These flags are removed from
209
                the set of global flags if present."
210
        }
211
 
212
        cdl_option CYGPKG_LIBC_I18N_TESTS {
213
            display "C library i18n function tests"
214
            flavor  data
215
            no_define
216
            calculated { "tests/ctype tests/setlocale tests/i18nmb" }
217
            description   "
218
                This option specifies the set of tests for the C library
219
                i18n functions."
220
        }
221
    }
222
}
223
 
224
# ====================================================================
225
# EOF i18n.cdl

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.