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
31e01daf
Commit
31e01daf
authored
Dec 10, 2012
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #616 from mattn/fix_generator
fix generator.
parents
f51563c6
7befb3e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
mrbgems/generator.c
mrbgems/generator.c
+5
-3
No files found.
mrbgems/generator.c
View file @
31e01daf
...
...
@@ -28,7 +28,7 @@ static char
static
char
*
get_full_path
(
char
*
path
,
char
*
mruby_root
)
{
char
full_path
[
1024
]
=
{
0
};
static
char
full_path
[
1024
]
=
{
0
};
if
(
path
[
0
]
==
'/'
)
{
/* An absolute UNIX path starts with a slash */
strcpy
(
full_path
,
path
);
...
...
@@ -75,7 +75,7 @@ static char
}
}
ret
=
malloc
(
i
+
count
*
(
newlen
-
oldlen
));
ret
=
malloc
(
i
+
count
*
(
newlen
-
oldlen
)
+
1
);
if
(
ret
==
NULL
)
exit
(
EXIT_FAILURE
);
...
...
@@ -148,7 +148,7 @@ for_each_gem (char before[1024], char after[1024],
char
gem_name
[
1024
]
=
{
0
};
int
char_index
;
char
gem_list
[
1024
][
1024
]
=
{
{
0
},
{
0
}
};
int
gem_index
;
int
gem_index
=
0
;
int
i
;
int
skip
;
FILE
*
check
;
...
...
@@ -184,6 +184,8 @@ for_each_gem (char before[1024], char after[1024],
skip
=
FALSE
;
else
skip
=
TRUE
;
if
(
check
)
fclose
(
check
);
}
if
(
skip
==
FALSE
)
...
...
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