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
acad9567
Commit
acad9567
authored
Jul 15, 2019
by
KOBAYASHI Shuji
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Unify type of line number to `uint16_t`
parent
df293c7b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
include/mruby/compile.h
include/mruby/compile.h
+3
-3
mrbgems/mruby-compiler/core/parse.y
mrbgems/mruby-compiler/core/parse.y
+1
-1
mrbgems/mruby-eval/src/eval.c
mrbgems/mruby-eval/src/eval.c
+1
-1
src/backtrace.c
src/backtrace.c
+1
-1
No files found.
include/mruby/compile.h
View file @
acad9567
...
...
@@ -24,7 +24,7 @@ typedef struct mrbc_context {
mrb_sym
*
syms
;
int
slen
;
char
*
filename
;
shor
t
lineno
;
uint16_
t
lineno
;
int
(
*
partial_hook
)(
struct
mrb_parser_state
*
);
void
*
partial_data
;
struct
RClass
*
target_class
;
...
...
@@ -67,7 +67,7 @@ enum mrb_lex_state_enum {
/* saved error message */
struct
mrb_parser_message
{
in
t
lineno
;
uint16_
t
lineno
;
int
column
;
char
*
message
;
};
...
...
@@ -119,7 +119,7 @@ struct mrb_parser_state {
#endif
mrbc_context
*
cxt
;
mrb_sym
filename_sym
;
in
t
lineno
;
uint16_
t
lineno
;
int
column
;
enum
mrb_lex_state_enum
lstate
;
...
...
mrbgems/mruby-compiler/core/parse.y
View file @
acad9567
...
...
@@ -233,7 +233,7 @@ parser_strdup(parser_state *p, const char *s)
#define strdup(s) parser_strdup(p, s)
static void
dump_int(
shor
t i, char *s)
dump_int(
uint16_
t i, char *s)
{
char *p = s;
char *t = s;
...
...
mrbgems/mruby-eval/src/eval.c
View file @
acad9567
...
...
@@ -235,7 +235,7 @@ create_proc_from_string(mrb_state *mrb, char *s, mrb_int len, mrb_value binding,
}
cxt
=
mrbc_context_new
(
mrb
);
cxt
->
lineno
=
(
shor
t
)
line
;
cxt
->
lineno
=
(
uint16_
t
)
line
;
mrbc_filename
(
mrb
,
cxt
,
file
?
file
:
"(eval)"
);
cxt
->
capture_errors
=
TRUE
;
...
...
src/backtrace.c
View file @
acad9567
...
...
@@ -16,7 +16,7 @@
#include <mruby/data.h>
struct
backtrace_location
{
int
lineno
;
int
32_t
lineno
;
mrb_sym
method_id
;
const
char
*
filename
;
};
...
...
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