[Python-checkins] CVS: python/dist/src/RISCOS/Modules riscosmodule.c,1.3,1.4
Guido van Rossum
gvanrossum@users.sourceforge.net
Sat, 27 Oct 2001 14:16:18 -0700
Update of /cvsroot/python/python/dist/src/RISCOS/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv3663/RISCOS/Modules
Modified Files:
riscosmodule.c
Log Message:
SF patch #475657 (Dietmar Schwertberger)
RISCOS/Makefile:
include structseq and weakrefobject;
changes to keep command line length below 2048
RISCOS/Modules/riscosmodule.c:
typos from the stat structseq patch
Include/pyport.h:
don't re-#define __attribute__(__x) on RISC OS as it is already defined in c library
Index: riscosmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/RISCOS/Modules/riscosmodule.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** riscosmodule.c 2001/10/24 20:13:15 1.3
--- riscosmodule.c 2001/10/27 21:16:16 1.4
***************
*** 8,11 ****
--- 8,12 ----
#include "Python.h"
+ #include "structseq.h"
#include <errno.h>
***************
*** 143,147 ****
{ "st_ftype", "file type" },
{ "st_attrs", "attributes" },
! { "st_obtype", "object type" }
{ 0 }
};
--- 144,148 ----
{ "st_ftype", "file type" },
{ "st_attrs", "attributes" },
! { "st_obtype", "object type" },
{ 0 }
};
***************
*** 195,199 ****
PyInt_FromLong((long) at)); /*attributes*/
PyStructSequence_SET_ITEM(v, 12,
! PyInt_FromLong((long) ot)); /*object type*/
if (PyErr_Occurred()) {
--- 196,200 ----
PyInt_FromLong((long) at)); /*attributes*/
PyStructSequence_SET_ITEM(v, 12,
! PyInt_FromLong((long) ob)); /*object type*/
if (PyErr_Occurred()) {