[Python-checkins] python/dist/src/Parser tokenizer.c,2.62,2.63
loewis@users.sourceforge.net
loewis@users.sourceforge.net
Wed, 07 Aug 2002 08:18:59 -0700
Update of /cvsroot/python/python/dist/src/Parser
In directory usw-pr-cvs1:/tmp/cvs-serv7907/Parser
Modified Files:
tokenizer.c
Log Message:
Use Py_FatalError instead of abort.
Index: tokenizer.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Parser/tokenizer.c,v
retrieving revision 2.62
retrieving revision 2.63
diff -C2 -d -r2.62 -r2.63
*** tokenizer.c 7 Aug 2002 12:33:18 -0000 2.62
--- tokenizer.c 7 Aug 2002 15:18:56 -0000 2.63
***************
*** 327,331 ****
#ifndef Py_USING_UNICODE
/* In a non-Unicode built, this should never be called. */
! abort();
#else
PyObject* utf8;
--- 327,332 ----
#ifndef Py_USING_UNICODE
/* In a non-Unicode built, this should never be called. */
! Py_FatalError("fp_readl should not be called in this build.");
! return NULL;
#else
PyObject* utf8;
***************
*** 404,408 ****
decoding_fgets(char *s, int size, struct tok_state *tok)
{
! char *line;
int warn = 0, badchar = 0;
for (;;) {
--- 405,409 ----
decoding_fgets(char *s, int size, struct tok_state *tok)
{
! char *line = NULL;
int warn = 0, badchar = 0;
for (;;) {