comparison Python/pythonrun.c @ 5611:5ed3a21cc122 legacy-trunk

Can't return 0 from void function...
author Guido van Rossum <guido@python.org>
date Fri, 23 May 1997 00:19:20 +0000
parents cbb4e3cf086e
children 6f67a1bda15a
comparison
equal deleted inserted replaced
5610:10e9cfa010f0 5611:5ed3a21cc122
327 { 327 {
328 int err = 0; 328 int err = 0;
329 PyObject *exception, *v, *tb, *f; 329 PyObject *exception, *v, *tb, *f;
330 PyErr_Fetch(&exception, &v, &tb); 330 PyErr_Fetch(&exception, &v, &tb);
331 if (exception == NULL) 331 if (exception == NULL)
332 return 0; 332 return;
333 if (exception == PyExc_SystemExit) { 333 if (exception == PyExc_SystemExit) {
334 err = Py_FlushLine(); 334 err = Py_FlushLine();
335 fflush(stdout); 335 fflush(stdout);
336 if (v == NULL || v == Py_None) 336 if (v == NULL || v == Py_None)
337 Py_Exit(0); 337 Py_Exit(0);