comparison _mysql.h @ 44:2b9a9814daab MySQLdb

_PyTuple_Resize is stable since 2.2, so we don't need the macro MyTuple_Resize
author kylev
date Tue, 17 Feb 2009 06:02:33 +0000
parents fdf0cabb27be
children
comparison
equal deleted inserted replaced
43:e36420b7ae6e 44:2b9a9814daab
11 #include "mysql.h" 11 #include "mysql.h"
12 #include "my_config.h" 12 #include "my_config.h"
13 #include "mysqld_error.h" 13 #include "mysqld_error.h"
14 #include "errmsg.h" 14 #include "errmsg.h"
15 15
16 #define MyTuple_Resize(t,n,d) _PyTuple_Resize(t, n)
17 #define MyAlloc(s,t) (s *) t.tp_alloc(&t,0) 16 #define MyAlloc(s,t) (s *) t.tp_alloc(&t,0)
18 #define MyFree(ob) ob->ob_type->tp_free((PyObject *)ob) 17 #define MyFree(ob) ob->ob_type->tp_free((PyObject *)ob)
19 18
20 #if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN) 19 #if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN)
21 typedef int Py_ssize_t; 20 typedef int Py_ssize_t;