source: EcnlProtoTool/trunk/mruby-1.3.0/include/mrbconf.h@ 331

Last change on this file since 331 was 331, checked in by coas-nagasima, 6 years ago

prototoolに関連するプロジェクトをnewlibからmuslを使うよう変更・更新
ntshellをnewlibの下位の実装から、muslのsyscallの実装に変更・更新
以下のOSSをアップデート
・mruby-1.3.0
・musl-1.1.18
・onigmo-6.1.3
・tcc-0.9.27
以下のOSSを追加
・openssl-1.1.0e
・curl-7.57.0
・zlib-1.2.11
以下のmrbgemsを追加
・iij/mruby-digest
・iij/mruby-env
・iij/mruby-errno
・iij/mruby-iijson
・iij/mruby-ipaddr
・iij/mruby-mock
・iij/mruby-require
・iij/mruby-tls-openssl

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-chdr;charset=UTF-8
File size: 3.0 KB
Line 
1/*
2** mrbconf.h - mruby core configuration
3**
4** See Copyright Notice in mruby.h
5*/
6
7#ifndef MRUBYCONF_H
8#define MRUBYCONF_H
9
10#include <limits.h>
11#include <stdint.h>
12
13/* architecture selection: */
14/* specify -DMRB_32BIT or -DMRB_64BIT to override */
15#if !defined(MRB_32BIT) && !defined(MRB_64BIT)
16#if UINT64_MAX == SIZE_MAX
17#define MRB_64BIT
18#else
19#define MRB_32BIT
20#endif
21#endif
22
23#if defined(MRB_32BIT) && defined(MRB_64BIT)
24#error Cannot build for 32 and 64 bit architecture at the same time
25#endif
26
27/* configuration options: */
28/* add -DMRB_USE_FLOAT to use float instead of double for floating point numbers */
29//#define MRB_USE_FLOAT
30
31/* add -DMRB_INT16 to use 16bit integer for mrb_int; conflict with MRB_INT64 */
32//#define MRB_INT16
33
34/* add -DMRB_INT64 to use 64bit integer for mrb_int; conflict with MRB_INT16 */
35//#define MRB_INT64
36
37/* represent mrb_value in boxed double; conflict with MRB_USE_FLOAT */
38//#define MRB_NAN_BOXING
39
40/* define on big endian machines; used by MRB_NAN_BOXING */
41//#define MRB_ENDIAN_BIG
42
43/* represent mrb_value as a word (natural unit of data for the processor) */
44//#define MRB_WORD_BOXING
45
46/* string class to handle UTF-8 encoding */
47#define MRB_UTF8_STRING
48
49/* argv max size in mrb_funcall */
50//#define MRB_FUNCALL_ARGC_MAX 16
51
52/* number of object per heap page */
53//#define MRB_HEAP_PAGE_SIZE 1024
54
55/* use segmented list for IV table */
56//#define MRB_USE_IV_SEGLIST
57
58/* initial size for IV khash; ignored when MRB_USE_IV_SEGLIST is set */
59//#define MRB_IVHASH_INIT_SIZE 8
60
61/* if _etext and _edata available, mruby can reduce memory used by symbols */
62//#define MRB_USE_ETEXT_EDATA
63
64/* do not use __init_array_start to determine readonly data section;
65 effective only when MRB_USE_ETEXT_EDATA is defined */
66//#define MRB_NO_INIT_ARRAY_START
67
68/* turn off generational GC by default */
69//#define MRB_GC_TURN_OFF_GENERATIONAL
70
71/* default size of khash table bucket */
72//#define KHASH_DEFAULT_SIZE 32
73
74/* allocated memory address alignment */
75//#define POOL_ALIGNMENT 4
76
77/* page size of memory pool */
78//#define POOL_PAGE_SIZE 16000
79
80/* initial minimum size for string buffer */
81//#define MRB_STR_BUF_MIN_SIZE 128
82
83/* arena size */
84//#define MRB_GC_ARENA_SIZE 100
85
86/* fixed size GC arena */
87//#define MRB_GC_FIXED_ARENA
88
89/* state atexit stack size */
90//#define MRB_FIXED_STATE_ATEXIT_STACK_SIZE 5
91
92/* fixed size state atexit stack */
93//#define MRB_FIXED_STATE_ATEXIT_STACK
94
95/* -DMRB_DISABLE_XXXX to drop following features */
96//#define MRB_DISABLE_STDIO /* use of stdio */
97
98/* -DMRB_ENABLE_XXXX to enable following features */
99//#define MRB_ENABLE_DEBUG_HOOK /* hooks for debugger */
100
101/* end of configuration */
102
103/* define MRB_DISABLE_XXXX from DISABLE_XXX (for compatibility) */
104#ifdef DISABLE_STDIO
105#define MRB_DISABLE_STDIO
106#endif
107
108/* define MRB_ENABLE_XXXX from ENABLE_XXX (for compatibility) */
109#ifdef ENABLE_DEBUG
110#define MRB_ENABLE_DEBUG_HOOK
111#endif
112
113#ifndef MRB_DISABLE_STDIO
114# include <stdio.h>
115#endif
116
117#ifndef FALSE
118# define FALSE 0
119#endif
120
121#ifndef TRUE
122# define TRUE 1
123#endif
124
125#endif /* MRUBYCONF_H */
Note: See TracBrowser for help on using the repository browser.