Skip to content
This repository has been archived by the owner on Oct 27, 2021. It is now read-only.

Commit

Permalink
py3k: Remove ancient Python hacks
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Crowell authored and Brian Crowell committed Jan 10, 2013
1 parent be560f0 commit a8599e8
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 53 deletions.
5 changes: 0 additions & 5 deletions _imagingcms.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ [email protected]\n\
#include "Imaging.h"
#include "py3.h"

#if PY_VERSION_HEX < 0x01060000
#define PyObject_New PyObject_NEW
#define PyObject_Del PyMem_DEL
#endif

#if LCMS_VERSION < 117
#define LCMSBOOL BOOL
#endif
Expand Down
9 changes: 0 additions & 9 deletions _imagingft.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,6 @@
#include <freetype/freetype.h>
#endif

#if PY_VERSION_HEX < 0x01060000
#define PyObject_New PyObject_NEW
#define PyObject_Del PyMem_DEL
#endif

#if !defined(Py_RETURN_NONE)
#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None
#endif

#define KEEP_PY_UNICODE
#include "py3.h"

Expand Down
5 changes: 0 additions & 5 deletions decode.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@

#include "Python.h"

#if PY_VERSION_HEX < 0x01060000
#define PyObject_New PyObject_NEW
#define PyObject_Del PyMem_DEL
#endif

#include "Imaging.h"
#include "py3.h"

Expand Down
5 changes: 0 additions & 5 deletions display.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@

#include "Python.h"

#if PY_VERSION_HEX < 0x01060000
#define PyObject_New PyObject_NEW
#define PyObject_Del PyMem_DEL
#endif

#include "Imaging.h"
#include "py3.h"

Expand Down
5 changes: 0 additions & 5 deletions encode.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@

#include "Python.h"

#if PY_VERSION_HEX < 0x01060000
#define PyObject_New PyObject_NEW
#define PyObject_Del PyMem_DEL
#endif

#include "Imaging.h"
#include "py3.h"
#include "Gif.h"
Expand Down
5 changes: 0 additions & 5 deletions map.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@

#include "Python.h"

#if PY_VERSION_HEX < 0x01060000
#define PyObject_New PyObject_NEW
#define PyObject_Del PyMem_DEL
#endif

#include "Imaging.h"

#ifdef WIN32
Expand Down
5 changes: 0 additions & 5 deletions outline.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@

#include "Python.h"

#if PY_VERSION_HEX < 0x01060000
#define PyObject_New PyObject_NEW
#define PyObject_Del PyMem_DEL
#endif

#include "Imaging.h"


Expand Down
14 changes: 0 additions & 14 deletions path.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,6 @@

#include <math.h>

#if PY_VERSION_HEX < 0x01060000
#define PyObject_New PyObject_NEW
#define PyObject_Del PyMem_DEL
#endif

#if PY_VERSION_HEX < 0x02050000
#define Py_ssize_t int
#define lenfunc inquiry
#define ssizeargfunc intargfunc
#define ssizessizeargfunc intintargfunc
#define ssizeobjargproc intobjargproc
#define ssizessizeobjargproc intintobjargproc
#endif

#include "py3.h"

/* compatibility wrappers (defined in _imaging.c) */
Expand Down

0 comments on commit a8599e8

Please sign in to comment.