File: acora_defs.h

package info (click to toggle)
python-acora 2.0-2~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 1,440 kB
  • sloc: python: 987; sh: 13; ansic: 12; makefile: 9
file content (14 lines) | stat: -rw-r--r-- 555 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef HAS_ACORA_DEFS_H
#define HAS_ACORA_DEFS_H

#if PY_VERSION_HEX <= 0x03030000 && !(defined(CYTHON_PEP393_ENABLED) && CYTHON_PEP393_ENABLED)
  #define PyUnicode_IS_READY(op)    (0)
  #define PyUnicode_GET_LENGTH(u)   PyUnicode_GET_SIZE(u)
  #define PyUnicode_KIND(u)         (sizeof(Py_UNICODE))
  #define PyUnicode_DATA(u)         ((void*)PyUnicode_AS_UNICODE(u))
  #define PyUnicode_WCHAR_KIND      0
  #define PyUnicode_READ(kind, data, index)   \
        (((void)kind), (Py_UCS4) ((Py_UNICODE*)data)[index])
#endif

#endif /* HAS_ACORA_DEFS_H */