Searched refs:new_errmsg (Results 1 – 2 of 2) sorted by relevance
287 char *new_errmsg = PyMem_Malloc(len + 1); // Lengths of both strings plus NULL character in _PyPegen_raise_error_known_location() local288 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()
475 char *new_errmsg = PyMem_Malloc(len + 1); // Lengths of both strings plus NULL character in _PyPegen_raise_error_known_location() local476 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()