parser: prefer memmove to g_memmove

* src/parser.y: here.
parent 0c7f2e41
Pipeline #13056 passed with stage
in 1 minute and 34 seconds
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment