Back to index

python3.2  3.2.2
Defines | Typedefs
pyport.h File Reference
#include "pyconfig.h"
#include <stdlib.h>
#include <math.h>
#include <time.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define PYLONG_BITS_IN_DIGIT   15
#define _PyHASH_BITS   31
#define _PyHASH_MODULUS   (((size_t)1 << _PyHASH_BITS) - 1)
#define _PyHASH_INF   314159
#define _PyHASH_NAN   0
#define _PyHASH_IMAG   1000003UL
#define PY_SIZE_MAX   ((size_t)-1)
#define PY_SSIZE_T_MAX   ((Py_ssize_t)(((size_t)-1)>>1))
#define PY_SSIZE_T_MIN   (-PY_SSIZE_T_MAX-1)
#define PY_FORMAT_SIZE_T   ""
#define Py_LOCAL(type)   static type
#define Py_LOCAL_INLINE(type)   static type
#define Py_MEMCPY   memcpy
#define HAVE_STAT
#define HAVE_FSTAT
#define S_ISREG(x)   (((x) & S_IFMT) == S_IFREG)
#define S_ISDIR(x)   (((x) & S_IFMT) == S_IFDIR)
#define Py_ARITHMETIC_RIGHT_SHIFT(TYPE, I, J)   ((I) >> (J))
#define Py_FORCE_EXPANSION(X)   X
#define Py_SAFE_DOWNCAST(VALUE, WIDE, NARROW)   (NARROW)(VALUE)
#define _Py_SET_EDOM_FOR_NAN(X)   ;
#define Py_SET_ERRNO_ON_MATH_ERROR(X)
#define Py_SET_ERANGE_IF_OVERFLOW(X)   Py_SET_ERRNO_ON_MATH_ERROR(X)
#define Py_ADJUST_ERANGE1(X)
#define Py_ADJUST_ERANGE2(X, Y)
#define _Py_SET_53BIT_PRECISION_HEADER
#define _Py_SET_53BIT_PRECISION_START
#define _Py_SET_53BIT_PRECISION_END
#define PY_NO_SHORT_FLOAT_REPR
#define Py_DEPRECATED(VERSION_UNUSED)
#define PyAPI_FUNC(RTYPE)   RTYPE
#define PyAPI_DATA(RTYPE)   extern RTYPE
#define PyMODINIT_FUNC   PyObject*
#define INT_MAX   2147483647
#define LONG_MIN   (-LONG_MAX-1)
#define LONG_BIT   (8 * SIZEOF_LONG)
#define Py_GCC_ATTRIBUTE(x)
#define Py_FORMAT_PARSETUPLE(func, p1, p2)
#define Py_ALIGNED(x)
#define Py_LL(x)   x##LL
#define Py_ULL(x)   Py_LL(x##U)
#define Py_VA_COPY(x, y)   (x) = (y)

Typedefs

typedef unsigned int Py_uintptr_t
typedef int Py_intptr_t
typedef Py_intptr_t Py_ssize_t
typedef Py_ssize_t Py_hash_t
typedef size_t Py_uhash_t

Define Documentation

Definition at line 561 of file pyport.h.

Definition at line 559 of file pyport.h.

Definition at line 560 of file pyport.h.

#define _Py_SET_EDOM_FOR_NAN (   X)    ;

Definition at line 465 of file pyport.h.

#define _PyHASH_BITS   31

Definition at line 141 of file pyport.h.

#define _PyHASH_IMAG   1000003UL

Definition at line 146 of file pyport.h.

#define _PyHASH_INF   314159

Definition at line 144 of file pyport.h.

#define _PyHASH_MODULUS   (((size_t)1 << _PyHASH_BITS) - 1)

Definition at line 143 of file pyport.h.

#define _PyHASH_NAN   0

Definition at line 145 of file pyport.h.

#define HAVE_FSTAT

Definition at line 375 of file pyport.h.

#define HAVE_STAT

Definition at line 371 of file pyport.h.

#define INT_MAX   2147483647

Definition at line 753 of file pyport.h.

#define LONG_BIT   (8 * SIZEOF_LONG)

Definition at line 771 of file pyport.h.

#define LONG_MIN   (-LONG_MAX-1)

Definition at line 767 of file pyport.h.

