Ignore:
Timestamp:
Mar 19, 2014, 11:31:01 PM (11 years ago)
Author:
dmik
Message:

python: Merge vendor 2.7.6 to trunk.

Location:
python/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

  • python/trunk/Include/cStringIO.h

    r2 r391  
    88  This header provides access to cStringIO objects from C.
    99  Functions are provided for calling cStringIO objects and
    10   macros are provided for testing whether you have cStringIO 
     10  macros are provided for testing whether you have cStringIO
    1111  objects.
    1212
     
    1919
    2020*/
     21
     22#define PycStringIO_CAPSULE_NAME "cStringIO.cStringIO_CAPI"
     23
    2124#define PycString_IMPORT \
    22   PycStringIO = (struct PycStringIO_CAPI*)PyCObject_Import("cStringIO", \
    23                                                            "cStringIO_CAPI")
     25  PycStringIO = ((struct PycStringIO_CAPI*)PyCapsule_Import(\
     26    PycStringIO_CAPSULE_NAME, 0))
    2427
    2528/* Basic functions to manipulate cStringIO objects from C */
    2629
    2730static struct PycStringIO_CAPI {
    28  
     31
    2932 /* Read a string from an input object.  If the last argument
    3033    is -1, the remainder will be read.
Note: See TracChangeset for help on using the changeset viewer.