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
b2cf6e79
Commit
b2cf6e79
authored
Apr 20, 2012
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8 from unak/c-spec
Please respect the specification of C
parents
7b1bfa62
c999e476
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
4 deletions
+7
-4
include/mruby.h
include/mruby.h
+3
-0
include/mruby/object.h
include/mruby/object.h
+1
-1
src/pool.c
src/pool.c
+1
-1
src/transcode.c
src/transcode.c
+2
-2
No files found.
include/mruby.h
View file @
b2cf6e79
...
...
@@ -441,11 +441,14 @@ void mrb_bug(const char *fmt, ...);
#ifdef __GNUC__
# define NUM2CHR(x) __extension__ ({mrb_value num2chr_x = (x); NUM2CHR_internal(num2chr_x);})
#else
/* TODO: there is no definitions of RSTRING_* here, so cannot compile.
static inline char
NUM2CHR(mrb_value x)
{
return NUM2CHR_internal(x);
}
*/
#define NUM2CHR(x) NUM2CHR_internal(x)
#endif
mrb_value
mrb_io_gets
(
mrb_state
*
mrb
,
mrb_value
);
mrb_value
mrb_io_getbyte
(
mrb_state
*
mrb
,
mrb_value
);
...
...
include/mruby/object.h
View file @
b2cf6e79
...
...
@@ -6,7 +6,7 @@
int color:3;\
unsigned int flags:21;\
struct RClass *c;\
struct RBasic *gcnext
;
struct RBasic *gcnext
/* white: 011, black: 100, gray: 000 */
...
...
src/pool.c
View file @
b2cf6e79
...
...
@@ -68,7 +68,7 @@ mrb_pool_alloc(mrb_pool *pool, size_t len)
if
(
page
->
offset
+
len
<=
page
->
len
)
{
n
=
page
->
offset
;
page
->
offset
+=
len
;
page
->
last
=
(
void
*
)
page
->
page
+
n
;
page
->
last
=
(
char
*
)
page
->
page
+
n
;
return
page
->
last
;
}
page
=
page
->
next
;
...
...
src/transcode.c
View file @
b2cf6e79
...
...
@@ -632,14 +632,14 @@ transcode_restartable0(mrb_state *mrb,
}
continue
;
case
FUNii
:
next_info
=
(
mrb_value
)(
*
tr
->
func_ii
)(
TRANSCODING_STATE
(
tc
),
next_info
);
next_info
=
(
*
tr
->
func_ii
)(
TRANSCODING_STATE
(
tc
),
next_info
);
goto
follow_info
;
case
FUNsi
:
{
const
unsigned
char
*
char_start
;
size_t
char_len
;
char_start
=
transcode_char_start
(
tc
,
*
in_pos
,
inchar_start
,
in_p
,
&
char_len
);
next_info
=
(
mrb_value
)(
*
tr
->
func_si
)(
TRANSCODING_STATE
(
tc
),
char_start
,
(
size_t
)
char_len
);
next_info
=
(
*
tr
->
func_si
)(
TRANSCODING_STATE
(
tc
),
char_start
,
(
size_t
)
char_len
);
goto
follow_info
;
}
case
FUNio
:
...
...
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