-Wall -Wstrict-prototypes -Werror" in both --with-pydebug mode and --without.
There's still a batch of non-prototype warnings in Xlib.h that I don't know how
to fix.
PyObject *EventRef_New(EventRef itself);
/********** EventTypeSpec *******/
-static PyObject*
-EventTypeSpec_New(EventTypeSpec *in)
-{
- return Py_BuildValue("ll", in->eventClass, in->eventKind);
-}
-
static int
EventTypeSpec_Convert(PyObject *v, EventTypeSpec *out)
{
/********** EventHotKeyID *******/
-static PyObject*
-EventHotKeyID_New(EventHotKeyID *in)
-{
- return Py_BuildValue("ll", in->signature, in->id);
-}
-
static int
EventHotKeyID_Convert(PyObject *v, EventHotKeyID *out)
{
{
PyObject *_res = NULL;
OSErr _err;
- SInt16 outValue;
+ UInt16 outValue;
#ifndef GetBevelButtonMenuValue
PyMac_PRECHECK(GetBevelButtonMenuValue);
#endif
char buf[2048];
char *vptr;
int len;
- const unsigned char *p;
+ unsigned char *p;
if (certificate == NULL)
return peer_alt_names;
/* Same, but handling unsigned long */
+#ifndef PY_STRUCT_OVERFLOW_MASKING
static int
get_ulong(PyObject *v, unsigned long *p)
{
}
return 0;
}
+#endif /* PY_STRUCT_OVERFLOW_MASKING */
#ifdef HAVE_LONG_LONG
}
-/* Allocate a new "anonymous" local variable.
- Used by list comprehensions and with statements.
-*/
-
-static PyObject *
-compiler_new_tmpname(struct compiler *c)
-{
- char tmpname[256];
- PyOS_snprintf(tmpname, sizeof(tmpname), "_[%d]", ++c->u->u_tmpname);
- return PyString_FromString(tmpname);
-}
-
/* Allocate a new block and return a pointer to it.
Returns NULL on error.
*/