Package: pycaml / 0.82-15

0002-Removal-of-PyRange_New.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
From: Stephane Glondu <steph@glondu.net>
Date: Fri, 5 Jun 2009 17:11:47 +0200
Subject: Removal of PyRange_New

---
 pycaml.ml   |    3 ++-
 pycaml_ml.c |    6 ++++--
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/pycaml.ml b/pycaml.ml
index cd273ef..6bfe17c 100644
--- a/pycaml.ml
+++ b/pycaml.ml
@@ -318,7 +318,8 @@ let pyslice_new = fmt42call (pnf ())
 (* 43 *)
 let pyslice_getindices = fmt43call (pnf ())
 (* 44 *)
-let pyrange_new = fmt44call (pnf ())
+(* PyRange_New has been removed from the API *)
+(* let pyrange_new = fmt44call (pnf ()) *)
 
 (* Error handling definitions *)
 
diff --git a/pycaml_ml.c b/pycaml_ml.c
index f9ea0e4..3557869 100644
--- a/pycaml_ml.c
+++ b/pycaml_ml.c
@@ -666,7 +666,8 @@ DL_IMPORT(PyObject *) PySlice_New(PyObject* start, PyObject* stop, PyObject* ste
 /* 43 */
 DL_IMPORT(int) PySlice_GetIndices(PySliceObject *r, int length, int *start, int *stop, int *step);
 /* 44 */
-DL_IMPORT(PyObject *) PyRange_New(long, long, long, int);
+/* PyRange_New has been removed from the API */
+/* DL_IMPORT(PyObject *) PyRange_New(long, long, long, int); */
 
 /* Error handling definitions */
 
@@ -1087,7 +1088,8 @@ python_func_table the_python_func_table[] = {
 /* 43 */
     { (void *)PySlice_GetIndices, 43, "PySlice_GetIndices" },
 /* 44 */
-    { (void *)PyRange_New, 44, "PyRange_New" },
+    /* PyRange_New has been removed from the API */
+    /* { (void *)PyRange_New, 44, "PyRange_New" }, */
 
 /* Error handling definitions */
 
--