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
91a4eb57
Commit
91a4eb57
authored
Nov 24, 2013
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1595 from take-cheeze/filename_realloc_fix
get_filename_table_size realloc fix.
parents
28a159c7
23a41283
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
1 deletion
+16
-1
src/dump.c
src/dump.c
+1
-0
tasks/mruby_build.rake
tasks/mruby_build.rake
+5
-0
travis_config.rb
travis_config.rb
+10
-1
No files found.
src/dump.c
View file @
91a4eb57
...
...
@@ -492,6 +492,7 @@ get_filename_table_size(mrb_state *mrb, mrb_irep *irep, mrb_sym **fp, size_t *lp
}
for
(
i
=
0
;
i
<
irep
->
rlen
;
i
++
)
{
size
+=
get_filename_table_size
(
mrb
,
irep
->
reps
[
i
],
fp
,
lp
);
filenames
=
*
fp
;
}
}
return
size
;
...
...
tasks/mruby_build.rake
View file @
91a4eb57
...
...
@@ -87,6 +87,11 @@ module MRuby
MRuby
.
targets
[
@name
].
instance_eval
(
&
block
)
end
def
enable_debug
compilers
.
each
{
|
c
|
c
.
defines
+=
%w(MRB_DEBUG)
}
@mrbc
.
compile_options
+=
' -g'
end
def
toolchain
(
name
)
tc
=
Toolchain
.
toolchains
[
name
.
to_s
]
fail
"Unknown
#{
name
}
toolchain"
unless
tc
...
...
travis_config.rb
View file @
91a4eb57
MRuby
::
Build
.
new
(
'debug'
)
do
|
conf
|
toolchain
:gcc
enable_debug
# include all core GEMs
conf
.
gembox
'full-core'
conf
.
cc
.
defines
=
%w(MRB_GC_FIXED_ARENA)
end
MRuby
::
Build
.
new
do
|
conf
|
toolchain
:gcc
# include all core GEMs
conf
.
gembox
'full-core'
conf
.
cc
.
defines
=
%w(MRB_
DEBUG MRB_
GC_FIXED_ARENA)
conf
.
cc
.
defines
=
%w(MRB_GC_FIXED_ARENA)
end
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