Groonga 3.0.9 Source Code Document
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
mrbconf.h
Go to the documentation of this file.
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 /* configuration options: */
11 /* add -DMRB_USE_FLOAT to use float instead of double for floating point numbers */
12 //#define MRB_USE_FLOAT
13 
14 /* add -DMRB_INT16 to use 16bit integer for mrb_int; conflict with MRB_INT64 */
15 //#define MRB_INT16
16 
17 /* add -DMRB_INT64 to use 64bit integer for mrb_int; conflict with MRB_INT16 */
18 //#define MRB_INT64
19 
20 /* represent mrb_value in boxed double; conflict with MRB_USE_FLOAT */
21 //#define MRB_NAN_BOXING
22 
23 /* define on big endian machines; used by MRB_NAN_BOXING */
24 //#define MRB_ENDIAN_BIG
25 
26 /* represent mrb_value as a word (natural unit of data for the processor) */
27 // #define MRB_WORD_BOXING
28 
29 /* argv max size in mrb_funcall */
30 //#define MRB_FUNCALL_ARGC_MAX 16
31 
32 /* number of object per heap page */
33 //#define MRB_HEAP_PAGE_SIZE 1024
34 
35 /* use segmented list for IV table */
36 //#define MRB_USE_IV_SEGLIST
37 
38 /* initial size for IV khash; ignored when MRB_USE_IV_SEGLIST is set */
39 //#define MRB_IVHASH_INIT_SIZE 8
40 
41 /* initial size for IREP array */
42 //#define MRB_IREP_ARRAY_INIT_SIZE (256u)
43 
44 /* turn off generational GC by default */
45 //#define MRB_GC_TURN_OFF_GENERATIONAL
46 
47 /* default size of khash table bucket */
48 //#define KHASH_DEFAULT_SIZE 32
49 
50 /* allocated memory address alignment */
51 //#define POOL_ALIGNMENT 4
52 
53 /* page size of memory pool */
54 //#define POOL_PAGE_SIZE 16000
55 
56 /* initial minimum size for string buffer */
57 //#define MRB_STR_BUF_MIN_SIZE 128
58 
59 /* array size for parser buffer */
60 //#define MRB_PARSER_BUF_SIZE 1024
61 
62 /* -DDISABLE_XXXX to drop following features */
63 //#define DISABLE_STDIO /* use of stdio */
64 
65 /* -DENABLE_XXXX to enable following features */
66 //#define ENABLE_DEBUG /* hooks for debugger */
67 
68 /* end of configuration */
69 
70 /* define ENABLE_XXXX from DISABLE_XXX */
71 #ifndef DISABLE_STDIO
72 #define ENABLE_STDIO
73 #endif
74 #ifndef ENABLE_DEBUG
75 #define DISABLE_DEBUG
76 #endif
77 
78 #ifdef ENABLE_STDIO
79 # include <stdio.h>
80 #endif
81 
82 #ifndef FALSE
83 # define FALSE 0
84 #endif
85 
86 #ifndef TRUE
87 # define TRUE 1
88 #endif
89 
90 #endif /* MRUBYCONF_H */