Lines Matching refs:newtok
934 char *newtok = PyOS_Readline(stdin, stdout, tok->prompt); in tok_nextc() local
936 if (newtok != NULL) { in tok_nextc()
937 char *translated = translate_newlines(newtok, 0, tok); in tok_nextc()
938 PyMem_FREE(newtok); in tok_nextc()
941 newtok = translated; in tok_nextc()
943 if (tok->encoding && newtok && *newtok) { in tok_nextc()
947 PyObject *u = translate_into_utf8(newtok, tok->encoding); in tok_nextc()
948 PyMem_FREE(newtok); in tok_nextc()
955 newtok = PyMem_MALLOC(buflen+1); in tok_nextc()
956 if (newtok == NULL) { in tok_nextc()
961 strcpy(newtok, buf); in tok_nextc()
967 if (newtok == NULL) in tok_nextc()
969 else if (*newtok == '\0') { in tok_nextc()
970 PyMem_FREE(newtok); in tok_nextc()
976 size_t newlen = oldlen + strlen(newtok); in tok_nextc()
983 PyMem_FREE(newtok); in tok_nextc()
990 strcpy(tok->buf + oldlen, newtok); in tok_nextc()
991 PyMem_FREE(newtok); in tok_nextc()
1000 tok->buf = newtok; in tok_nextc()