aboutsummaryrefslogtreecommitdiff
path: root/games/bubbros
diff options
context:
space:
mode:
authorAlexander Botero-Lowry <alexbl@FreeBSD.org>2007-07-30 09:42:28 +0000
committerAlexander Botero-Lowry <alexbl@FreeBSD.org>2007-07-30 09:42:28 +0000
commit4942ce5a7d8a3d0cbebaf4d202011850d1f7569f (patch)
treedb1f21912f461000d609ddcd5d130946bcfe9e09 /games/bubbros
parentb4be9b354e86bd790925c5a9a2e67df8ba20bc00 (diff)
downloadports-4942ce5a7d8a3d0cbebaf4d202011850d1f7569f.tar.gz
ports-4942ce5a7d8a3d0cbebaf4d202011850d1f7569f.zip
Notes
Diffstat (limited to 'games/bubbros')
-rw-r--r--games/bubbros/files/patch-bubbob-statesaver.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/games/bubbros/files/patch-bubbob-statesaver.c b/games/bubbros/files/patch-bubbob-statesaver.c
new file mode 100644
index 000000000000..129aed58b730
--- /dev/null
+++ b/games/bubbros/files/patch-bubbob-statesaver.c
@@ -0,0 +1,28 @@
+--- bubbob/statesaver.c.orig Sun Jul 15 08:59:52 2007
++++ bubbob/statesaver.c Sun Jul 15 09:01:41 2007
+@@ -44,10 +44,12 @@
+ Py_INCREF(g); /* exhausted -- can return 'g' itself */
+ return g;
+ }
++#if PY_VERSION_HEX < 0x02050000
+ if (f->f_nfreevars || f->f_ncells) {
+ PyErr_SetString(PyExc_ValueError, "generator has cell or free vars");
+ return NULL;
+ }
++#endif
+
+ dummy = (PyObject**) malloc(co->co_argcount * sizeof(PyObject*));
+ if (dummy == NULL)
+@@ -95,10 +97,12 @@
+ return -1;
+ }
+ f2 = (PyFrameObject*) x;
++#if PY_VERSION_HEX < 0x02050000
+ if (f2->f_stacksize != f->f_stacksize) {
+ PyErr_SetString(PyExc_TypeError, "stack size mismatch");
+ return -1;
+ }
++#endif
+
+ if (f2->f_stacktop != NULL)
+ while (f2->f_stacktop != f2->f_localsplus)