mirror of
https://github.com/python/cpython.git
synced 2025-12-09 10:37:17 +00:00
Fix two instances of empty argument lists, and fix style
('PyObject** x' -> 'PyObject **x')
This commit is contained in:
parent
ba48a3f3ff
commit
0452d1f316
1 changed files with 78 additions and 79 deletions
|
|
@ -179,7 +179,8 @@ make_class(PyObject** klass, PyObject* base,
|
|||
|
||||
|
||||
/* Use this for *args signatures, otherwise just use PyArg_ParseTuple() */
|
||||
static PyObject* get_self(PyObject* args)
|
||||
static PyObject *
|
||||
get_self(PyObject *args)
|
||||
{
|
||||
PyObject *self = PyTuple_GetItem(args, 0);
|
||||
if (!self) {
|
||||
|
|
@ -855,16 +856,14 @@ PyObject *PyExc_MemoryErrorInst;
|
|||
|
||||
|
||||
/* mapping between exception names and their PyObject ** */
|
||||
static struct
|
||||
{
|
||||
static struct {
|
||||
char *name;
|
||||
PyObject **exc;
|
||||
PyObject **base; /* NULL == PyExc_StandardError */
|
||||
char *docstr;
|
||||
PyMethodDef *methods;
|
||||
int (*classinit)(PyObject *);
|
||||
}
|
||||
exctable[] = {
|
||||
} exctable[] = {
|
||||
/*
|
||||
* The first three classes MUST appear in exactly this order
|
||||
*/
|
||||
|
|
@ -928,7 +927,7 @@ void
|
|||
#ifdef WIN32
|
||||
__declspec(dllexport)
|
||||
#endif /* WIN32 */
|
||||
init_exceptions()
|
||||
init_exceptions(void)
|
||||
{
|
||||
char *modulename = "exceptions";
|
||||
int modnamesz = strlen(modulename);
|
||||
|
|
@ -1014,7 +1013,7 @@ void
|
|||
#ifdef WIN32
|
||||
__declspec(dllexport)
|
||||
#endif /* WIN32 */
|
||||
fini_exceptions()
|
||||
fini_exceptions(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue