Mercurial > p > mysql-python > mysqldb-2
comparison _mysql.h @ 4:b5a377255eea MySQLdb
Merge changes from MySQLdb-1.2 branch (448-455)
author | adustman |
---|---|
date | Tue, 24 Oct 2006 19:52:31 +0000 |
parents | c0d1fc0429ce |
children | b6ecc521453f |
comparison
equal
deleted
inserted
replaced
3:df195ac92df6 | 4:b5a377255eea |
---|---|
23 # define MyTuple_Resize(t,n,d) _PyTuple_Resize(t, n) | 23 # define MyTuple_Resize(t,n,d) _PyTuple_Resize(t, n) |
24 # define MyMember(a,b,c,d,e) {a,b,c,d,e} | 24 # define MyMember(a,b,c,d,e) {a,b,c,d,e} |
25 # define MyMemberlist(x) struct PyMemberDef x | 25 # define MyMemberlist(x) struct PyMemberDef x |
26 # define MyAlloc(s,t) (s *) t.tp_alloc(&t,0) | 26 # define MyAlloc(s,t) (s *) t.tp_alloc(&t,0) |
27 # define MyFree(ob) ob->ob_type->tp_free((PyObject *)ob) | 27 # define MyFree(ob) ob->ob_type->tp_free((PyObject *)ob) |
28 #endif | |
29 | |
30 #if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN) | |
31 typedef int Py_ssize_t; | |
32 #define PY_SSIZE_T_MAX INT_MAX | |
33 #define PY_SSIZE_T_MIN INT_MIN | |
28 #endif | 34 #endif |
29 | 35 |
30 typedef struct { | 36 typedef struct { |
31 PyObject_HEAD | 37 PyObject_HEAD |
32 MYSQL connection; | 38 MYSQL connection; |