| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -156,6 +156,9 @@ public static int magic() { | |||
| 156 | 156 | public static int tp_subclasses = 0; | |
| 157 | 157 | public static int tp_weaklist = 0; | |
| 158 | 158 | public static int tp_del = 0; | |
| 159 | + #if (PYTHON26) | ||
| 160 | + public static int tp_version_tag; | ||
| 161 | + #endif | ||
| 159 | 162 | // COUNT_ALLOCS adds some more stuff to PyTypeObject | |
| 160 | 163 | #if (Py_COUNT_ALLOCS) | |
| 161 | 164 | public static int tp_allocs = 0; | |
@@ -226,6 +229,10 @@ public static int magic() { | |||
| 226 | 229 | public static int bf_getwritebuffer = 0; | |
| 227 | 230 | public static int bf_getsegcount = 0; | |
| 228 | 231 | public static int bf_getcharbuffer = 0; | |
| 232 | + #if (PYTHON26) | ||
| 233 | + public static int bf_getbuffer = 0; | ||
| 234 | + public static int bf_releasebuffer = 0; | ||
| 235 | + #endif | ||
| 229 | 236 | ||
| 230 | 237 | public static int name = 0; | |
| 231 | 238 | public static int slots = 0; | |
@@ -254,8 +261,15 @@ internal class TypeFlags { | |||
| 254 | 261 | #if (PYTHON25 || PYTHON26) | |
| 255 | 262 | public static int HaveIndex = (1 << 17); | |
| 256 | 263 | #endif | |
| 257 | - public static int Managed = (1 << 21); // PythonNet specific? | ||
| 258 | - public static int Subclass = (1 << 22); // PythonNet specific? | ||
| 264 | + #if (PYTHON26) | ||
| 265 | + public static int HaveVersionTag = (1<<18); | ||
| 266 | + public static int ValidVersionTag = (1<<19); | ||
| 267 | + public static int IsAbstract = (1<<20); | ||
| 268 | + public static int HaveNewBuffer = (1<<21); | ||
| 269 | + #endif | ||
| 270 | + /* XXX Reusing reserved constants */ | ||
| 271 | + public static int Managed = (1 << 15); // PythonNet specific | ||
| 272 | + public static int Subclass = (1 << 16); // PythonNet specific | ||
| 259 | 273 | #if (PYTHON26) | |
| 260 | 274 | // TODO: Implement FastSubclass functions | |
| 261 | 275 | public static int IntSubclass = (1 << 23); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments