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
ce1756b3
Commit
ce1756b3
authored
Mar 14, 2013
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #997 from monaka/pr-add-type-mrb_bool_t
Define mrb_bool_t.
parents
38571fd7
1ffc9ba3
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
20 additions
and
18 deletions
+20
-18
include/mrbconf.h
include/mrbconf.h
+2
-0
include/mruby.h
include/mruby.h
+3
-3
include/mruby/compile.h
include/mruby/compile.h
+7
-7
src/codegen.c
src/codegen.c
+1
-1
src/gc.c
src/gc.c
+1
-1
tools/mrbc/mrbc.c
tools/mrbc/mrbc.c
+2
-2
tools/mruby/mruby.c
tools/mruby/mruby.c
+4
-4
No files found.
include/mrbconf.h
View file @
ce1756b3
...
...
@@ -110,8 +110,10 @@ typedef short mrb_sym;
# define strtoll _strtoi64
# define PRId32 "I32d"
# define PRId64 "I64d"
typedef
unsigned
int
mrb_bool
;
#else
# include <inttypes.h>
typedef
_Bool
mrb_bool
;
#endif
#ifdef ENABLE_STDIO
...
...
include/mruby.h
View file @
ce1756b3
...
...
@@ -121,9 +121,9 @@ typedef struct mrb_state {
size_t
gc_threshold
;
int
gc_interval_ratio
;
int
gc_step_ratio
;
unsigned
int
gc_disabled
:
1
;
unsigned
int
gc_full
:
1
;
unsigned
int
is_generational_gc_mode
:
1
;
mrb_bool
gc_disabled
:
1
;
mrb_bool
gc_full
:
1
;
mrb_bool
is_generational_gc_mode
:
1
;
size_t
majorgc_old_threshold
;
struct
alloca_header
*
mems
;
...
...
include/mruby/compile.h
View file @
ce1756b3
...
...
@@ -21,9 +21,9 @@ typedef struct mrbc_context {
int
slen
;
char
*
filename
;
short
lineno
;
int
capture_errors
:
1
;
int
dump_result
:
1
;
int
no_exec
:
1
;
mrb_bool
capture_errors
:
1
;
mrb_bool
dump_result
:
1
;
mrb_bool
no_exec
:
1
;
}
mrbc_context
;
mrbc_context
*
mrbc_context_new
(
mrb_state
*
mrb
);
...
...
@@ -67,8 +67,8 @@ enum heredoc_type {
/* heredoc structure */
struct
mrb_parser_heredoc_info
{
enum
heredoc_type
type
;
int
allow_indent
:
1
;
int
line_head
:
1
;
mrb_bool
allow_indent
:
1
;
mrb_bool
line_head
:
1
;
const
char
*
term
;
int
term_len
;
mrb_ast_node
*
doc
;
...
...
@@ -102,8 +102,8 @@ struct mrb_parser_state {
mrb_ast_node
*
heredocs
;
/* list of mrb_parser_heredoc_info* */
mrb_ast_node
*
parsing_heredoc
;
int
heredoc_starts_nextline
:
1
;
int
heredoc_end_now
:
1
;
/* for mirb */
mrb_bool
heredoc_starts_nextline
:
1
;
mrb_bool
heredoc_end_now
:
1
;
/* for mirb */
void
*
ylval
;
...
...
src/codegen.c
View file @
ce1756b3
...
...
@@ -49,7 +49,7 @@ typedef struct scope {
int
pc
;
int
lastlabel
;
int
ainfo
:
15
;
int
mscope
:
1
;
mrb_bool
mscope
:
1
;
struct
loopinfo
*
loop
;
int
ensure_level
;
...
...
src/gc.c
View file @
ce1756b3
...
...
@@ -197,7 +197,7 @@ struct heap_page {
struct
heap_page
*
next
;
struct
heap_page
*
free_next
;
struct
heap_page
*
free_prev
;
unsigned
int
old
:
1
;
mrb_bool
old
:
1
;
RVALUE
objects
[
MRB_HEAP_PAGE_SIZE
];
};
...
...
tools/mrbc/mrbc.c
View file @
ce1756b3
...
...
@@ -19,8 +19,8 @@ struct _args {
char
*
filename
;
char
*
initname
;
char
*
ext
;
int
check_syntax
:
1
;
int
verbose
:
1
;
mrb_bool
check_syntax
:
1
;
mrb_bool
verbose
:
1
;
};
static
void
...
...
tools/mruby/mruby.c
View file @
ce1756b3
...
...
@@ -26,10 +26,10 @@ void mrb_show_copyright(mrb_state *);
struct
_args
{
FILE
*
rfp
;
char
*
cmdline
;
int
fname
:
1
;
int
mrbfile
:
1
;
int
check_syntax
:
1
;
int
verbose
:
1
;
mrb_bool
fname
:
1
;
mrb_bool
mrbfile
:
1
;
mrb_bool
check_syntax
:
1
;
mrb_bool
verbose
:
1
;
int
argc
;
char
**
argv
;
};
...
...
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