Changeset 391 for python/trunk/Modules/_sqlite/sqlitecompat.h
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Modules/_sqlite/sqlitecompat.h
r2 r391 1 1 /* sqlitecompat.h - compatibility macros 2 2 * 3 * Copyright (C) 2006 Gerhard Häring <gh@ghaering.de>3 * Copyright (C) 2006-2010 Gerhard Häring <gh@ghaering.de> 4 4 * 5 5 * This file is part of pysqlite. … … 22 22 */ 23 23 24 #include "Python.h" 25 24 26 #ifndef PYSQLITE_COMPAT_H 25 27 #define PYSQLITE_COMPAT_H … … 32 34 #endif 33 35 36 37 /* define PyDict_CheckExact for pre-2.4 versions of Python */ 38 #ifndef PyDict_CheckExact 39 #define PyDict_CheckExact(op) ((op)->ob_type == &PyDict_Type) 34 40 #endif 41 42 /* define Py_CLEAR for pre-2.4 versions of Python */ 43 #ifndef Py_CLEAR 44 #define Py_CLEAR(op) \ 45 do { \ 46 if (op) { \ 47 PyObject *tmp = (PyObject *)(op); \ 48 (op) = NULL; \ 49 Py_DECREF(tmp); \ 50 } \ 51 } while (0) 52 #endif 53 54 #ifndef PyVarObject_HEAD_INIT 55 #define PyVarObject_HEAD_INIT(type, size) \ 56 PyObject_HEAD_INIT(type) size, 57 #endif 58 59 #ifndef Py_TYPE 60 #define Py_TYPE(ob) ((ob)->ob_type) 61 #endif 62 63 #endif
Note:
See TracChangeset
for help on using the changeset viewer.