Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
828a9989
Commit
828a9989
authored
Apr 27, 2019
by
dearblue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update document for `MRB_USE_CUSTOM_RO_DATA_P`
parent
b57f61ac
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
doc/guides/mrbconf.md
doc/guides/mrbconf.md
+7
-0
include/mrbconf.h
include/mrbconf.h
+5
-0
No files found.
doc/guides/mrbconf.md
View file @
828a9989
...
...
@@ -146,6 +146,13 @@ largest value of required alignment.
*
Uses
`_etext`
and
`_edata`
.
*
It must be
`_etext < data_addr < _edata`
.
`MRB_USE_CUSTOM_RO_DATA_P`
*
Takes precedence over
`MRB_USE_ETEXT_EDATA`
.
*
Please try if both
`MRB_USE_ETEXT_EDATA`
and
`MRB_NO_INIT_ARRAY_START`
are not available.
*
The
`mrb_ro_data_p()`
function is implemented by the user in an arbitrary file.
*
The prototype declaration is
`mrb_bool mrb_ro_data_p(const char *ptr)`
.
*
Return
`TRUE`
if
`ptr`
is in read-only section, otherwise return
`FALSE`
.
## Other configuration.
`MRB_UTF8_STRING`
*
Adds UTF-8 encoding support to character-oriented String instance methods.
...
...
include/mrbconf.h
View file @
828a9989
...
...
@@ -93,6 +93,11 @@
effective only when MRB_USE_ETEXT_EDATA is defined */
//#define MRB_NO_INIT_ARRAY_START
/* if do not works both MRB_USE_ETEXT_EDATA and MRB_NO_INIT_ARRAY_START,
you can try mrb_ro_data_p() that you have implemented yourself in any file;
prototype is `mrb_bool mrb_ro_data_p(const char *ptr)` */
//#define MRB_USE_CUSTOM_RO_DATA_P
/* turn off generational GC by default */
//#define MRB_GC_TURN_OFF_GENERATIONAL
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment