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) ...@@ -501,7 +501,7 @@ yylex (void)
unsigned i = 3, d = 1; unsigned i = 3, d = 1;
static char buf [100000]; static char buf [100000];
g_memmove (buf, "\t{\n", 4); memmove (buf, "\t{\n", 4);
if (lines_p) if (lines_p)
i += sprintf (buf + 3, "#line %d \"%s\"\n", LASTINPUT->yylineno, i += sprintf (buf + 3, "#line %d \"%s\"\n", LASTINPUT->yylineno,
LASTINPUT->filename); LASTINPUT->filename);
...@@ -516,7 +516,7 @@ yylex (void) ...@@ -516,7 +516,7 @@ yylex (void)
break; break;
} }
} }
g_memmove (buf + --i, "\n\t}", 4); memmove (buf + --i, "\n\t}", 4);
yylval.text = g_strdup (buf); yylval.text = g_strdup (buf);
return CODE; 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