summaryrefslogtreecommitdiffhomepage
path: root/src/parse.y
diff options
context:
space:
mode:
authorYukihiro Matsumoto <[email protected]>2012-07-03 14:27:34 +0900
committerYukihiro Matsumoto <[email protected]>2012-07-03 14:27:34 +0900
commit3be4e91376804c1815e38d4a591ab152fba9d3b3 (patch)
tree638c9c26126d7e3659a2d58d53419a03a75ee23f /src/parse.y
parent660f64b1d03a2eb5cf09c3ab580f2e254d9fe253 (diff)
downloadmruby-3be4e91376804c1815e38d4a591ab152fba9d3b3.tar.gz
mruby-3be4e91376804c1815e38d4a591ab152fba9d3b3.zip
remove size_t from parser
Diffstat (limited to 'src/parse.y')
-rw-r--r--src/parse.y10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/parse.y b/src/parse.y
index af8b93cfa..8a85b6fc6 100644
--- a/src/parse.y
+++ b/src/parse.y
@@ -686,7 +686,7 @@ new_float(parser_state *p, const char *s)
// (:str . (s . len))
static node*
-new_str(parser_state *p, const char *s, size_t len)
+new_str(parser_state *p, const char *s, int len)
{
return cons((node*)NODE_STR, cons((node*)strndup(s, len), (node*)len));
}
@@ -2961,7 +2961,7 @@ static void
yyerror(parser_state *p, const char *s)
{
char* c;
- size_t n;
+ int n;
if (! p->capture_errors) {
if (p->filename) {
@@ -2995,7 +2995,7 @@ static void
yywarn(parser_state *p, const char *s)
{
char* c;
- size_t n;
+ int n;
if (! p->capture_errors) {
if (p->filename) {
@@ -4774,7 +4774,7 @@ mrb_parse_file(mrb_state *mrb, FILE *f)
}
parser_state*
-mrb_parse_nstring(mrb_state *mrb, const char *s, size_t len)
+mrb_parse_nstring(mrb_state *mrb, const char *s, int len)
{
parser_state *p;
@@ -4812,7 +4812,7 @@ mrb_compile_file(mrb_state * mrb, FILE *f)
}
int
-mrb_compile_nstring(mrb_state *mrb, char *s, size_t len)
+mrb_compile_nstring(mrb_state *mrb, char *s, int len)
{
parser_state *p;
int n;