File: pycinternal.h

package info (click to toggle)
psyco 1.5.1-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,864 kB
  • ctags: 3,295
  • sloc: ansic: 24,491; python: 5,573; perl: 1,309; makefile: 166; sh: 1
file content (31 lines) | stat: -rw-r--r-- 802 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
 /***************************************************************/
/***         Includes Python internal headers                  ***/
 /***************************************************************/


#ifndef _PYCINTERNAL_H
#define _PYCINTERNAL_H

#include <opcode.h>


#ifdef FOR_ITER
# define HAVE_GENERATORS        1
#else
# define HAVE_GENERATORS        0
#endif


/* Post-2.2 versions of Python introduced the following more explicit names.
   XXX We should map the new names to the old ones if the new names do not
   XXX exist but how can we detect if this is needed?
   XXX Hacked by completely overriding the enum values with #defines. */

#define  PyCmp_IN		6
#define  PyCmp_NOT_IN		7
#define  PyCmp_IS		8
#define  PyCmp_IS_NOT		9
#define  PyCmp_EXC_MATCH	10


#endif /* _PYCINTERNAL_H */