~ubuntu-branches/ubuntu/wily/sip4/wily

« back to all changes in this revision

Viewing changes to siplib/array.c

  • Committer: Package Import Robot
  • Author(s): Dmitry Shachnev
  • Date: 2014-06-01 12:38:17 UTC
  • mfrom: (1.4.2)
  • Revision ID: package-import@ubuntu.com-20140601123817-a5egi34p5tlywago
Tags: 4.16+dfsg-1
* New upstream release.
* Bump API version to 11.1 (keep 11.0 in provided versions).
* Update debian/copyright to copyright-format 1.0.
* Add Files-Excluded field to remove HTML documentation, which
  contains sourceless minified jquery.
* Simplify debian/watch, and mangle dfsg version.
* Add get-orig-source target to debian/rules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
199
199
    0,                      /* sq_concat */
200
200
    0,                      /* sq_repeat */
201
201
    sipArray_item,          /* sq_item */
202
 
#if PY_VERSION_HEX < 0x02050000
 
202
#if PY_VERSION_HEX >= 0x02050000
 
203
    0,                      /* sq_slice */
 
204
    0,                      /* sq_ass_item */
 
205
    0,                      /* sq_ass_slice */
 
206
#else
203
207
    sipArray_slice,         /* sq_slice */
204
208
    sipArray_ass_item,      /* sq_ass_item */
205
209
    sipArray_ass_slice,     /* sq_ass_slice */
206
210
#endif
 
211
    0,                      /* sq_contains */
 
212
    0,                      /* sq_inplace_concat */
 
213
    0,                      /* sq_inplace_repeat */
207
214
};
208
215
 
209
216
 
348
355
 
349
356
    view->format = NULL;
350
357
    if ((flags & PyBUF_FORMAT) == PyBUF_FORMAT)
351
 
#if PY_MAJOR_VERSION >= 3
352
 
        view->format = array->format;
353
 
#else
354
358
        view->format = (char *)array->format;
355
 
#endif
356
359
 
357
360
    view->ndim = 1;
358
361
 
468
471
    "sip.array",            /* tp_name */
469
472
    sizeof (sipArrayObject),    /* tp_basicsize */
470
473
    0,                      /* tp_itemsize */
471
 
    0,                      /* tp_dealloc */
 
474
    sipArray_dealloc,       /* tp_dealloc */
472
475
    0,                      /* tp_print */
473
476
    0,                      /* tp_getattr */
474
477
    0,                      /* tp_setattr */
510
513
    0,                      /* tp_init */
511
514
    0,                      /* tp_alloc */
512
515
    0,                      /* tp_new */
 
516
    0,                      /* tp_free */
 
517
    0,                      /* tp_is_gc */
 
518
    0,                      /* tp_bases */
 
519
    0,                      /* tp_mro */
 
520
    0,                      /* tp_cache */
 
521
    0,                      /* tp_subclasses */
 
522
    0,                      /* tp_weaklist */
 
523
    0,                      /* tp_del */
 
524
#if PY_VERSION_HEX >= 0x02060000
 
525
    0,                      /* tp_version_tag */
 
526
#endif
 
527
#if PY_VERSION_HEX >= 0x03040000
 
528
    0,                      /* tp_finalize */
 
529
#endif
513
530
};
514
531
 
515
532