| LEFT | RIGHT |
| 1 /* | 1 /* |
| 2 * New exceptions.c written in Iceland by Richard Jones and Georg Brandl. | 2 * New exceptions.c written in Iceland by Richard Jones and Georg Brandl. |
| 3 * | 3 * |
| 4 * Thanks go to Tim Peters and Michael Hudson for debugging. | 4 * Thanks go to Tim Peters and Michael Hudson for debugging. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 #define PY_SSIZE_T_CLEAN | 7 #define PY_SSIZE_T_CLEAN |
| 8 #include <Python.h> | 8 #include <Python.h> |
| 9 #include "structmember.h" | 9 #include "structmember.h" |
| 10 #include "osdefs.h" | 10 #include "osdefs.h" |
| (...skipping 2463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2474 args_tuple = PyTuple_Pack(1, exc_message); | 2474 args_tuple = PyTuple_Pack(1, exc_message); |
| 2475 if (!args_tuple) | 2475 if (!args_tuple) |
| 2476 Py_FatalError("cannot allocate tuple for RuntimeError " | 2476 Py_FatalError("cannot allocate tuple for RuntimeError " |
| 2477 "pre-allocation"); | 2477 "pre-allocation"); |
| 2478 Py_DECREF(exc_message); | 2478 Py_DECREF(exc_message); |
| 2479 if (BaseException_init(err_inst, args_tuple, NULL)) | 2479 if (BaseException_init(err_inst, args_tuple, NULL)) |
| 2480 Py_FatalError("init of pre-allocated RuntimeError failed"); | 2480 Py_FatalError("init of pre-allocated RuntimeError failed"); |
| 2481 Py_DECREF(args_tuple); | 2481 Py_DECREF(args_tuple); |
| 2482 } | 2482 } |
| 2483 } | 2483 } |
| 2484 | 2484 Py_DECREF(bltinmod); |
| 2485 } | 2485 } |
| 2486 | 2486 |
| 2487 void | 2487 void |
| 2488 _PyExc_Fini(void) | 2488 _PyExc_Fini(void) |
| 2489 { | 2489 { |
| 2490 Py_CLEAR(PyExc_RecursionErrorInst); | 2490 Py_CLEAR(PyExc_RecursionErrorInst); |
| 2491 free_preallocated_memerrors(); | 2491 free_preallocated_memerrors(); |
| 2492 Py_CLEAR(errnomap); | 2492 Py_CLEAR(errnomap); |
| 2493 } | 2493 } |
| LEFT | RIGHT |