Home
last modified time | relevance | path

Searched refs:new_errmsg (Results 1 – 2 of 2) sorted by relevance

/third_party/python/Parser/
Dpegen_errors.c287 char *new_errmsg = PyMem_Malloc(len + 1); // Lengths of both strings plus NULL character in _PyPegen_raise_error_known_location() local
288 if (!new_errmsg) { in _PyPegen_raise_error_known_location()
293 memcpy(new_errmsg, fstring_msg, strlen(fstring_msg)); in _PyPegen_raise_error_known_location()
294 memcpy(new_errmsg + strlen(fstring_msg), errmsg, strlen(errmsg)); in _PyPegen_raise_error_known_location()
295 new_errmsg[len] = 0; in _PyPegen_raise_error_known_location()
296 errmsg = new_errmsg; in _PyPegen_raise_error_known_location()
Dpegen.c475 char *new_errmsg = PyMem_Malloc(len + 1); // Lengths of both strings plus NULL character in _PyPegen_raise_error_known_location() local
476 if (!new_errmsg) { in _PyPegen_raise_error_known_location()
481 memcpy(new_errmsg, fstring_msg, strlen(fstring_msg)); in _PyPegen_raise_error_known_location()
482 memcpy(new_errmsg + strlen(fstring_msg), errmsg, strlen(errmsg)); in _PyPegen_raise_error_known_location()
483 new_errmsg[len] = 0; in _PyPegen_raise_error_known_location()
484 errmsg = new_errmsg; in _PyPegen_raise_error_known_location()