@@ -16,18 +16,18 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
1616
1717/* Error handling definitions */
1818
19- DL_IMPORT (void ) PyErr_SetNone Py_PROTO (( PyObject * ) );
20- DL_IMPORT (void ) PyErr_SetObject Py_PROTO (( PyObject * , PyObject * ) );
21- DL_IMPORT (void ) PyErr_SetString Py_PROTO (( PyObject * , const char * ) );
22- DL_IMPORT (PyObject * ) PyErr_Occurred Py_PROTO (( void ) );
23- DL_IMPORT (void ) PyErr_Clear Py_PROTO (( void ) );
24- DL_IMPORT (void ) PyErr_Fetch Py_PROTO (( PyObject * * , PyObject * * , PyObject * * ) );
25- DL_IMPORT (void ) PyErr_Restore Py_PROTO (( PyObject * , PyObject * , PyObject * ) );
19+ DL_IMPORT (void ) PyErr_SetNone ( PyObject * );
20+ DL_IMPORT (void ) PyErr_SetObject ( PyObject * , PyObject * );
21+ DL_IMPORT (void ) PyErr_SetString ( PyObject * , const char * );
22+ DL_IMPORT (PyObject * ) PyErr_Occurred ( void );
23+ DL_IMPORT (void ) PyErr_Clear ( void );
24+ DL_IMPORT (void ) PyErr_Fetch ( PyObject * * , PyObject * * , PyObject * * );
25+ DL_IMPORT (void ) PyErr_Restore ( PyObject * , PyObject * , PyObject * );
2626
2727/* Error testing and normalization */
28- DL_IMPORT (int ) PyErr_GivenExceptionMatches Py_PROTO (( PyObject * , PyObject * ) );
29- DL_IMPORT (int ) PyErr_ExceptionMatches Py_PROTO (( PyObject * ) );
30- DL_IMPORT (void ) PyErr_NormalizeException Py_PROTO (( PyObject * * , PyObject * * , PyObject * * ) );
28+ DL_IMPORT (int ) PyErr_GivenExceptionMatches ( PyObject * , PyObject * );
29+ DL_IMPORT (int ) PyErr_ExceptionMatches ( PyObject * );
30+ DL_IMPORT (void ) PyErr_NormalizeException ( PyObject * * , PyObject * * , PyObject * * );
3131
3232
3333/* Predefined exceptions */
@@ -54,6 +54,8 @@ extern DL_IMPORT(PyObject *) PyExc_OverflowError;
5454extern DL_IMPORT (PyObject * ) PyExc_RuntimeError ;
5555extern DL_IMPORT (PyObject * ) PyExc_NotImplementedError ;
5656extern DL_IMPORT (PyObject * ) PyExc_SyntaxError ;
57+ extern DL_IMPORT (PyObject * ) PyExc_IndentationError ;
58+ extern DL_IMPORT (PyObject * ) PyExc_TabError ;
5759extern DL_IMPORT (PyObject * ) PyExc_SystemError ;
5860extern DL_IMPORT (PyObject * ) PyExc_SystemExit ;
5961extern DL_IMPORT (PyObject * ) PyExc_TypeError ;
@@ -70,25 +72,25 @@ extern DL_IMPORT(PyObject *) PyExc_MemoryErrorInst;
7072
7173/* Convenience functions */
7274
73- extern DL_IMPORT (int ) PyErr_BadArgument Py_PROTO (( void ) );
74- extern DL_IMPORT (PyObject * ) PyErr_NoMemory Py_PROTO (( void ) );
75- extern DL_IMPORT (PyObject * ) PyErr_SetFromErrno Py_PROTO (( PyObject * ) );
76- extern DL_IMPORT (PyObject * ) PyErr_SetFromErrnoWithFilename Py_PROTO (( PyObject * , char * ) );
77- extern DL_IMPORT (PyObject * ) PyErr_Format Py_PROTO (( PyObject * , const char * , ...) );
75+ extern DL_IMPORT (int ) PyErr_BadArgument ( void );
76+ extern DL_IMPORT (PyObject * ) PyErr_NoMemory ( void );
77+ extern DL_IMPORT (PyObject * ) PyErr_SetFromErrno ( PyObject * );
78+ extern DL_IMPORT (PyObject * ) PyErr_SetFromErrnoWithFilename ( PyObject * , char * );
79+ extern DL_IMPORT (PyObject * ) PyErr_Format ( PyObject * , const char * , ...);
7880#ifdef MS_WINDOWS
7981extern DL_IMPORT (PyObject * ) PyErr_SetFromWindowsErrWithFilename (int , const char * );
8082extern DL_IMPORT (PyObject * ) PyErr_SetFromWindowsErr (int );
8183#endif
8284
83- extern DL_IMPORT (void ) PyErr_BadInternalCall Py_PROTO (( void ) );
85+ extern DL_IMPORT (void ) PyErr_BadInternalCall ( void );
8486
8587/* Function to create a new exception */
86- DL_IMPORT (PyObject * ) PyErr_NewException Py_PROTO ( (char * name , PyObject * base ,
87- PyObject * dict ) );
88+ DL_IMPORT (PyObject * ) PyErr_NewException (char * name , PyObject * base ,
89+ PyObject * dict );
8890
8991/* In sigcheck.c or signalmodule.c */
90- extern DL_IMPORT (int ) PyErr_CheckSignals Py_PROTO (( void ) );
91- extern DL_IMPORT (void ) PyErr_SetInterrupt Py_PROTO (( void ) );
92+ extern DL_IMPORT (int ) PyErr_CheckSignals ( void );
93+ extern DL_IMPORT (void ) PyErr_SetInterrupt ( void );
9294
9395
9496#ifdef __cplusplus
0 commit comments