#define Py_ADJUST_ERANGE1 (   X)
Value:
do {                                                                \
        if (errno == 0) {                                               \
            if ((X) == Py_HUGE_VAL || (X) == -Py_HUGE_VAL)              \
                errno = ERANGE;                                         \
        }                                                               \
        else if (errno == ERANGE && (X) == 0.0)                         \
            errno = 0;                                                  \
    } while(0)

Definition at line 495 of file pyport.h.

#define Py_ADJUST_ERANGE2 (   X,
 
)
Value:
do {                                                                \
        if ((X) == Py_HUGE_VAL || (X) == -Py_HUGE_VAL ||                \
            (Y) == Py_HUGE_VAL || (Y) == -Py_HUGE_VAL) {                \
                        if (errno == 0)                                 \
                                errno = ERANGE;                         \
        }                                                               \
        else if (errno == ERANGE)                                       \
            errno = 0;                                                  \
    } while(0)

Definition at line 505 of file pyport.h.

#define Py_ALIGNED (   x)

Definition at line 812 of file pyport.h.

#define Py_ARITHMETIC_RIGHT_SHIFT (   TYPE,
  I,
 
)    ((I) >> (J))

Definition at line 430 of file pyport.h.

#define Py_DEPRECATED (   VERSION_UNUSED)

Definition at line 601 of file pyport.h.

#define Py_FORCE_EXPANSION (   X)    X

Definition at line 438 of file pyport.h.

#define Py_FORMAT_PARSETUPLE (   func,
  p1,
  p2 
)

Definition at line 803 of file pyport.h.

#define PY_FORMAT_SIZE_T   ""

Definition at line 236 of file pyport.h.

#define Py_GCC_ATTRIBUTE (   x)

Definition at line 792 of file pyport.h.

#define Py_LL (   x)    x##LL

Definition at line 827 of file pyport.h.

#define Py_LOCAL (   type)    static type

Definition at line 293 of file pyport.h.

#define Py_LOCAL_INLINE (   type)    static type

Definition at line 294 of file pyport.h.

#define Py_MEMCPY   memcpy

Definition at line 315 of file pyport.h.

Definition at line 579 of file pyport.h.

#define Py_SAFE_DOWNCAST (   VALUE,
  WIDE,
  NARROW 
)    (NARROW)(VALUE)

Definition at line 450 of file pyport.h.

Definition at line 479 of file pyport.h.

#define Py_SET_ERRNO_ON_MATH_ERROR (   X)
Value:
do { \
        if (errno == 0) { \
            if ((X) == Py_HUGE_VAL || (X) == -Py_HUGE_VAL) \
                errno = ERANGE; \
            else _Py_SET_EDOM_FOR_NAN(X) \
        } \
    } while(0)

Definition at line 467 of file pyport.h.

#define PY_SIZE_MAX   ((size_t)-1)

Definition at line 198 of file pyport.h.

#define PY_SSIZE_T_MAX   ((Py_ssize_t)(((size_t)-1)>>1))

Definition at line 202 of file pyport.h.

#define PY_SSIZE_T_MIN   (-PY_SSIZE_T_MAX-1)

Definition at line 204 of file pyport.h.

#define Py_ULL (   x)    Py_LL(x##U)

Definition at line 831 of file pyport.h.

#define Py_VA_COPY (   x,
 
)    (x) = (y)

Definition at line 840 of file pyport.h.

#define PyAPI_DATA (   RTYPE)    extern RTYPE

Definition at line 740 of file pyport.h.

#define PyAPI_FUNC (   RTYPE)    RTYPE

Definition at line 737 of file pyport.h.

#define PYLONG_BITS_IN_DIGIT   15

Definition at line 130 of file pyport.h.

#define PyMODINIT_FUNC   PyObject*

Definition at line 746 of file pyport.h.

#define S_ISDIR (   x)    (((x) & S_IFMT) == S_IFDIR)

Definition at line 397 of file pyport.h.

#define S_ISREG (   x)    (((x) & S_IFMT) == S_IFREG)

Definition at line 393 of file pyport.h.


Typedef Documentation

Definition at line 186 of file pyport.h.

typedef int Py_intptr_t

Definition at line 159 of file pyport.h.

Definition at line 180 of file pyport.h.

typedef size_t Py_uhash_t

Definition at line 188 of file pyport.h.

typedef unsigned int Py_uintptr_t

Definition at line 158 of file pyport.h.