[Python-checkins] python/dist/src/Python mactoolboxglue.c,1.19,1.19.2.1

jackjansen@users.sourceforge.net jackjansen@users.sourceforge.net
Fri, 18 Apr 2003 02:12:54 -0700


Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1:/tmp/cvs-serv9035/Python

Modified Files:
      Tag: getargs_mask_mods
	mactoolboxglue.c 
Log Message:
Fixes for the new PyArg_ParseTuple k and K format chars, and the
changed semantics of h. Only lightly tested, but the IDE works
again.

These changes may not be needed anymore now that the semantic change
to h has been reverted, so I'm checking it in on a branch.



Index: mactoolboxglue.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/mactoolboxglue.c,v
retrieving revision 1.19
retrieving revision 1.19.2.1
diff -C2 -d -r1.19 -r1.19.2.1
*** mactoolboxglue.c	17 Apr 2003 20:44:18 -0000	1.19
--- mactoolboxglue.c	18 Apr 2003 09:12:51 -0000	1.19.2.1
***************
*** 382,386 ****
  PyMac_GetRect(PyObject *v, Rect *r)
  {
! 	return PyArg_Parse(v, "(hhhh)", &r->left, &r->top, &r->right, &r->bottom);
  }
  
--- 382,386 ----
  PyMac_GetRect(PyObject *v, Rect *r)
  {
! 	return PyArg_Parse(v, "(HHHH)", &r->left, &r->top, &r->right, &r->bottom);
  }
  
***************
*** 400,404 ****
  PyMac_GetPoint(PyObject *v, Point *p)
  {
! 	return PyArg_Parse(v, "(hh)", &p->h, &p->v);
  }
  
--- 400,404 ----
  PyMac_GetPoint(PyObject *v, Point *p)
  {
! 	return PyArg_Parse(v, "(HH)", &p->h, &p->v);
  }
  
***************
*** 416,420 ****
  PyMac_GetEventRecord(PyObject *v, EventRecord *e)
  {
! 	return PyArg_Parse(v, "(Hkk(hh)H)",
  	                   &e->what,
  	                   &e->message,
--- 416,420 ----
  PyMac_GetEventRecord(PyObject *v, EventRecord *e)
  {
! 	return PyArg_Parse(v, "(Hkk(HH)H)",
  	                   &e->what,
  	                   &e->message,