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
36eef0c2
Commit
36eef0c2
authored
May 02, 2014
by
cremno
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add namespace prefix to `dump_irep`
parent
72fe54c4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
include/mruby/dump.h
include/mruby/dump.h
+1
-1
src/dump.c
src/dump.c
+3
-3
No files found.
include/mruby/dump.h
View file @
36eef0c2
...
...
@@ -14,7 +14,7 @@ extern "C" {
#include "mruby.h"
#include "mruby/irep.h"
int
dump_irep
(
mrb_state
*
mrb
,
mrb_irep
*
irep
,
int
debug_info
,
uint8_t
**
bin
,
size_t
*
bin_size
);
int
mrb_
dump_irep
(
mrb_state
*
mrb
,
mrb_irep
*
irep
,
int
debug_info
,
uint8_t
**
bin
,
size_t
*
bin_size
);
#ifdef ENABLE_STDIO
int
mrb_dump_irep_binary
(
mrb_state
*
,
mrb_irep
*
,
int
,
FILE
*
);
int
mrb_dump_irep_cfunc
(
mrb_state
*
mrb
,
mrb_irep
*
,
int
,
FILE
*
f
,
const
char
*
initname
);
...
...
src/dump.c
View file @
36eef0c2
...
...
@@ -726,7 +726,7 @@ is_debug_info_defined(mrb_irep *irep)
}
int
dump_irep
(
mrb_state
*
mrb
,
mrb_irep
*
irep
,
int
debug_info
,
uint8_t
**
bin
,
size_t
*
bin_size
)
mrb_
dump_irep
(
mrb_state
*
mrb
,
mrb_irep
*
irep
,
int
debug_info
,
uint8_t
**
bin
,
size_t
*
bin_size
)
{
int
result
=
MRB_DUMP_GENERAL_FAILURE
;
size_t
section_irep_size
;
...
...
@@ -815,7 +815,7 @@ mrb_dump_irep_binary(mrb_state *mrb, mrb_irep *irep, int debug_info, FILE* fp)
return
MRB_DUMP_INVALID_ARGUMENT
;
}
result
=
dump_irep
(
mrb
,
irep
,
debug_info
,
&
bin
,
&
bin_size
);
result
=
mrb_
dump_irep
(
mrb
,
irep
,
debug_info
,
&
bin
,
&
bin_size
);
if
(
result
==
MRB_DUMP_OK
)
{
fwrite
(
bin
,
bin_size
,
1
,
fp
);
}
...
...
@@ -851,7 +851,7 @@ mrb_dump_irep_cfunc(mrb_state *mrb, mrb_irep *irep, int debug_info, FILE *fp, co
return
MRB_DUMP_INVALID_ARGUMENT
;
}
result
=
dump_irep
(
mrb
,
irep
,
debug_info
,
&
bin
,
&
bin_size
);
result
=
mrb_
dump_irep
(
mrb
,
irep
,
debug_info
,
&
bin
,
&
bin_size
);
if
(
result
==
MRB_DUMP_OK
)
{
fprintf
(
fp
,
"#include <stdint.h>
\n
"
);
/* for uint8_t under at least Darwin */
fprintf
(
fp
,
"const uint8_t %s[] = {"
,
initname
);
...
...
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