diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2003-11-20 01:44:59 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2003-11-20 01:44:59 (GMT) |
commit | eddc1449bae39414aaf7a4f63ccd3b69c4fb069e (patch) | |
tree | caaeed5da8c9755c4cc1d8ebf8da2f0608262c56 /Python/structmember.c | |
parent | 4bae2d5e46b5135dba523616fd0960fc915eb120 (diff) | |
download | cpython-eddc1449bae39414aaf7a4f63ccd3b69c4fb069e.zip cpython-eddc1449bae39414aaf7a4f63ccd3b69c4fb069e.tar.gz cpython-eddc1449bae39414aaf7a4f63ccd3b69c4fb069e.tar.bz2 |
Getting rid of all the code inside #ifdef macintosh too.
Diffstat (limited to 'Python/structmember.c')
-rw-r--r-- | Python/structmember.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/Python/structmember.c b/Python/structmember.c index 34310b8..bbaaca8 100644 --- a/Python/structmember.c +++ b/Python/structmember.c @@ -103,23 +103,6 @@ PyMember_GetOne(char *addr, PyMemberDef *l) case T_STRING_INPLACE: v = PyString_FromString((char*)addr); break; -#ifdef macintosh - case T_PSTRING: - if (*(char**)addr == NULL) { - Py_INCREF(Py_None); - v = Py_None; - } - else - v = PyString_FromStringAndSize( - (*(char**)addr)+1, - **(unsigned char**)addr); - break; - case T_PSTRING_INPLACE: - v = PyString_FromStringAndSize( - ((char*)addr)+1, - *(unsigned char*)addr); - break; -#endif /* macintosh */ case T_CHAR: v = PyString_FromStringAndSize((char*)addr, 1); break; @@ -168,11 +151,7 @@ PyMember_SetOne(char *addr, PyMemberDef *l, PyObject *v) { PyObject *oldv; - if ((l->flags & READONLY) || l->type == T_STRING -#ifdef macintosh - || l->type == T_PSTRING -#endif - ) + if ((l->flags & READONLY) || l->type == T_STRING) { PyErr_SetString(PyExc_TypeError, "readonly attribute"); return -1; |