Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tiger
monoburg
Commits
c17f5ca2
Unverified
Commit
c17f5ca2
authored
Sep 16, 2019
by
Maxime Joubert
Browse files
parser: prefer memmove to g_memmove
* src/parser.y: here.
parent
0c7f2e41
Pipeline
#13056
passed with stage
in 1 minute and 34 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/parser.y
View file @
c17f5ca2
...
...
@@ -501,7 +501,7 @@ yylex (void)
unsigned i = 3, d = 1;
static char buf [100000];
g_
memmove (buf, "\t{\n", 4);
memmove (buf, "\t{\n", 4);
if (lines_p)
i += sprintf (buf + 3, "#line %d \"%s\"\n", LASTINPUT->yylineno,
LASTINPUT->filename);
...
...
@@ -516,7 +516,7 @@ yylex (void)
break;
}
}
g_
memmove (buf + --i, "\n\t}", 4);
memmove (buf + --i, "\n\t}", 4);
yylval.text = g_strdup (buf);
return CODE;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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