python-2.7.6/include/pyport.h File Reference

pyport.h File Reference
#include "pyconfig.h"
#include <stdlib.h>
#include <math.h>
#include <time.h>

Macros

#define Py_PROTO(x)   ()
 
#define Py_FPROTO(x)   Py_PROTO(x)
 
#define PYLONG_BITS_IN_DIGIT   15
 
#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   void
 
#define DL_EXPORT(RTYPE)   RTYPE
 
#define DL_IMPORT(RTYPE)   RTYPE
 
#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)
 

Typedefs

typedef unsigned int Py_uintptr_t
 
typedef int Py_intptr_t
 
typedef Py_intptr_t Py_ssize_t
 

Macro Definition Documentation

#define _Py_SET_53BIT_PRECISION_END

Definition at line 593 of file pyport.h.

#define _Py_SET_53BIT_PRECISION_HEADER

Definition at line 591 of file pyport.h.

#define _Py_SET_53BIT_PRECISION_START

Definition at line 592 of file pyport.h.

#define _Py_SET_EDOM_FOR_NAN (   X)    ;

Definition at line 473 of file pyport.h.

#define DL_EXPORT (   RTYPE)    RTYPE

Definition at line 819 of file pyport.h.

#define DL_IMPORT (   RTYPE)    RTYPE

Definition at line 822 of file pyport.h.

#define HAVE_FSTAT

Definition at line 378 of file pyport.h.

#define HAVE_STAT

Definition at line 374 of file pyport.h.

#define INT_MAX   2147483647

Definition at line 861 of file pyport.h.

#define LONG_BIT   (8 * SIZEOF_LONG)

Definition at line 879 of file pyport.h.

#define LONG_MIN   (-LONG_MAX-1)

Definition at line 875 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)
#define Py_HUGE_VAL
Definition: pymath.h:146

Definition at line 503 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)
#define Py_HUGE_VAL
Definition: pymath.h:146

Definition at line 513 of file pyport.h.

#define Py_ALIGNED (   x)

Definition at line 921 of file pyport.h.

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

Definition at line 438 of file pyport.h.

#define Py_DEPRECATED (   VERSION_UNUSED)

Definition at line 632 of file pyport.h.

#define Py_FORCE_EXPANSION (   X)    X

Definition at line 446 of file pyport.h.

#define Py_FORMAT_PARSETUPLE (   func,
  p1,
  p2 
)

Definition at line 912 of file pyport.h.

#define PY_FORMAT_SIZE_T   ""

Definition at line 235 of file pyport.h.

#define Py_FPROTO (   x)    Py_PROTO(x)

Definition at line 52 of file pyport.h.

#define Py_GCC_ATTRIBUTE (   x)

Definition at line 901 of file pyport.h.

#define Py_LL (   x)    x##LL

Definition at line 936 of file pyport.h.

#define Py_LOCAL (   type)    static type

Definition at line 294 of file pyport.h.

#define Py_LOCAL_INLINE (   type)    static type

Definition at line 295 of file pyport.h.

#define Py_MEMCPY   memcpy

Definition at line 316 of file pyport.h.

#define PY_NO_SHORT_FLOAT_REPR

Definition at line 611 of file pyport.h.

#define Py_PROTO (   x)    ()

Definition at line 49 of file pyport.h.

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

Definition at line 458 of file pyport.h.

#define Py_SET_ERANGE_IF_OVERFLOW (   X)    Py_SET_ERRNO_ON_MATH_ERROR(X)

Definition at line 487 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; \
} \
} while(0)
#define Py_HUGE_VAL
Definition: pymath.h:146
#define _Py_SET_EDOM_FOR_NAN(X)
Definition: pyport.h:473

Definition at line 475 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 940 of file pyport.h.

#define PyAPI_DATA (   RTYPE)    extern RTYPE

Definition at line 798 of file pyport.h.

#define PyAPI_FUNC (   RTYPE)    RTYPE

Definition at line 795 of file pyport.h.

#define PYLONG_BITS_IN_DIGIT   15

Definition at line 149 of file pyport.h.

#define PyMODINIT_FUNC   void

Definition at line 804 of file pyport.h.

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

Definition at line 405 of file pyport.h.

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

Definition at line 401 of file pyport.h.

Typedef Documentation

typedef int Py_intptr_t

Definition at line 164 of file pyport.h.

Definition at line 185 of file pyport.h.

typedef unsigned int Py_uintptr_t

Definition at line 163 of file pyport.h.

Go to the source code of this file.