0 1 0
default
Jean-Francois Pieronne - 11 years ago 2009-01-03 16:41:58
jf.pieronne@laposte.net
Cython upgrade
1 file changed with 1942 insertions and 903 deletions:
↑ Collapse Diff ↑
1
 
/* Generated by Cython 0.25.1 */
1
 
/* Generated by Cython 0.28.6 */
2 2
 

	
3 3
 
#define PY_SSIZE_T_CLEAN
4 4
 
#include "Python.h"
5 5
 
#ifndef Py_PYTHON_H
6 6
 
    #error Python headers needed to compile C extensions, please install development version of Python.
7
 
#elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03020000)
8
 
    #error Cython requires Python 2.6+ or Python 3.2+.
7
 
#elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03030000)
8
 
    #error Cython requires Python 2.6+ or Python 3.3+.
9 9
 
#else
10
 
#define CYTHON_ABI "0_25_1"
10
 
#define CYTHON_ABI "0_28_6"
11
 
#define CYTHON_FUTURE_DIVISION 0
11 12
 
#include <stddef.h>
12 13
 
#ifndef offsetof
13 14
 
  #define offsetof(type, member) ( (size_t) & ((type*)0) -> member )
...
 
@@ -29,8 +30,9 @@
29 30
 
#ifndef DL_EXPORT
30 31
 
  #define DL_EXPORT(t) t
31 32
 
#endif
33
 
#define __PYX_COMMA ,
32 34
 
#ifndef HAVE_LONG_LONG
33
 
  #if PY_VERSION_HEX >= 0x03030000 || (PY_MAJOR_VERSION == 2 && PY_VERSION_HEX >= 0x02070000)
35
 
  #if PY_VERSION_HEX >= 0x02070000
34 36
 
    #define HAVE_LONG_LONG
35 37
 
  #endif
36 38
 
#endif
...
 
@@ -46,8 +48,14 @@
46 48
 
  #define CYTHON_COMPILING_IN_CPYTHON 0
47 49
 
  #undef CYTHON_USE_TYPE_SLOTS
48 50
 
  #define CYTHON_USE_TYPE_SLOTS 0
49
 
  #undef CYTHON_USE_ASYNC_SLOTS
50
 
  #define CYTHON_USE_ASYNC_SLOTS 0
51
 
  #undef CYTHON_USE_PYTYPE_LOOKUP
52
 
  #define CYTHON_USE_PYTYPE_LOOKUP 0
53
 
  #if PY_VERSION_HEX < 0x03050000
54
 
    #undef CYTHON_USE_ASYNC_SLOTS
55
 
    #define CYTHON_USE_ASYNC_SLOTS 0
56
 
  #elif !defined(CYTHON_USE_ASYNC_SLOTS)
57
 
    #define CYTHON_USE_ASYNC_SLOTS 1
58
 
  #endif
51 59
 
  #undef CYTHON_USE_PYLIST_INTERNALS
52 60
 
  #define CYTHON_USE_PYLIST_INTERNALS 0
53 61
 
  #undef CYTHON_USE_UNICODE_INTERNALS
...
 
@@ -66,6 +74,10 @@
66 74
 
  #define CYTHON_FAST_THREAD_STATE 0
67 75
 
  #undef CYTHON_FAST_PYCALL
68 76
 
  #define CYTHON_FAST_PYCALL 0
77
 
  #undef CYTHON_PEP489_MULTI_PHASE_INIT
78
 
  #define CYTHON_PEP489_MULTI_PHASE_INIT 0
79
 
  #undef CYTHON_USE_TP_FINALIZE
80
 
  #define CYTHON_USE_TP_FINALIZE 0
69 81
 
#elif defined(PYSTON_VERSION)
70 82
 
  #define CYTHON_COMPILING_IN_PYPY 0
71 83
 
  #define CYTHON_COMPILING_IN_PYSTON 1
...
 
@@ -73,6 +85,8 @@
73 85
 
  #ifndef CYTHON_USE_TYPE_SLOTS
74 86
 
    #define CYTHON_USE_TYPE_SLOTS 1
75 87
 
  #endif
88
 
  #undef CYTHON_USE_PYTYPE_LOOKUP
89
 
  #define CYTHON_USE_PYTYPE_LOOKUP 0
76 90
 
  #undef CYTHON_USE_ASYNC_SLOTS
77 91
 
  #define CYTHON_USE_ASYNC_SLOTS 0
78 92
 
  #undef CYTHON_USE_PYLIST_INTERNALS
...
 
@@ -97,6 +111,10 @@
97 111
 
  #define CYTHON_FAST_THREAD_STATE 0
98 112
 
  #undef CYTHON_FAST_PYCALL
99 113
 
  #define CYTHON_FAST_PYCALL 0
114
 
  #undef CYTHON_PEP489_MULTI_PHASE_INIT
115
 
  #define CYTHON_PEP489_MULTI_PHASE_INIT 0
116
 
  #undef CYTHON_USE_TP_FINALIZE
117
 
  #define CYTHON_USE_TP_FINALIZE 0
100 118
 
#else
101 119
 
  #define CYTHON_COMPILING_IN_PYPY 0
102 120
 
  #define CYTHON_COMPILING_IN_PYSTON 0
...
 
@@ -104,6 +122,12 @@
104 122
 
  #ifndef CYTHON_USE_TYPE_SLOTS
105 123
 
    #define CYTHON_USE_TYPE_SLOTS 1
106 124
 
  #endif
125
 
  #if PY_VERSION_HEX < 0x02070000
126
 
    #undef CYTHON_USE_PYTYPE_LOOKUP
127
 
    #define CYTHON_USE_PYTYPE_LOOKUP 0
128
 
  #elif !defined(CYTHON_USE_PYTYPE_LOOKUP)
129
 
    #define CYTHON_USE_PYTYPE_LOOKUP 1
130
 
  #endif
107 131
 
  #if PY_MAJOR_VERSION < 3
108 132
 
    #undef CYTHON_USE_ASYNC_SLOTS
109 133
 
    #define CYTHON_USE_ASYNC_SLOTS 0
...
 
@@ -143,6 +167,12 @@
143 167
 
  #ifndef CYTHON_FAST_PYCALL
144 168
 
    #define CYTHON_FAST_PYCALL 1
145 169
 
  #endif
170
 
  #ifndef CYTHON_PEP489_MULTI_PHASE_INIT
171
 
    #define CYTHON_PEP489_MULTI_PHASE_INIT (0 && PY_VERSION_HEX >= 0x03050000)
172
 
  #endif
173
 
  #ifndef CYTHON_USE_TP_FINALIZE
174
 
    #define CYTHON_USE_TP_FINALIZE (PY_VERSION_HEX >= 0x030400a1)
175
 
  #endif
146 176
 
#endif
147 177
 
#if !defined(CYTHON_FAST_PYCCALL)
148 178
 
#define CYTHON_FAST_PYCCALL  (CYTHON_FAST_PYCALL && PY_VERSION_HEX >= 0x030600B1)
...
 
@@ -152,7 +182,109 @@
152 182
 
  #undef SHIFT
153 183
 
  #undef BASE
154 184
 
  #undef MASK
155
 
#endif
185
 
  #ifdef SIZEOF_VOID_P
186
 
    enum { __pyx_check_sizeof_voidp = 1/(SIZEOF_VOID_P == sizeof(void*)) };
187
 
  #endif
188
 
#endif
189
 
#ifndef __has_attribute
190
 
  #define __has_attribute(x) 0
191
 
#endif
192
 
#ifndef __has_cpp_attribute
193
 
  #define __has_cpp_attribute(x) 0
194
 
#endif
195
 
#ifndef CYTHON_RESTRICT
196
 
  #if defined(__GNUC__)
197
 
    #define CYTHON_RESTRICT __restrict__
198
 
  #elif defined(_MSC_VER) && _MSC_VER >= 1400
199
 
    #define CYTHON_RESTRICT __restrict
200
 
  #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
201
 
    #define CYTHON_RESTRICT restrict
202
 
  #else
203
 
    #define CYTHON_RESTRICT
204
 
  #endif
205
 
#endif
206
 
#ifndef CYTHON_UNUSED
207
 
# if defined(__GNUC__)
208
 
#   if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
209
 
#     define CYTHON_UNUSED __attribute__ ((__unused__))
210
 
#   else
211
 
#     define CYTHON_UNUSED
212
 
#   endif
213
 
# elif defined(__ICC) || (defined(__INTEL_COMPILER) && !defined(_MSC_VER))
214
 
#   define CYTHON_UNUSED __attribute__ ((__unused__))
215
 
# else
216
 
#   define CYTHON_UNUSED
217
 
# endif
218
 
#endif
219
 
#ifndef CYTHON_MAYBE_UNUSED_VAR
220
 
#  if defined(__cplusplus)
221
 
     template<class T> void CYTHON_MAYBE_UNUSED_VAR( const T& ) { }
222
 
#  else
223
 
#    define CYTHON_MAYBE_UNUSED_VAR(x) (void)(x)
224
 
#  endif
225
 
#endif
226
 
#ifndef CYTHON_NCP_UNUSED
227
 
# if CYTHON_COMPILING_IN_CPYTHON
228
 
#  define CYTHON_NCP_UNUSED
229
 
# else
230
 
#  define CYTHON_NCP_UNUSED CYTHON_UNUSED
231
 
# endif
232
 
#endif
233
 
#define __Pyx_void_to_None(void_result) ((void)(void_result), Py_INCREF(Py_None), Py_None)
234
 
#ifdef _MSC_VER
235
 
    #ifndef _MSC_STDINT_H_
236
 
        #if _MSC_VER < 1300
237
 
           typedef unsigned char     uint8_t;
238
 
           typedef unsigned int      uint32_t;
239
 
        #else
240
 
           typedef unsigned __int8   uint8_t;
241
 
           typedef unsigned __int32  uint32_t;
242
 
        #endif
243
 
    #endif
244
 
#else
245
 
   #ifndef __VMS
246
 
      #include <stdint.h>
247
 
   #endif
248
 
#endif
249
 
#ifndef CYTHON_FALLTHROUGH
250
 
  #if defined(__cplusplus) && __cplusplus >= 201103L
251
 
    #if __has_cpp_attribute(fallthrough)
252
 
      #define CYTHON_FALLTHROUGH [[fallthrough]]
253
 
    #elif __has_cpp_attribute(clang::fallthrough)
254
 
      #define CYTHON_FALLTHROUGH [[clang::fallthrough]]
255
 
    #elif __has_cpp_attribute(gnu::fallthrough)
256
 
      #define CYTHON_FALLTHROUGH [[gnu::fallthrough]]
257
 
    #endif
258
 
  #endif
259
 
  #ifndef CYTHON_FALLTHROUGH
260
 
    #if __has_attribute(fallthrough)
261
 
      #define CYTHON_FALLTHROUGH __attribute__((fallthrough))
262
 
    #else
263
 
      #define CYTHON_FALLTHROUGH
264
 
    #endif
265
 
  #endif
266
 
  #if defined(__clang__ ) && defined(__apple_build_version__)
267
 
    #if __apple_build_version__ < 7000000
268
 
      #undef  CYTHON_FALLTHROUGH
269
 
      #define CYTHON_FALLTHROUGH
270
 
    #endif
271
 
  #endif
272
 
#endif
273
 

	
274
 
#ifndef CYTHON_INLINE
275
 
  #if defined(__clang__)
276
 
    #define CYTHON_INLINE __inline__ __attribute__ ((__unused__))
277
 
  #elif defined(__GNUC__)
278
 
    #define CYTHON_INLINE __inline__
279
 
  #elif defined(_MSC_VER)
280
 
    #define CYTHON_INLINE __inline
281
 
  #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
282
 
    #define CYTHON_INLINE inline
283
 
  #else
284
 
    #define CYTHON_INLINE
285
 
  #endif
286
 
#endif
287
 

	
156 288
 
#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x02070600 && !defined(Py_OptimizeFlag)
157 289
 
  #define Py_OptimizeFlag 0
158 290
 
#endif
...
 
@@ -181,19 +313,91 @@
181 313
 
#ifndef Py_TPFLAGS_HAVE_FINALIZE
182 314
 
  #define Py_TPFLAGS_HAVE_FINALIZE 0
183 315
 
#endif
184
 
#ifndef METH_FASTCALL
185
 
  #define METH_FASTCALL 0x80
186
 
  typedef PyObject *(*__Pyx_PyCFunctionFast) (PyObject *self, PyObject **args,
187
 
                                              Py_ssize_t nargs, PyObject *kwnames);
316
 
#if PY_VERSION_HEX <= 0x030700A3 || !defined(METH_FASTCALL)
317
 
  #ifndef METH_FASTCALL
318
 
     #define METH_FASTCALL 0x80
319
 
  #endif
320
 
  typedef PyObject *(*__Pyx_PyCFunctionFast) (PyObject *self, PyObject *const *args, Py_ssize_t nargs);
321
 
  typedef PyObject *(*__Pyx_PyCFunctionFastWithKeywords) (PyObject *self, PyObject *const *args,
322
 
                                                          Py_ssize_t nargs, PyObject *kwnames);
188 323
 
#else
189 324
 
  #define __Pyx_PyCFunctionFast _PyCFunctionFast
325
 
  #define __Pyx_PyCFunctionFastWithKeywords _PyCFunctionFastWithKeywords
190 326
 
#endif
191 327
 
#if CYTHON_FAST_PYCCALL
192 328
 
#define __Pyx_PyFastCFunction_Check(func)\
193
 
    ((PyCFunction_Check(func) && METH_FASTCALL == PyCFunction_GET_FLAGS(func) & ~(METH_CLASS | METH_STATIC | METH_COEXIST)))
329
 
    ((PyCFunction_Check(func) && (METH_FASTCALL == (PyCFunction_GET_FLAGS(func) & ~(METH_CLASS | METH_STATIC | METH_COEXIST | METH_KEYWORDS)))))
194 330
 
#else
195 331
 
#define __Pyx_PyFastCFunction_Check(func) 0
196 332
 
#endif
333
 
#if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Malloc)
334
 
  #define PyObject_Malloc(s)   PyMem_Malloc(s)
335
 
  #define PyObject_Free(p)     PyMem_Free(p)
336
 
  #define PyObject_Realloc(p)  PyMem_Realloc(p)
337
 
#endif
338
 
#if CYTHON_COMPILING_IN_PYSTON
339
 
  #define __Pyx_PyCode_HasFreeVars(co)  PyCode_HasFreeVars(co)
340
 
  #define __Pyx_PyFrame_SetLineNumber(frame, lineno) PyFrame_SetLineNumber(frame, lineno)
341
 
#else
342
 
  #define __Pyx_PyCode_HasFreeVars(co)  (PyCode_GetNumFree(co) > 0)
343
 
  #define __Pyx_PyFrame_SetLineNumber(frame, lineno)  (frame)->f_lineno = (lineno)
344
 
#endif
345
 
#if !CYTHON_FAST_THREAD_STATE || PY_VERSION_HEX < 0x02070000
346
 
  #define __Pyx_PyThreadState_Current PyThreadState_GET()
347
 
#elif PY_VERSION_HEX >= 0x03060000
348
 
  #define __Pyx_PyThreadState_Current _PyThreadState_UncheckedGet()
349
 
#elif PY_VERSION_HEX >= 0x03000000
350
 
  #define __Pyx_PyThreadState_Current PyThreadState_GET()
351
 
#else
352
 
  #define __Pyx_PyThreadState_Current _PyThreadState_Current
353
 
#endif
354
 
#if PY_VERSION_HEX < 0x030700A2 && !defined(PyThread_tss_create) && !defined(Py_tss_NEEDS_INIT)
355
 
#include "pythread.h"
356
 
#define Py_tss_NEEDS_INIT 0
357
 
typedef int Py_tss_t;
358
 
static CYTHON_INLINE int PyThread_tss_create(Py_tss_t *key) {
359
 
  *key = PyThread_create_key();
360
 
  return 0; // PyThread_create_key reports success always
361
 
}
362
 
static CYTHON_INLINE Py_tss_t * PyThread_tss_alloc(void) {
363
 
  Py_tss_t *key = (Py_tss_t *)PyObject_Malloc(sizeof(Py_tss_t));
364
 
  *key = Py_tss_NEEDS_INIT;
365
 
  return key;
366
 
}
367
 
static CYTHON_INLINE void PyThread_tss_free(Py_tss_t *key) {
368
 
  PyObject_Free(key);
369
 
}
370
 
static CYTHON_INLINE int PyThread_tss_is_created(Py_tss_t *key) {
371
 
  return *key != Py_tss_NEEDS_INIT;
372
 
}
373
 
static CYTHON_INLINE void PyThread_tss_delete(Py_tss_t *key) {
374
 
  PyThread_delete_key(*key);
375
 
  *key = Py_tss_NEEDS_INIT;
376
 
}
377
 
static CYTHON_INLINE int PyThread_tss_set(Py_tss_t *key, void *value) {
378
 
  return PyThread_set_key_value(*key, value);
379
 
}
380
 
static CYTHON_INLINE void * PyThread_tss_get(Py_tss_t *key) {
381
 
  return PyThread_get_key_value(*key);
382
 
}
383
 
#endif // TSS (Thread Specific Storage) API
384
 
#if CYTHON_COMPILING_IN_CPYTHON || defined(_PyDict_NewPresized)
385
 
#define __Pyx_PyDict_NewPresized(n)  ((n <= 8) ? PyDict_New() : _PyDict_NewPresized(n))
386
 
#else
387
 
#define __Pyx_PyDict_NewPresized(n)  PyDict_New()
388
 
#endif
389
 
#if PY_MAJOR_VERSION >= 3 || CYTHON_FUTURE_DIVISION
390
 
  #define __Pyx_PyNumber_Divide(x,y)         PyNumber_TrueDivide(x,y)
391
 
  #define __Pyx_PyNumber_InPlaceDivide(x,y)  PyNumber_InPlaceTrueDivide(x,y)
392
 
#else
393
 
  #define __Pyx_PyNumber_Divide(x,y)         PyNumber_Divide(x,y)
394
 
  #define __Pyx_PyNumber_InPlaceDivide(x,y)  PyNumber_InPlaceDivide(x,y)
395
 
#endif
396
 
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030500A1 && CYTHON_USE_UNICODE_INTERNALS
397
 
#define __Pyx_PyDict_GetItemStr(dict, name)  _PyDict_GetItem_KnownHash(dict, name, ((PyASCIIObject *) name)->hash)
398
 
#else
399
 
#define __Pyx_PyDict_GetItemStr(dict, name)  PyDict_GetItem(dict, name)
400
 
#endif
197 401
 
#if PY_VERSION_HEX > 0x03030000 && defined(PyUnicode_KIND)
198 402
 
  #define CYTHON_PEP393_ENABLED 1
199 403
 
  #define __Pyx_PyUnicode_READY(op)       (likely(PyUnicode_IS_READY(op)) ?\
...
 
@@ -238,18 +442,6 @@
238 442
 
#if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Format)
239 443
 
  #define PyObject_Format(obj, fmt)  PyObject_CallMethod(obj, "__format__", "O", fmt)
240 444
 
#endif
241
 
#if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Malloc)
242
 
  #define PyObject_Malloc(s)   PyMem_Malloc(s)
243
 
  #define PyObject_Free(p)     PyMem_Free(p)
244
 
  #define PyObject_Realloc(p)  PyMem_Realloc(p)
245
 
#endif
246
 
#if CYTHON_COMPILING_IN_PYSTON
247
 
  #define __Pyx_PyCode_HasFreeVars(co)  PyCode_HasFreeVars(co)
248
 
  #define __Pyx_PyFrame_SetLineNumber(frame, lineno) PyFrame_SetLineNumber(frame, lineno)
249
 
#else
250
 
  #define __Pyx_PyCode_HasFreeVars(co)  (PyCode_GetNumFree(co) > 0)
251
 
  #define __Pyx_PyFrame_SetLineNumber(frame, lineno)  (frame)->f_lineno = (lineno)
252
 
#endif
253 445
 
#define __Pyx_PyString_FormatSafe(a, b)   ((unlikely((a) == Py_None)) ? PyNumber_Remainder(a, b) : __Pyx_PyString_Format(a, b))
254 446
 
#define __Pyx_PyUnicode_FormatSafe(a, b)  ((unlikely((a) == Py_None)) ? PyNumber_Remainder(a, b) : PyUnicode_Format(a, b))
255 447
 
#if PY_MAJOR_VERSION >= 3
...
 
@@ -266,6 +458,7 @@
266 458
 
  #define PyString_Type                PyUnicode_Type
267 459
 
  #define PyString_Check               PyUnicode_Check
268 460
 
  #define PyString_CheckExact          PyUnicode_CheckExact
461
 
  #define PyObject_Unicode             PyObject_Str
269 462
 
#endif
270 463
 
#if PY_MAJOR_VERSION >= 3
271 464
 
  #define __Pyx_PyBaseString_Check(obj) PyUnicode_Check(obj)
...
 
@@ -277,8 +470,11 @@
277 470
 
#ifndef PySet_CheckExact
278 471
 
  #define PySet_CheckExact(obj)        (Py_TYPE(obj) == &PySet_Type)
279 472
 
#endif
280
 
#define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type)
281
 
#define __Pyx_PyException_Check(obj) __Pyx_TypeCheck(obj, PyExc_Exception)
473
 
#if CYTHON_ASSUME_SAFE_MACROS
474
 
  #define __Pyx_PySequence_SIZE(seq)  Py_SIZE(seq)
475
 
#else
476
 
  #define __Pyx_PySequence_SIZE(seq)  PySequence_Size(seq)
477
 
#endif
282 478
 
#if PY_MAJOR_VERSION >= 3
283 479
 
  #define PyIntObject                  PyLongObject
284 480
 
  #define PyInt_Type                   PyLong_Type
...
 
@@ -313,7 +509,7 @@
313 509
 
  #define __Pyx_PyInt_AsHash_t   PyInt_AsSsize_t
314 510
 
#endif
315 511
 
#if PY_MAJOR_VERSION >= 3
316
 
  #define __Pyx_PyMethod_New(func, self, klass) ((self) ? PyMethod_New(func, self) : PyInstanceMethod_New(func))
512
 
  #define __Pyx_PyMethod_New(func, self, klass) ((self) ? PyMethod_New(func, self) : (Py_INCREF(func), func))
317 513
 
#else
318 514
 
  #define __Pyx_PyMethod_New(func, self, klass) PyMethod_New(func, self, klass)
319 515
 
#endif
...
 
@@ -322,39 +518,17 @@
322 518
 
    #define __Pyx_PyAsyncMethodsStruct PyAsyncMethods
323 519
 
    #define __Pyx_PyType_AsAsync(obj) (Py_TYPE(obj)->tp_as_async)
324 520
 
  #else
521
 
    #define __Pyx_PyType_AsAsync(obj) ((__Pyx_PyAsyncMethodsStruct*) (Py_TYPE(obj)->tp_reserved))
522
 
  #endif
523
 
#else
524
 
  #define __Pyx_PyType_AsAsync(obj) NULL
525
 
#endif
526
 
#ifndef __Pyx_PyAsyncMethodsStruct
325 527
 
    typedef struct {
326 528
 
        unaryfunc am_await;
327 529
 
        unaryfunc am_aiter;
328 530
 
        unaryfunc am_anext;
329 531
 
    } __Pyx_PyAsyncMethodsStruct;
330
 
    #define __Pyx_PyType_AsAsync(obj) ((__Pyx_PyAsyncMethodsStruct*) (Py_TYPE(obj)->tp_reserved))
331
 
  #endif
332
 
#else
333
 
  #define __Pyx_PyType_AsAsync(obj) NULL
334
 
#endif
335
 
#ifndef CYTHON_RESTRICT
336
 
  #if defined(__GNUC__)
337
 
    #define CYTHON_RESTRICT __restrict__
338
 
  #elif defined(_MSC_VER) && _MSC_VER >= 1400
339
 
    #define CYTHON_RESTRICT __restrict
340
 
  #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
341
 
    #define CYTHON_RESTRICT restrict
342
 
  #else
343
 
    #define CYTHON_RESTRICT
344
 
  #endif
345
 
#endif
346
 
#define __Pyx_void_to_None(void_result) ((void)(void_result), Py_INCREF(Py_None), Py_None)
347
 

	
348
 
#ifndef CYTHON_INLINE
349
 
  #if defined(__GNUC__)
350
 
    #define CYTHON_INLINE __inline__
351
 
  #elif defined(_MSC_VER)
352
 
    #define CYTHON_INLINE __inline
353
 
  #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
354
 
    #define CYTHON_INLINE inline
355
 
  #else
356
 
    #define CYTHON_INLINE
357
 
  #endif
358 532
 
#endif
359 533
 

	
360 534
 
#if defined(WIN32) || defined(MS_WINDOWS)
...
 
@@ -382,14 +556,6 @@ static CYTHON_INLINE float __PYX_NAN() {
382 556
 
  __pyx_filename = __pyx_f[f_index]; __pyx_lineno = lineno; __pyx_clineno = __LINE__; goto Ln_error; \
383 557
 
}
384 558
 

	
385
 
#if PY_MAJOR_VERSION >= 3
386
 
  #define __Pyx_PyNumber_Divide(x,y)         PyNumber_TrueDivide(x,y)
387
 
  #define __Pyx_PyNumber_InPlaceDivide(x,y)  PyNumber_InPlaceTrueDivide(x,y)
388
 
#else
389
 
  #define __Pyx_PyNumber_Divide(x,y)         PyNumber_Divide(x,y)
390
 
  #define __Pyx_PyNumber_InPlaceDivide(x,y)  PyNumber_InPlaceDivide(x,y)
391
 
#endif
392
 

	
393 559
 
#ifndef __PYX_EXTERN_C
394 560
 
  #ifdef __cplusplus
395 561
 
    #define __PYX_EXTERN_C extern "C"
...
 
@@ -400,6 +566,7 @@ static CYTHON_INLINE float __PYX_NAN() {
400 566
 

	
401 567
 
#define __PYX_HAVE__vms__ptd___vmsptd
402 568
 
#define __PYX_HAVE_API__vms__ptd___vmsptd
569
 
/* Early includes */
403 570
 
#include "iledef.h"
404 571
 
#include "lkidef.h"
405 572
 
#include "ovptd.h"
...
 
@@ -411,30 +578,10 @@ static CYTHON_INLINE float __PYX_NAN() {
411 578
 
#include <omp.h>
412 579
 
#endif /* _OPENMP */
413 580
 

	
414
 
#ifdef PYREX_WITHOUT_ASSERTIONS
581
 
#if defined(PYREX_WITHOUT_ASSERTIONS) && !defined(CYTHON_WITHOUT_ASSERTIONS)
415 582
 
#define CYTHON_WITHOUT_ASSERTIONS
416 583
 
#endif
417 584
 

	
418
 
#ifndef CYTHON_UNUSED
419
 
# if defined(__GNUC__)
420
 
#   if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
421
 
#     define CYTHON_UNUSED __attribute__ ((__unused__))
422
 
#   else
423
 
#     define CYTHON_UNUSED
424
 
#   endif
425
 
# elif defined(__ICC) || (defined(__INTEL_COMPILER) && !defined(_MSC_VER))
426
 
#   define CYTHON_UNUSED __attribute__ ((__unused__))
427
 
# else
428
 
#   define CYTHON_UNUSED
429
 
# endif
430
 
#endif
431
 
#ifndef CYTHON_NCP_UNUSED
432
 
# if CYTHON_COMPILING_IN_CPYTHON
433
 
#  define CYTHON_NCP_UNUSED
434
 
# else
435
 
#  define CYTHON_NCP_UNUSED CYTHON_UNUSED
436
 
# endif
437
 
#endif
438 585
 
typedef struct {PyObject **p; const char *s; const Py_ssize_t n; const char* encoding;
439 586
 
                const char is_unicode; const char is_str; const char intern; } __Pyx_StringTabEntry;
440 587
 

	
...
 
@@ -462,8 +609,8 @@ typedef struct {PyObject **p; const char
462 609
 
    #define __Pyx_sst_abs(value) abs(value)
463 610
 
#elif SIZEOF_LONG >= SIZEOF_SIZE_T
464 611
 
    #define __Pyx_sst_abs(value) labs(value)
465
 
#elif defined (_MSC_VER) && defined (_M_X64)
466
 
    #define __Pyx_sst_abs(value) _abs64(value)
612
 
#elif defined (_MSC_VER)
613
 
    #define __Pyx_sst_abs(value) ((Py_ssize_t)_abs64(value))
467 614
 
#elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
468 615
 
    #define __Pyx_sst_abs(value) llabs(value)
469 616
 
#elif defined (__GNUC__)
...
 
@@ -471,8 +618,8 @@ typedef struct {PyObject **p; const char
471 618
 
#else
472 619
 
    #define __Pyx_sst_abs(value) ((value<0) ? -value : value)
473 620
 
#endif
474
 
static CYTHON_INLINE char* __Pyx_PyObject_AsString(PyObject*);
475
 
static CYTHON_INLINE char* __Pyx_PyObject_AsStringAndSize(PyObject*, Py_ssize_t* length);
621
 
static CYTHON_INLINE const char* __Pyx_PyObject_AsString(PyObject*);
622
 
static CYTHON_INLINE const char* __Pyx_PyObject_AsStringAndSize(PyObject*, Py_ssize_t* length);
476 623
 
#define __Pyx_PyByteArray_FromString(s) PyByteArray_FromStringAndSize((const char*)s, strlen((const char*)s))
477 624
 
#define __Pyx_PyByteArray_FromStringAndSize(s, l) PyByteArray_FromStringAndSize((const char*)s, l)
478 625
 
#define __Pyx_PyBytes_FromString        PyBytes_FromString
...
 
@@ -485,31 +632,37 @@ static CYTHON_INLINE PyObject* __Pyx_PyU
485 632
 
    #define __Pyx_PyStr_FromString        __Pyx_PyUnicode_FromString
486 633
 
    #define __Pyx_PyStr_FromStringAndSize __Pyx_PyUnicode_FromStringAndSize
487 634
 
#endif
488
 
#define __Pyx_PyObject_AsSString(s)    ((signed char*) __Pyx_PyObject_AsString(s))
489
 
#define __Pyx_PyObject_AsUString(s)    ((unsigned char*) __Pyx_PyObject_AsString(s))
635
 
#define __Pyx_PyBytes_AsWritableString(s)     ((char*) PyBytes_AS_STRING(s))
636
 
#define __Pyx_PyBytes_AsWritableSString(s)    ((signed char*) PyBytes_AS_STRING(s))
637
 
#define __Pyx_PyBytes_AsWritableUString(s)    ((unsigned char*) PyBytes_AS_STRING(s))
638
 
#define __Pyx_PyBytes_AsString(s)     ((const char*) PyBytes_AS_STRING(s))
639
 
#define __Pyx_PyBytes_AsSString(s)    ((const signed char*) PyBytes_AS_STRING(s))
640
 
#define __Pyx_PyBytes_AsUString(s)    ((const unsigned char*) PyBytes_AS_STRING(s))
641
 
#define __Pyx_PyObject_AsWritableString(s)    ((char*) __Pyx_PyObject_AsString(s))
642
 
#define __Pyx_PyObject_AsWritableSString(s)    ((signed char*) __Pyx_PyObject_AsString(s))
643
 
#define __Pyx_PyObject_AsWritableUString(s)    ((unsigned char*) __Pyx_PyObject_AsString(s))
644
 
#define __Pyx_PyObject_AsSString(s)    ((const signed char*) __Pyx_PyObject_AsString(s))
645
 
#define __Pyx_PyObject_AsUString(s)    ((const unsigned char*) __Pyx_PyObject_AsString(s))
490 646
 
#define __Pyx_PyObject_FromCString(s)  __Pyx_PyObject_FromString((const char*)s)
491 647
 
#define __Pyx_PyBytes_FromCString(s)   __Pyx_PyBytes_FromString((const char*)s)
492 648
 
#define __Pyx_PyByteArray_FromCString(s)   __Pyx_PyByteArray_FromString((const char*)s)
493 649
 
#define __Pyx_PyStr_FromCString(s)     __Pyx_PyStr_FromString((const char*)s)
494 650
 
#define __Pyx_PyUnicode_FromCString(s) __Pyx_PyUnicode_FromString((const char*)s)
495
 
#if PY_MAJOR_VERSION < 3
496
 
static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u)
497
 
{
651
 
static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u) {
498 652
 
    const Py_UNICODE *u_end = u;
499 653
 
    while (*u_end++) ;
500 654
 
    return (size_t)(u_end - u - 1);
501 655
 
}
502
 
#else
503
 
#define __Pyx_Py_UNICODE_strlen Py_UNICODE_strlen
504
 
#endif
505 656
 
#define __Pyx_PyUnicode_FromUnicode(u)       PyUnicode_FromUnicode(u, __Pyx_Py_UNICODE_strlen(u))
506 657
 
#define __Pyx_PyUnicode_FromUnicodeAndLength PyUnicode_FromUnicode
507 658
 
#define __Pyx_PyUnicode_AsUnicode            PyUnicode_AsUnicode
508 659
 
#define __Pyx_NewRef(obj) (Py_INCREF(obj), obj)
509 660
 
#define __Pyx_Owned_Py_None(b) __Pyx_NewRef(Py_None)
510
 
#define __Pyx_PyBool_FromLong(b) ((b) ? __Pyx_NewRef(Py_True) : __Pyx_NewRef(Py_False))
661
 
static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(long b);
511 662
 
static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject*);
512 663
 
static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x);
664
 
#define __Pyx_PySequence_Tuple(obj)\
665
 
    (likely(PyTuple_CheckExact(obj)) ? __Pyx_NewRef(obj) : PySequence_Tuple(obj))
513 666
 
static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*);
514 667
 
static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t);
515 668
 
#if CYTHON_ASSUME_SAFE_MACROS
...
 
@@ -608,10 +761,12 @@ bad:
608 761
 
  #define likely(x)   (x)
609 762
 
  #define unlikely(x) (x)
610 763
 
#endif /* __GNUC__ */
611
 

	
612
 
static PyObject *__pyx_m;
764
 
static CYTHON_INLINE void __Pyx_pretend_to_initialize(void* ptr) { (void)ptr; }
765
 

	
766
 
static PyObject *__pyx_m = NULL;
613 767
 
static PyObject *__pyx_d;
614 768
 
static PyObject *__pyx_b;
769
 
static PyObject *__pyx_cython_runtime = NULL;
615 770
 
static PyObject *__pyx_empty_tuple;
616 771
 
static PyObject *__pyx_empty_bytes;
617 772
 
static PyObject *__pyx_empty_unicode;
...
 
@@ -622,8 +777,9 @@ static const char *__pyx_filename;
622 777
 

	
623 778
 

	
624 779
 
static const char *__pyx_f[] = {
625
 
  "vms/ptd/_vmsptd.pyx",
626
 
  "_itemList.pxd",
780
 
  "stringsource",
781
 
  "_vmsptd.pyx",
782
 
  "../itemList/_itemList.pxd",
627 783
 
  "type.pxd",
628 784
 
  "bool.pxd",
629 785
 
  "complex.pxd",
...
 
@@ -795,16 +951,7 @@ struct __pyx_obj_3vms_3ptd_7_vmsptd_Devi
795 951
 

	
796 952
 
/* PyObjectGetAttrStr.proto */
797 953
 
#if CYTHON_USE_TYPE_SLOTS
798
 
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name) {
799
 
    PyTypeObject* tp = Py_TYPE(obj);
800
 
    if (likely(tp->tp_getattro))
801
 
        return tp->tp_getattro(obj, attr_name);
802
 
#if PY_MAJOR_VERSION < 3
803
 
    if (likely(tp->tp_getattr))
804
 
        return tp->tp_getattr(obj, PyString_AS_STRING(attr_name));
805
 
#endif
806
 
    return PyObject_GetAttr(obj, attr_name);
807
 
}
954
 
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name);
808 955
 
#else
809 956
 
#define __Pyx_PyObject_GetAttrStr(o,n) PyObject_GetAttr(o,n)
810 957
 
#endif
...
 
@@ -817,33 +964,7 @@ static void __Pyx_RaiseArgtupleInvalid(c
817 964
 
    Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found);
818 965
 

	
819 966
 
/* KeywordStringCheck.proto */
820
 
static CYTHON_INLINE int __Pyx_CheckKeywordStrings(PyObject *kwdict, const char* function_name, int kw_allowed);
821
 

	
822
 
/* RaiseDoubleKeywords.proto */
823
 
static void __Pyx_RaiseDoubleKeywordsError(const char* func_name, PyObject* kw_name);
824
 

	
825
 
/* ParseKeywords.proto */
826
 
static int __Pyx_ParseOptionalKeywords(PyObject *kwds, PyObject **argnames[],\
827
 
    PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args,\
828
 
    const char* function_name);
829
 

	
830
 
/* PyObjectSetAttrStr.proto */
831
 
#if CYTHON_USE_TYPE_SLOTS
832
 
#define __Pyx_PyObject_DelAttrStr(o,n) __Pyx_PyObject_SetAttrStr(o,n,NULL)
833
 
static CYTHON_INLINE int __Pyx_PyObject_SetAttrStr(PyObject* obj, PyObject* attr_name, PyObject* value) {
834
 
    PyTypeObject* tp = Py_TYPE(obj);
835
 
    if (likely(tp->tp_setattro))
836
 
        return tp->tp_setattro(obj, attr_name, value);
837
 
#if PY_MAJOR_VERSION < 3
838
 
    if (likely(tp->tp_setattr))
839
 
        return tp->tp_setattr(obj, PyString_AS_STRING(attr_name), value);
840
 
#endif
841
 
    return PyObject_SetAttr(obj, attr_name, value);
842
 
}
843
 
#else
844
 
#define __Pyx_PyObject_DelAttrStr(o,n)   PyObject_DelAttr(o,n)
845
 
#define __Pyx_PyObject_SetAttrStr(o,n,v) PyObject_SetAttr(o,n,v)
846
 
#endif
967
 
static int __Pyx_CheckKeywordStrings(PyObject *kwdict, const char* function_name, int kw_allowed);
847 968
 

	
848 969
 
/* PyObjectCall.proto */
849 970
 
#if CYTHON_COMPILING_IN_CPYTHON
...
 
@@ -855,23 +976,35 @@ static CYTHON_INLINE PyObject* __Pyx_PyO
855 976
 
/* PyThreadStateGet.proto */
856 977
 
#if CYTHON_FAST_THREAD_STATE
857 978
 
#define __Pyx_PyThreadState_declare  PyThreadState *__pyx_tstate;
858
 
#define __Pyx_PyThreadState_assign  __pyx_tstate = PyThreadState_GET();
979
 
#define __Pyx_PyThreadState_assign  __pyx_tstate = __Pyx_PyThreadState_Current;
980
 
#define __Pyx_PyErr_Occurred()  __pyx_tstate->curexc_type
859 981
 
#else
860 982
 
#define __Pyx_PyThreadState_declare
861 983
 
#define __Pyx_PyThreadState_assign
984
 
#define __Pyx_PyErr_Occurred()  PyErr_Occurred()
862 985
 
#endif
863 986
 

	
864 987
 
/* PyErrFetchRestore.proto */
865 988
 
#if CYTHON_FAST_THREAD_STATE
989
 
#define __Pyx_PyErr_Clear() __Pyx_ErrRestore(NULL, NULL, NULL)
866 990
 
#define __Pyx_ErrRestoreWithState(type, value, tb)  __Pyx_ErrRestoreInState(PyThreadState_GET(), type, value, tb)
867 991
 
#define __Pyx_ErrFetchWithState(type, value, tb)    __Pyx_ErrFetchInState(PyThreadState_GET(), type, value, tb)
868 992
 
#define __Pyx_ErrRestore(type, value, tb)  __Pyx_ErrRestoreInState(__pyx_tstate, type, value, tb)
869 993
 
#define __Pyx_ErrFetch(type, value, tb)    __Pyx_ErrFetchInState(__pyx_tstate, type, value, tb)
870 994
 
static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb);
871 995
 
static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
996
 
#if CYTHON_COMPILING_IN_CPYTHON
997
 
#define __Pyx_PyErr_SetNone(exc) (Py_INCREF(exc), __Pyx_ErrRestore((exc), NULL, NULL))
872 998
 
#else
999
 
#define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc)
1000
 
#endif
1001
 
#else
1002
 
#define __Pyx_PyErr_Clear() PyErr_Clear()
1003
 
#define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc)
873 1004
 
#define __Pyx_ErrRestoreWithState(type, value, tb)  PyErr_Restore(type, value, tb)
874 1005
 
#define __Pyx_ErrFetchWithState(type, value, tb)  PyErr_Fetch(type, value, tb)
1006
 
#define __Pyx_ErrRestoreInState(tstate, type, value, tb)  PyErr_Restore(type, value, tb)
1007
 
#define __Pyx_ErrFetchInState(tstate, type, value, tb)  PyErr_Fetch(type, value, tb)
875 1008
 
#define __Pyx_ErrRestore(type, value, tb)  PyErr_Restore(type, value, tb)
876 1009
 
#define __Pyx_ErrFetch(type, value, tb)  PyErr_Fetch(type, value, tb)
877 1010
 
#endif
...
 
@@ -879,31 +1012,22 @@ static CYTHON_INLINE void __Pyx_ErrFetch
879 1012
 
/* RaiseException.proto */
880 1013
 
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause);
881 1014
 

	
882
 
/* PyIntBinop.proto */
883
 
#if !CYTHON_COMPILING_IN_PYPY
884
 
static PyObject* __Pyx_PyInt_LshiftObjC(PyObject *op1, PyObject *op2, long intval, int inplace);
1015
 
/* RaiseDoubleKeywords.proto */
1016
 
static void __Pyx_RaiseDoubleKeywordsError(const char* func_name, PyObject* kw_name);
1017
 

	
1018
 
/* ParseKeywords.proto */
1019
 
static int __Pyx_ParseOptionalKeywords(PyObject *kwds, PyObject **argnames[],\
1020
 
    PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args,\
1021
 
    const char* function_name);
1022
 

	
1023
 
/* PyObjectSetAttrStr.proto */
1024
 
#if CYTHON_USE_TYPE_SLOTS
1025
 
#define __Pyx_PyObject_DelAttrStr(o,n) __Pyx_PyObject_SetAttrStr(o, n, NULL)
1026
 
static CYTHON_INLINE int __Pyx_PyObject_SetAttrStr(PyObject* obj, PyObject* attr_name, PyObject* value);
885 1027
 
#else
886
 
#define __Pyx_PyInt_LshiftObjC(op1, op2, intval, inplace)\
887
 
    (inplace ? PyNumber_InPlaceLshift(op1, op2) : PyNumber_Lshift(op1, op2))
888
 
#endif
889
 

	
890
 
/* WriteUnraisableException.proto */
891
 
static void __Pyx_WriteUnraisable(const char *name, int clineno,
892
 
                                  int lineno, const char *filename,
893
 
                                  int full_traceback, int nogil);
894
 

	
895
 
/* ArgTypeTest.proto */
896
 
static CYTHON_INLINE int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int none_allowed,
897
 
    const char *name, int exact);
898
 

	
899
 
/* None.proto */
900
 
static CYTHON_INLINE long __Pyx_div_long(long, long);
901
 

	
902
 
/* None.proto */
903
 
static CYTHON_INLINE long __Pyx_mod_long(long, long);
904
 

	
905
 
/* GetModuleGlobalName.proto */
906
 
static CYTHON_INLINE PyObject *__Pyx_GetModuleGlobalName(PyObject *name);
1028
 
#define __Pyx_PyObject_DelAttrStr(o,n)   PyObject_DelAttr(o,n)
1029
 
#define __Pyx_PyObject_SetAttrStr(o,n,v) PyObject_SetAttr(o,n,v)
1030
 
#endif
907 1031
 

	
908 1032
 
/* PyCFunctionFastCall.proto */
909 1033
 
#if CYTHON_FAST_PYCCALL
...
 
@@ -931,6 +1055,65 @@ static CYTHON_INLINE PyObject* __Pyx_PyO
931 1055
 
/* PyObjectCallOneArg.proto */
932 1056
 
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg);
933 1057
 

	
1058
 
/* PyIntBinop.proto */
1059
 
#if !CYTHON_COMPILING_IN_PYPY
1060
 
static PyObject* __Pyx_PyInt_LshiftObjC(PyObject *op1, PyObject *op2, long intval, int inplace);
1061
 
#else
1062
 
#define __Pyx_PyInt_LshiftObjC(op1, op2, intval, inplace)\
1063
 
    (inplace ? PyNumber_InPlaceLshift(op1, op2) : PyNumber_Lshift(op1, op2))
1064
 
#endif
1065
 

	
1066
 
/* WriteUnraisableException.proto */
1067
 
static void __Pyx_WriteUnraisable(const char *name, int clineno,
1068
 
                                  int lineno, const char *filename,
1069
 
                                  int full_traceback, int nogil);
1070
 

	
1071
 
/* ArgTypeTest.proto */
1072
 
#define __Pyx_ArgTypeTest(obj, type, none_allowed, name, exact)\
1073
 
    ((likely((Py_TYPE(obj) == type) | (none_allowed && (obj == Py_None)))) ? 1 :\
1074
 
        __Pyx__ArgTypeTest(obj, type, name, exact))
1075
 
static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type, const char *name, int exact);
1076
 

	
1077
 
/* None.proto */
1078
 
static CYTHON_INLINE long __Pyx_div_long(long, long);
1079
 

	
1080
 
/* PyObjectCallNoArg.proto */
1081
 
#if CYTHON_COMPILING_IN_CPYTHON
1082
 
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func);
1083
 
#else
1084
 
#define __Pyx_PyObject_CallNoArg(func) __Pyx_PyObject_Call(func, __pyx_empty_tuple, NULL)
1085
 
#endif
1086
 

	
1087
 
/* None.proto */
1088
 
static CYTHON_INLINE long __Pyx_mod_long(long, long);
1089
 

	
1090
 
/* GetModuleGlobalName.proto */
1091
 
static CYTHON_INLINE PyObject *__Pyx_GetModuleGlobalName(PyObject *name);
1092
 

	
1093
 
/* PyObject_GenericGetAttrNoDict.proto */
1094
 
#if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000
1095
 
static CYTHON_INLINE PyObject* __Pyx_PyObject_GenericGetAttrNoDict(PyObject* obj, PyObject* attr_name);
1096
 
#else
1097
 
#define __Pyx_PyObject_GenericGetAttrNoDict PyObject_GenericGetAttr
1098
 
#endif
1099
 

	
1100
 
/* PyObject_GenericGetAttr.proto */
1101
 
#if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000
1102
 
static PyObject* __Pyx_PyObject_GenericGetAttr(PyObject* obj, PyObject* attr_name);
1103
 
#else
1104
 
#define __Pyx_PyObject_GenericGetAttr PyObject_GenericGetAttr
1105
 
#endif
1106
 

	
1107
 
/* SetupReduce.proto */
1108
 
static int __Pyx_setup_reduce(PyObject* type_obj);
1109
 

	
1110
 
/* CLineInTraceback.proto */
1111
 
#ifdef CYTHON_CLINE_IN_TRACEBACK
1112
 
#define __Pyx_CLineForTraceback(tstate, c_line)  (((CYTHON_CLINE_IN_TRACEBACK)) ? c_line : 0)
1113
 
#else
1114
 
static int __Pyx_CLineForTraceback(PyThreadState *tstate, int c_line);
1115
 
#endif
1116
 

	
934 1117
 
/* CodeObjectCache.proto */
935 1118
 
typedef struct {
936 1119
 
    PyCodeObject* code_object;
...
 
@@ -993,6 +1176,19 @@ static CYTHON_INLINE PyObject* __Pyx_PyI
993 1176
 
/* CIntFromPy.proto */
994 1177
 
static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *);
995 1178
 

	
1179
 
/* FastTypeChecks.proto */
1180
 
#if CYTHON_COMPILING_IN_CPYTHON
1181
 
#define __Pyx_TypeCheck(obj, type) __Pyx_IsSubtype(Py_TYPE(obj), (PyTypeObject *)type)
1182
 
static CYTHON_INLINE int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b);
1183
 
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject *type);
1184
 
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *type1, PyObject *type2);
1185
 
#else
1186
 
#define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type)
1187
 
#define __Pyx_PyErr_GivenExceptionMatches(err, type) PyErr_GivenExceptionMatches(err, type)
1188
 
#define __Pyx_PyErr_GivenExceptionMatches2(err, type1, type2) (PyErr_GivenExceptionMatches(err, type1) || PyErr_GivenExceptionMatches(err, type2))
1189
 
#endif
1190
 
#define __Pyx_PyException_Check(obj) __Pyx_TypeCheck(obj, PyExc_Exception)
1191
 

	
996 1192
 
/* CheckBinaryVersion.proto */
997 1193
 
static int __Pyx_check_binary_version(void);
998 1194
 

	
...
 
@@ -1116,16 +1312,18 @@ static PyObject *__pyx_f_3vms_3ptd_7_vms
1116 1312
 
static PyObject *__pyx_f_3vms_3ptd_7_vmsptd_getstr(PyObject *); /*proto*/
1117 1313
 
static CYTHON_INLINE PyObject *__pyx_f_3vms_3ptd_7_vmsptd_DESCFROMSTR(struct dsc$descriptor_s *, PyObject *); /*proto*/
1118 1314
 
#define __Pyx_MODULE_NAME "vms.ptd._vmsptd"
1315
 
extern int __pyx_module_is_main_vms__ptd___vmsptd;
1119 1316
 
int __pyx_module_is_main_vms__ptd___vmsptd = 0;
1120 1317
 

	
1121 1318
 
/* Implementation of 'vms.ptd._vmsptd' */
1319
 
static PyObject *__pyx_builtin_TypeError;
1122 1320
 
static PyObject *__pyx_builtin_VMSError;
1123
 
static PyObject *__pyx_builtin_TypeError;
1124 1321
 
static PyObject *__pyx_builtin_ValueError;
1125 1322
 
static const char __pyx_k_s[] = "s";
1126 1323
 
static const char __pyx_k_buf[] = "buf";
1127 1324
 
static const char __pyx_k_efn[] = "efn";
1128 1325
 
static const char __pyx_k_main[] = "__main__";
1326
 
static const char __pyx_k_name[] = "__name__";
1129 1327
 
static const char __pyx_k_ptrc[] = "ptrc";
1130 1328
 
static const char __pyx_k_test[] = "__test__";
1131 1329
 
static const char __pyx_k_type[] = "type";
...
 
@@ -1145,6 +1343,7 @@ static const char __pyx_k_encode[] = "en
1145 1343
 
static const char __pyx_k_extend[] = "extend";
1146 1344
 
static const char __pyx_k_length[] = "length";
1147 1345
 
static const char __pyx_k_pgsize[] = "pgsize";
1346
 
static const char __pyx_k_reduce[] = "__reduce__";
1148 1347
 
static const char __pyx_k_wrtbuf[] = "wrtbuf";
1149 1348
 
static const char __pyx_k_wrtstr[] = "wrtstr";
1150 1349
 
static const char __pyx_k_ascTime[] = "ascTime";
...
 
@@ -1157,19 +1356,27 @@ static const char __pyx_k_timeout[] = "t
1157 1356
 
static const char __pyx_k_VMSError[] = "VMSError";
1158 1357
 
static const char __pyx_k_ascTimeD[] = "ascTimeD";
1159 1358
 
static const char __pyx_k_charbuff[] = "charbuff";
1359
 
static const char __pyx_k_getstate[] = "__getstate__";
1360
 
static const char __pyx_k_setstate[] = "__setstate__";
1160 1361
 
static const char __pyx_k_TypeError[] = "TypeError";
1362
 
static const char __pyx_k_reduce_ex[] = "__reduce_ex__";
1161 1363
 
static const char __pyx_k_retlenPtr[] = "retlenPtr";
1162 1364
 
static const char __pyx_k_wrtstrPtr[] = "wrtstrPtr";
1163 1365
 
static const char __pyx_k_ValueError[] = "ValueError";
1366
 
static const char __pyx_k_vmsptd_pyx[] = "_vmsptd.pyx";
1164 1367
 
static const char __pyx_k_ISO_8859_15[] = "ISO-8859-15";
1165 1368
 
static const char __pyx_k_read_timeout[] = "read_timeout";
1369
 
static const char __pyx_k_reduce_cython[] = "__reduce_cython__";
1370
 
static const char __pyx_k_setstate_cython[] = "__setstate_cython__";
1166 1371
 
static const char __pyx_k_vms_ptd__vmsptd[] = "vms.ptd._vmsptd";
1167
 
static const char __pyx_k_DISK_REPOS_vmspython_python_loc[] = "/DISK$REPOS/vmspython/python/local/vms/ptd/_vmsptd.pyx";
1372
 
static const char __pyx_k_cline_in_traceback[] = "cline_in_traceback";
1373
 
static const char __pyx_k_Pickling_of_struct_members_such[] = "Pickling of struct members such as self.devchar must be explicitly requested with @auto_pickle(True)";
1168 1374
 
static const char __pyx_k_Invalid_wrtstr_length_maximum_is[] = "Invalid wrtstr length, maximum is 1024";
1169 1375
 
static const char __pyx_k_expected_string_or_Unicode_objec[] = "expected string or Unicode object, %s found";
1170
 
static PyObject *__pyx_kp_s_DISK_REPOS_vmspython_python_loc;
1376
 
static const char __pyx_k_self_handler_cannot_be_converted[] = "self.handler cannot be converted to a Python object for pickling";
1171 1377
 
static PyObject *__pyx_kp_s_iso885915_ISO_8859_15;
1172 1378
 
static PyObject *__pyx_kp_s_iso885915_Invalid_wrtstr_length_maximum_is;
1379
 
static PyObject *__pyx_kp_s_Pickling_of_struct_members_such;
1173 1380
 
static PyObject *__pyx_n_s_TypeError;
1174 1381
 
static PyObject *__pyx_n_s_VMSError;
1175 1382
 
static PyObject *__pyx_n_s_ValueError;
...
 
@@ -1182,6 +1389,7 @@ static PyObject *__pyx_n_s_buf;
1182 1389
 
static PyObject *__pyx_n_s_buflen;
1183 1390
 
static PyObject *__pyx_n_s_cancel;
1184 1391
 
static PyObject *__pyx_n_s_charbuff;
1392
 
static PyObject *__pyx_n_s_cline_in_traceback;
1185 1393
 
static PyObject *__pyx_n_s_create;
1186 1394
 
static PyObject *__pyx_n_s_dclass;
1187 1395
 
static PyObject *__pyx_n_s_delete;
...
 
@@ -1190,22 +1398,31 @@ static PyObject *__pyx_n_s_efn;
1190 1398
 
static PyObject *__pyx_n_s_encode;
1191 1399
 
static PyObject *__pyx_kp_s_iso885915_expected_string_or_Unicode_objec;
1192 1400
 
static PyObject *__pyx_n_s_extend;
1401
 
static PyObject *__pyx_n_s_getstate;
1193 1402
 
static PyObject *__pyx_n_s_handler;
1194 1403
 
static PyObject *__pyx_n_s_inadr;
1195 1404
 
static PyObject *__pyx_n_s_length;
1196 1405
 
static PyObject *__pyx_n_s_main;
1406
 
static PyObject *__pyx_n_s_name;
1197 1407
 
static PyObject *__pyx_n_s_nbpages;
1198 1408
 
static PyObject *__pyx_n_s_pgsize;
1199 1409
 
static PyObject *__pyx_n_s_ptrc;
1200 1410
 
static PyObject *__pyx_n_s_read_timeout;
1201 1411
 
static PyObject *__pyx_n_s_readbuf;
1202 1412
 
static PyObject *__pyx_n_s_readw;
1413
 
static PyObject *__pyx_n_s_reduce;
1414
 
static PyObject *__pyx_n_s_reduce_cython;
1415
 
static PyObject *__pyx_n_s_reduce_ex;
1203 1416
 
static PyObject *__pyx_n_s_retlenPtr;
1204 1417
 
static PyObject *__pyx_n_s_s;
1418
 
static PyObject *__pyx_kp_s_self_handler_cannot_be_converted;
1419
 
static PyObject *__pyx_n_s_setstate;
1420
 
static PyObject *__pyx_n_s_setstate_cython;
1205 1421
 
static PyObject *__pyx_n_s_test;
1206 1422
 
static PyObject *__pyx_n_s_timeout;
1207 1423
 
static PyObject *__pyx_n_s_type;
1208 1424
 
static PyObject *__pyx_n_s_vms_ptd__vmsptd;
1425
 
static PyObject *__pyx_kp_s_vmsptd_pyx;
1209 1426
 
static PyObject *__pyx_n_s_width;
1210 1427
 
static PyObject *__pyx_n_s_wlen;
1211 1428
 
static PyObject *__pyx_n_s_write;
...
 
@@ -1219,6 +1436,8 @@ static PyObject *__pyx_pf_3vms_3ptd_7_vm
1219 1436
 
static PyObject *__pyx_pf_3vms_3ptd_7_vmsptd_10PtdHandler_3efn___get__(struct __pyx_obj_3vms_3ptd_7_vmsptd_PtdHandler *__pyx_v_self); /* proto */
1220 1437
 
static PyObject *__pyx_pf_3vms_3ptd_7_vmsptd_10PtdHandler_11read_status___get__(struct __pyx_obj_3vms_3ptd_7_vmsptd_PtdHandler *__pyx_v_self); /* proto */
1221 1438
 
static PyObject *__pyx_pf_3vms_3ptd_7_vmsptd_10PtdHandler_12timer_status___get__(struct __pyx_obj_3vms_3ptd_7_vmsptd_PtdHandler *__pyx_v_self); /* proto */
1439
 
static PyObject *__pyx_pf_3vms_3ptd_7_vmsptd_10PtdHandler_2__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_3vms_3ptd_7_vmsptd_PtdHandler *__pyx_v_self); /* proto */
1440
 
static PyObject *__pyx_pf_3vms_3ptd_7_vmsptd_10PtdHandler_4__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_3vms_3ptd_7_vmsptd_PtdHandler *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
1222 1441
 
static int __pyx_pf_3vms_3ptd_7_vmsptd_21DeviceCharacteristics___init__(struct __pyx_obj_3vms_3ptd_7_vmsptd_DeviceCharacteristics *__pyx_v_self, unsigned char __pyx_v_dclass, unsigned char __pyx_v_type, unsigned short __pyx_v_width, unsigned int __pyx_v_basic, unsigned char __pyx_v_length, unsigned int __pyx_v_extend); /* proto */
1223 1442
 
static PyObject *__pyx_pf_3vms_3ptd_7_vmsptd_21DeviceCharacteristics_6dclass___get__(struct __pyx_obj_3vms_3ptd_7_vmsptd_DeviceCharacteristics *__pyx_v_self); /* proto */
1224 1443
 
static int __pyx_pf_3vms_3ptd_7_vmsptd_21DeviceCharacteristics_6dclass_2__set__(struct __pyx_obj_3vms_3ptd_7_vmsptd_DeviceCharacteristics *__pyx_v_self, unsigned char __pyx_v_dclass); /* proto */
...
 
@@ -1232,6 +1451,8 @@ static PyObject *__pyx_pf_3vms_3ptd_7_vm
1232 1451
 
static int __pyx_pf_3vms_3ptd_7_vmsptd_21DeviceCharacteristics_6length_2__set__(struct __pyx_obj_3vms_3ptd_7_vmsptd_DeviceCharacteristics *__pyx_v_self, unsigned char __pyx_v_length); /* proto */
1233 1452
 
static PyObject *__pyx_pf_3vms_3ptd_7_vmsptd_21DeviceCharacteristics_6extend___get__(struct __pyx_obj_3vms_3ptd_7_vmsptd_DeviceCharacteristics *__pyx_v_self); /* proto */
1234 1453
 
static int __pyx_pf_3vms_3ptd_7_vmsptd_21DeviceCharacteristics_6extend_2__set__(struct __pyx_obj_3vms_3ptd_7_vmsptd_DeviceCharacteristics *__pyx_v_self, unsigned int __pyx_v_extend); /* proto */
1454
 
static PyObject *__pyx_pf_3vms_3ptd_7_vmsptd_21DeviceCharacteristics_2__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_3vms_3ptd_7_vmsptd_DeviceCharacteristics *__pyx_v_self); /* proto */
1455
 
static PyObject *__pyx_pf_3vms_3ptd_7_vmsptd_21DeviceCharacteristics_4__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_3vms_3ptd_7_vmsptd_DeviceCharacteristics *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
1235 1456
 
static PyObject *__pyx_pf_3vms_3ptd_7_vmsptd_cancel(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_3vms_3ptd_7_vmsptd_PtdHandler *__pyx_v_handler); /* proto */
1236 1457
 
static PyObject *__pyx_pf_3vms_3ptd_7_vmsptd_2create(CYTHON_UNUSED PyObject *__pyx_self, unsigned int __pyx_v_acmode, struct __pyx_obj_3vms_3ptd_7_vmsptd_DeviceCharacteristics *__pyx_v_charbuff); /* proto */
1237 1458
 
static PyObject *__pyx_pf_3vms_3ptd_7_vmsptd_4delete(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_3vms_3ptd_7_vmsptd_PtdHandler *__pyx_v_handler); /* proto */
...
 
@@ -1245,17 +1466,22 @@ static PyObject *__pyx_int_4294967295;
1245 1466
 
static PyObject *__pyx_tuple_;
1246 1467
 
static PyObject *__pyx_tuple__2;
1247 1468
 
static PyObject *__pyx_tuple__3;
1469
 
static PyObject *__pyx_tuple__4;
1248 1470
 
static PyObject *__pyx_tuple__5;
1471
 
static PyObject *__pyx_tuple__6;
1249 1472
 
static PyObject *__pyx_tuple__7;
1250 1473
 
static PyObject *__pyx_tuple__9;
1251 1474
 
static PyObject *__pyx_tuple__11;
1252 1475
 
static PyObject *__pyx_tuple__13;
1253
 
static PyObject *__pyx_codeobj__4;
1254
 
static PyObject *__pyx_codeobj__6;
1476
 
static PyObject *__pyx_tuple__15;
1477
 
static PyObject *__pyx_tuple__17;
1255 1478
 
static PyObject *__pyx_codeobj__8;
1256 1479
 
static PyObject *__pyx_codeobj__10;
1257 1480
 
static PyObject *__pyx_codeobj__12;
1258 1481
 
static PyObject *__pyx_codeobj__14;
1482
 
static PyObject *__pyx_codeobj__16;
1483
 
static PyObject *__pyx_codeobj__18;
1484
 
/* Late includes */
1259 1485
 

	
1260 1486
 
/* "vms/ptd/_vmsptd.pyx":110
1261 1487
 
 * cdef class PtdHandler(object):
...
 
@@ -1344,7 +1570,7 @@ static PyObject *__pyx_pf_3vms_3ptd_7_vm
1344 1570
 
 *         def __get__(self):
1345 1571
 
 */
1346 1572
 
  __Pyx_XDECREF(__pyx_r);
1347
 
  __pyx_t_1 = __Pyx_PyInt_From_unsigned_short(__pyx_v_self->handler->channel); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 114, __pyx_L1_error)
1573
 
  __pyx_t_1 = __Pyx_PyInt_From_unsigned_short(__pyx_v_self->handler->channel); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 114, __pyx_L1_error)
1348 1574
 
  __Pyx_GOTREF(__pyx_t_1);
1349 1575
 
  __pyx_r = __pyx_t_1;
1350 1576
 
  __pyx_t_1 = 0;
...
 
@@ -1404,7 +1630,7 @@ static PyObject *__pyx_pf_3vms_3ptd_7_vm
1404 1630
 
 *         def __get__(self):
1405 1631
 
 */
1406 1632
 
  __Pyx_XDECREF(__pyx_r);
1407
 
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->handler->nbpages); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 117, __pyx_L1_error)
1633
 
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->handler->nbpages); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 117, __pyx_L1_error)
1408 1634
 
  __Pyx_GOTREF(__pyx_t_1);
1409 1635
 
  __pyx_r = __pyx_t_1;
1410 1636
 
  __pyx_t_1 = 0;
...
 
@@ -1464,7 +1690,7 @@ static PyObject *__pyx_pf_3vms_3ptd_7_vm
1464 1690
 
 *         def __get__(self):
1465 1691
 
 */
1466 1692
 
  __Pyx_XDECREF(__pyx_r);
1467
 
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->handler->buflen); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 120, __pyx_L1_error)
1693
 
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->handler->buflen); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 120, __pyx_L1_error)
1468 1694
 
  __Pyx_GOTREF(__pyx_t_1);
1469 1695
 
  __pyx_r = __pyx_t_1;
1470 1696
 
  __pyx_t_1 = 0;
...
 
@@ -1524,7 +1750,7 @@ static PyObject *__pyx_pf_3vms_3ptd_7_vm
1524 1750
 
 *         def __get__(self):
1525 1751
 
 */
1526 1752
 
  __Pyx_XDECREF(__pyx_r);
1527
 
  __pyx_t_1 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->handler->efn); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 123, __pyx_L1_error)
1753
 
  __pyx_t_1 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->handler->efn); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 123, __pyx_L1_error)
1528 1754
 
  __Pyx_GOTREF(__pyx_t_1);
1529 1755
 
  __pyx_r = __pyx_t_1;
1530 1756
 
  __pyx_t_1 = 0;
...
 
@@ -1584,7 +1810,7 @@ static PyObject *__pyx_pf_3vms_3ptd_7_vm
1584 1810
 
 *         def __get__(self):
1585 1811
 
 */
1586 1812
 
  __Pyx_XDECREF(__pyx_r);
1587
 
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->handler->read_status); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 126, __pyx_L1_error)
1813
 
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->handler->read_status); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 126, __pyx_L1_error)
1588 1814
 
  __Pyx_GOTREF(__pyx_t_1);
1589 1815
 
  __pyx_r = __pyx_t_1;
1590 1816
 
  __pyx_t_1 = 0;
...
 
@@ -1644,7 +1870,7 @@ static PyObject *__pyx_pf_3vms_3ptd_7_vm
1644 1870
 
 * cdef class DeviceCharacteristics(object):
1645 1871
 
 */
1646 1872
 
  __Pyx_XDECREF(__pyx_r);
1647
 
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->handler->timer_status); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 129, __pyx_L1_error)
1873
 
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->handler->timer_status); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 129, __pyx_L1_error)
1648 1874
 
  __Pyx_GOTREF(__pyx_t_1);
1649 1875
 
  __pyx_r = __pyx_t_1;
1650 1876
 
  __pyx_t_1 = 0;
...
 
@@ -1669,6 +1895,113 @@ static PyObject *__pyx_pf_3vms_3ptd_7_vm
1669 1895
 
  return __pyx_r;
1670 1896
 
}
1671 1897
 

	
1898
 
/* "(tree fragment)":1
1899
 
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
1900
 
 *     raise TypeError("self.handler cannot be converted to a Python object for pickling")
1901
 
 * def __setstate_cython__(self, __pyx_state):
1902
 
 */
1903
 

	
1904
 
/* Python wrapper */
1905
 
static PyObject *__pyx_pw_3vms_3ptd_7_vmsptd_10PtdHandler_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
1906
 
static PyObject *__pyx_pw_3vms_3ptd_7_vmsptd_10PtdHandler_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
1907
 
  PyObject *__pyx_r = 0;
1908
 
  __Pyx_RefNannyDeclarations
1909
 
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
1910
 
  __pyx_r = __pyx_pf_3vms_3ptd_7_vmsptd_10PtdHandler_2__reduce_cython__(((struct __pyx_obj_3vms_3ptd_7_vmsptd_PtdHandler *)__pyx_v_self));
1911
 

	
1912
 
  /* function exit code */
1913
 
  __Pyx_RefNannyFinishContext();
1914
 
  return __pyx_r;
1915
 
}
1916
 

	
1917
 
static PyObject *__pyx_pf_3vms_3ptd_7_vmsptd_10PtdHandler_2__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_3vms_3ptd_7_vmsptd_PtdHandler *__pyx_v_self) {
1918
 
  PyObject *__pyx_r = NULL;
1919
 
  __Pyx_RefNannyDeclarations
1920
 
  PyObject *__pyx_t_1 = NULL;
1921
 
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);
1922
 

	
1923
 
  /* "(tree fragment)":2
1924
 
 * def __reduce_cython__(self):
1925
 
 *     raise TypeError("self.handler cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
1926
 
 * def __setstate_cython__(self, __pyx_state):
1927
 
 *     raise TypeError("self.handler cannot be converted to a Python object for pickling")
1928
 
 */
1929
 
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple_, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2, __pyx_L1_error)
1930
 
  __Pyx_GOTREF(__pyx_t_1);
1931
 
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
1932
 
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
1933
 
  __PYX_ERR(0, 2, __pyx_L1_error)
1934
 

	
1935
 
  /* "(tree fragment)":1
1936
 
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
1937
 
 *     raise TypeError("self.handler cannot be converted to a Python object for pickling")
1938
 
 * def __setstate_cython__(self, __pyx_state):
1939
 
 */
1940
 

	
1941
 
  /* function exit code */
1942
 
  __pyx_L1_error:;
1943
 
  __Pyx_XDECREF(__pyx_t_1);
1944
 
  __Pyx_AddTraceback("vms.ptd._vmsptd.PtdHandler.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
1945
 
  __pyx_r = NULL;
1946
 
  __Pyx_XGIVEREF(__pyx_r);
1947
 
  __Pyx_RefNannyFinishContext();
1948
 
  return __pyx_r;
1949
 
}
1950
 

	
1951
 
/* "(tree fragment)":3
1952
 
 * def __reduce_cython__(self):
1953
 
 *     raise TypeError("self.handler cannot be converted to a Python object for pickling")
1954
 
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
1955
 
 *     raise TypeError("self.handler cannot be converted to a Python object for pickling")
1956
 
 */
1957
 

	
1958
 
/* Python wrapper */
1959
 
static PyObject *__pyx_pw_3vms_3ptd_7_vmsptd_10PtdHandler_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
1960
 
static PyObject *__pyx_pw_3vms_3ptd_7_vmsptd_10PtdHandler_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
1961
 
  PyObject *__pyx_r = 0;
1962
 
  __Pyx_RefNannyDeclarations
1963
 
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
1964
 
  __pyx_r = __pyx_pf_3vms_3ptd_7_vmsptd_10PtdHandler_4__setstate_cython__(((struct __pyx_obj_3vms_3ptd_7_vmsptd_PtdHandler *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));
1965
 

	
1966
 
  /* function exit code */
1967
 
  __Pyx_RefNannyFinishContext();
1968
 
  return __pyx_r;
1969
 
}
1970
 

	
1971
 
static PyObject *__pyx_pf_3vms_3ptd_7_vmsptd_10PtdHandler_4__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_3vms_3ptd_7_vmsptd_PtdHandler *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
1972
 
  PyObject *__pyx_r = NULL;
1973
 
  __Pyx_RefNannyDeclarations
1974
 
  PyObject *__pyx_t_1 = NULL;
1975
 
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);
1976
 

	
1977
 
  /* "(tree fragment)":4
1978
 
 *     raise TypeError("self.handler cannot be converted to a Python object for pickling")
1979
 
 * def __setstate_cython__(self, __pyx_state):
1980
 
 *     raise TypeError("self.handler cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
1981
 
 */
1982
 
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4, __pyx_L1_error)
1983
 
  __Pyx_GOTREF(__pyx_t_1);
1984
 
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
1985
 
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
1986
 
  __PYX_ERR(0, 4, __pyx_L1_error)
1987
 

	
1988
 
  /* "(tree fragment)":3
1989
 
 * def __reduce_cython__(self):
1990
 
 *     raise TypeError("self.handler cannot be converted to a Python object for pickling")
1991
 
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
1992
 
 *     raise TypeError("self.handler cannot be converted to a Python object for pickling")
1993
 
 */
1994
 

	
1995
 
  /* function exit code */
1996
 
  __pyx_L1_error:;
1997
 
  __Pyx_XDECREF(__pyx_t_1);
1998
 
  __Pyx_AddTraceback("vms.ptd._vmsptd.PtdHandler.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
1999
 
  __pyx_r = NULL;
2000
 
  __Pyx_XGIVEREF(__pyx_r);
2001
 
  __Pyx_RefNannyFinishContext();
2002
 
  return __pyx_r;
2003
 
}
2004
 

	
1672 2005
 
/* "vms/ptd/_vmsptd.pyx":133
1673 2006
 
 * cdef class DeviceCharacteristics(object):
1674 2007
 
 *     cdef DevChar devchar
...
 
@@ -1697,47 +2030,58 @@ static int __pyx_pw_3vms_3ptd_7_vmsptd_2
1697 2030
 
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
1698 2031
 
      switch (pos_args) {
1699 2032
 
        case  6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
2033
 
        CYTHON_FALLTHROUGH;
1700 2034
 
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
2035
 
        CYTHON_FALLTHROUGH;
1701 2036
 
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
2037
 
        CYTHON_FALLTHROUGH;
1702 2038
 
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
2039
 
        CYTHON_FALLTHROUGH;
1703 2040
 
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
2041
 
        CYTHON_FALLTHROUGH;
1704 2042
 
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
2043
 
        CYTHON_FALLTHROUGH;
1705 2044
 
        case  0: break;
1706 2045
 
        default: goto __pyx_L5_argtuple_error;
1707 2046
 
      }
1708 2047
 
      kw_args = PyDict_Size(__pyx_kwds);
1709 2048
 
      switch (pos_args) {
1710 2049
 
        case  0:
1711
 
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_dclass)) != 0)) kw_args--;
2050
 
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dclass)) != 0)) kw_args--;
1712 2051
 
        else goto __pyx_L5_argtuple_error;
2052
 
        CYTHON_FALLTHROUGH;
1713 2053
 
        case  1:
1714
 
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_type)) != 0)) kw_args--;
2054
 
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_type)) != 0)) kw_args--;
1715 2055
 
        else {
1716
 
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 6, 6, 1); __PYX_ERR(0, 133, __pyx_L3_error)
2056
 
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 6, 6, 1); __PYX_ERR(1, 133, __pyx_L3_error)
1717 2057
 
        }
2058
 
        CYTHON_FALLTHROUGH;
1718 2059
 
        case  2:
1719
 
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_width)) != 0)) kw_args--;
2060
 
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_width)) != 0)) kw_args--;
1720 2061
 
        else {
1721
 
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 6, 6, 2); __PYX_ERR(0, 133, __pyx_L3_error)
2062
 
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 6, 6, 2); __PYX_ERR(1, 133, __pyx_L3_error)
1722 2063
 
        }
2064
 
        CYTHON_FALLTHROUGH;
1723 2065
 
        case  3:
1724
 
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_basic)) != 0)) kw_args--;
2066
 
        if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_basic)) != 0)) kw_args--;
1725 2067
 
        else {
1726
 
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 6, 6, 3); __PYX_ERR(0, 133, __pyx_L3_error)
2068
 
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 6, 6, 3); __PYX_ERR(1, 133, __pyx_L3_error)
1727 2069
 
        }
2070
 
        CYTHON_FALLTHROUGH;
1728 2071
 
        case  4:
1729
 
        if (likely((values[4] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_length)) != 0)) kw_args--;
2072
 
        if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_length)) != 0)) kw_args--;
1730 2073
 
        else {
1731
 
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 6, 6, 4); __PYX_ERR(0, 133, __pyx_L3_error)
2074
 
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 6, 6, 4); __PYX_ERR(1, 133, __pyx_L3_error)
1732 2075
 
        }
2076
 
        CYTHON_FALLTHROUGH;
1733 2077
 
        case  5:
1734
 
        if (likely((values[5] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_extend)) != 0)) kw_args--;
2078
 
        if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_extend)) != 0)) kw_args--;
1735 2079
 
        else {
1736
 
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 6, 6, 5); __PYX_ERR(0, 133, __pyx_L3_error)
2080
 
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 6, 6, 5); __PYX_ERR(1, 133, __pyx_L3_error)
1737 2081
 
        }
1738 2082
 
      }
1739 2083
 
      if (unlikely(kw_args > 0)) {
1740
 
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(0, 133, __pyx_L3_error)
2084
 
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(1, 133, __pyx_L3_error)
1741 2085
 
      }
1742 2086
 
    } else if (PyTuple_GET_SIZE(__pyx_args) != 6) {
1743 2087
 
      goto __pyx_L5_argtuple_error;
...
 
@@ -1749,16 +2093,16 @@ static int __pyx_pw_3vms_3ptd_7_vmsptd_2
1749 2093
 
      values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
1750 2094
 
      values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
1751 2095
 
    }
1752
 
    __pyx_v_dclass = __Pyx_PyInt_As_unsigned_char(values[0]); if (unlikely((__pyx_v_dclass == (unsigned char)-1) && PyErr_Occurred())) __PYX_ERR(0, 133, __pyx_L3_error)
1753
 
    __pyx_v_type = __Pyx_PyInt_As_unsigned_char(values[1]); if (unlikely((__pyx_v_type == (unsigned char)-1) && PyErr_Occurred())) __PYX_ERR(0, 133, __pyx_L3_error)
1754
 
    __pyx_v_width = __Pyx_PyInt_As_unsigned_short(values[2]); if (unlikely((__pyx_v_width == (unsigned short)-1) && PyErr_Occurred())) __PYX_ERR(0, 134, __pyx_L3_error)
1755
 
    __pyx_v_basic = __Pyx_PyInt_As_unsigned_int(values[3]); if (unlikely((__pyx_v_basic == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 134, __pyx_L3_error)
1756
 
    __pyx_v_length = __Pyx_PyInt_As_unsigned_char(values[4]); if (unlikely((__pyx_v_length == (unsigned char)-1) && PyErr_Occurred())) __PYX_ERR(0, 135, __pyx_L3_error)
1757
 
    __pyx_v_extend = __Pyx_PyInt_As_unsigned_int(values[5]); if (unlikely((__pyx_v_extend == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 135, __pyx_L3_error)
2096
 
    __pyx_v_dclass = __Pyx_PyInt_As_unsigned_char(values[0]); if (unlikely((__pyx_v_dclass == (unsigned char)-1) && PyErr_Occurred())) __PYX_ERR(1, 133, __pyx_L3_error)
2097
 
    __pyx_v_type = __Pyx_PyInt_As_unsigned_char(values[1]); if (unlikely((__pyx_v_type == (unsigned char)-1) && PyErr_Occurred())) __PYX_ERR(1, 133, __pyx_L3_error)
2098
 
    __pyx_v_width = __Pyx_PyInt_As_unsigned_short(values[2]); if (unlikely((__pyx_v_width == (unsigned short)-1) && PyErr_Occurred())) __PYX_ERR(1, 134, __pyx_L3_error)
2099
 
    __pyx_v_basic = __Pyx_PyInt_As_unsigned_int(values[3]); if (unlikely((__pyx_v_basic == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(1, 134, __pyx_L3_error)
2100
 
    __pyx_v_length = __Pyx_PyInt_As_unsigned_char(values[4]); if (unlikely((__pyx_v_length == (unsigned char)-1) && PyErr_Occurred())) __PYX_ERR(1, 135, __pyx_L3_error)
2101
 
    __pyx_v_extend = __Pyx_PyInt_As_unsigned_int(values[5]); if (unlikely((__pyx_v_extend == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(1, 135, __pyx_L3_error)
1758 2102
 
  }
1759 2103
 
  goto __pyx_L4_argument_unpacking_done;
1760 2104
 
  __pyx_L5_argtuple_error:;
1761
 
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 133, __pyx_L3_error)
2105
 
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 133, __pyx_L3_error)
1762 2106
 
  __pyx_L3_error:;
1763 2107
 
  __Pyx_AddTraceback("vms.ptd._vmsptd.DeviceCharacteristics.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
1764 2108
 
  __Pyx_RefNannyFinishContext();
...
 
@@ -1835,9 +2179,9 @@ static PyObject *__pyx_pf_3vms_3ptd_7_vm
1835 2179
 
 *             self.devchar.dclass = dclass
1836 2180
 
 */
1837 2181
 
  __Pyx_XDECREF(__pyx_r);
1838
 
  __pyx_t_1 = __pyx_convert__to_py_DevChar(__pyx_v_self->devchar); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 139, __pyx_L1_error)
2182
 
  __pyx_t_1 = __pyx_convert__to_py_DevChar(__pyx_v_self->devchar); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 139, __pyx_L1_error)
1839 2183
 
  __Pyx_GOTREF(__pyx_t_1);
1840
 
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_dclass); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 139, __pyx_L1_error)
2184
 
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_dclass); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 139, __pyx_L1_error)
1841 2185
 
  __Pyx_GOTREF(__pyx_t_2);
1842 2186
 
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
1843 2187
 
  __pyx_r = __pyx_t_2;
...
 
@@ -1880,7 +2224,7 @@ static int __pyx_pw_3vms_3ptd_7_vmsptd_2
1880 2224
 
  __Pyx_RefNannyDeclarations
1881 2225
 
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
1882 2226
 
  assert(__pyx_arg_dclass); {
1883
 
    __pyx_v_dclass = __Pyx_PyInt_As_unsigned_char(__pyx_arg_dclass); if (unlikely((__pyx_v_dclass == (unsigned char)-1) && PyErr_Occurred())) __PYX_ERR(0, 140, __pyx_L3_error)
2227
 
    __pyx_v_dclass = __Pyx_PyInt_As_unsigned_char(__pyx_arg_dclass); if (unlikely((__pyx_v_dclass == (unsigned char)-1) && PyErr_Occurred())) __PYX_ERR(1, 140, __pyx_L3_error)
1884 2228
 
  }
1885 2229
 
  goto __pyx_L4_argument_unpacking_done;
1886 2230
 
  __pyx_L3_error:;
...
 
@@ -1909,11 +2253,11 @@ static int __pyx_pf_3vms_3ptd_7_vmsptd_2
1909 2253
 
 *     property type:
1910 2254
 
 *         def __get__(self):
1911 2255
 
 */
1912
 
  __pyx_t_1 = __Pyx_PyInt_From_unsigned_char(__pyx_v_dclass); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 141, __pyx_L1_error)
2256
 
  __pyx_t_1 = __Pyx_PyInt_From_unsigned_char(__pyx_v_dclass); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 141, __pyx_L1_error)
1913 2257
 
  __Pyx_GOTREF(__pyx_t_1);
1914
 
  __pyx_t_2 = __pyx_convert__to_py_DevChar(__pyx_v_self->devchar); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 141, __pyx_L1_error)
2258
 
  __pyx_t_2 = __pyx_convert__to_py_DevChar(__pyx_v_self->devchar); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 141, __pyx_L1_error)
1915 2259
 
  __Pyx_GOTREF(__pyx_t_2);
1916
 
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_2, __pyx_n_s_dclass, __pyx_t_1) < 0) __PYX_ERR(0, 141, __pyx_L1_error)
2260
 
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_2, __pyx_n_s_dclass, __pyx_t_1) < 0) __PYX_ERR(1, 141, __pyx_L1_error)
1917 2261
 
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
1918 2262
 
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
1919 2263
 

	
...
 
@@ -1974,9 +2318,9 @@ static PyObject *__pyx_pf_3vms_3ptd_7_vm
1974 2318
 
 *             self.devchar.type = type
1975 2319
 
 */
1976 2320
 
  __Pyx_XDECREF(__pyx_r);
1977
 
  __pyx_t_1 = __pyx_convert__to_py_DevChar(__pyx_v_self->devchar); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 144, __pyx_L1_error)
2321
 
  __pyx_t_1 = __pyx_convert__to_py_DevChar(__pyx_v_self->devchar); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 144, __pyx_L1_error)
1978 2322
 
  __Pyx_GOTREF(__pyx_t_1);
1979
 
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_type); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 144, __pyx_L1_error)
2323
 
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_type); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 144, __pyx_L1_error)
1980 2324
 
  __Pyx_GOTREF(__pyx_t_2);
1981 2325
 
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
1982 2326
 
  __pyx_r = __pyx_t_2;
...
 
@@ -2019,7 +2363,7 @@ static int __pyx_pw_3vms_3ptd_7_vmsptd_2
2019 2363
 
  __Pyx_RefNannyDeclarations
2020 2364
 
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
2021 2365
 
  assert(__pyx_arg_type); {
2022
 
    __pyx_v_type = __Pyx_PyInt_As_unsigned_char(__pyx_arg_type); if (unlikely((__pyx_v_type == (unsigned char)-1) && PyErr_Occurred())) __PYX_ERR(0, 145, __pyx_L3_error)
2366
 
    __pyx_v_type = __Pyx_PyInt_As_unsigned_char(__pyx_arg_type); if (unlikely((__pyx_v_type == (unsigned char)-1) && PyErr_Occurred())) __PYX_ERR(1, 145, __pyx_L3_error)
2023 2367
 
  }
2024 2368
 
  goto __pyx_L4_argument_unpacking_done;
2025 2369
 
  __pyx_L3_error:;
...
 
@@ -2048,11 +2392,11 @@ static int __pyx_pf_3vms_3ptd_7_vmsptd_2
2048 2392
 
 *     property width:
2049 2393
 
 *         def __get__(self):
2050 2394
 
 */
2051
 
  __pyx_t_1 = __Pyx_PyInt_From_unsigned_char(__pyx_v_type); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 146, __pyx_L1_error)
2395
 
  __pyx_t_1 = __Pyx_PyInt_From_unsigned_char(__pyx_v_type); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 146, __pyx_L1_error)
2052 2396
 
  __Pyx_GOTREF(__pyx_t_1);
2053
 
  __pyx_t_2 = __pyx_convert__to_py_DevChar(__pyx_v_self->devchar); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 146, __pyx_L1_error)
2397
 
  __pyx_t_2 = __pyx_convert__to_py_DevChar(__pyx_v_self->devchar); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 146, __pyx_L1_error)
2054 2398
 
  __Pyx_GOTREF(__pyx_t_2);
2055
 
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_2, __pyx_n_s_type, __pyx_t_1) < 0) __PYX_ERR(0, 146, __pyx_L1_error)
2399
 
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_2, __pyx_n_s_type, __pyx_t_1) < 0) __PYX_ERR(1, 146, __pyx_L1_error)
2056 2400
 
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2057 2401
 
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
2058 2402
 

	
...
 
@@ -2113,9 +2457,9 @@ static PyObject *__pyx_pf_3vms_3ptd_7_vm
2113 2457
 
 *             self.devchar.width = width
2114 2458
 
 */
2115 2459
 
  __Pyx_XDECREF(__pyx_r);
2116
 
  __pyx_t_1 = __pyx_convert__to_py_DevChar(__pyx_v_self->devchar); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 149, __pyx_L1_error)
2460
 
  __pyx_t_1 = __pyx_convert__to_py_DevChar(__pyx_v_self->devchar); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 149, __pyx_L1_error)
2117 2461
 
  __Pyx_GOTREF(__pyx_t_1);
2118
 
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_width); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 149, __pyx_L1_error)
2462
 
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_width); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 149, __pyx_L1_error)
2119 2463
 
  __Pyx_GOTREF(__pyx_t_2);
2120 2464
 
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2121 2465
 
  __pyx_r = __pyx_t_2;
...
 
@@ -2158,7 +2502,7 @@ static int __pyx_pw_3vms_3ptd_7_vmsptd_2
2158 2502
 
  __Pyx_RefNannyDeclarations
2159 2503
 
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
2160 2504
 
  assert(__pyx_arg_width); {
2161
 
    __pyx_v_width = __Pyx_PyInt_As_unsigned_short(__pyx_arg_width); if (unlikely((__pyx_v_width == (unsigned short)-1) && PyErr_Occurred())) __PYX_ERR(0, 150, __pyx_L3_error)
2505
 
    __pyx_v_width = __Pyx_PyInt_As_unsigned_short(__pyx_arg_width); if (unlikely((__pyx_v_width == (unsigned short)-1) && PyErr_Occurred())) __PYX_ERR(1, 150, __pyx_L3_error)
2162 2506
 
  }
2163 2507
 
  goto __pyx_L4_argument_unpacking_done;
2164 2508
 
  __pyx_L3_error:;
...
 
@@ -2187,11 +2531,11 @@ static int __pyx_pf_3vms_3ptd_7_vmsptd_2
2187 2531
 
 *     property basic:
2188 2532
 
 *         def __get__(self):
2189 2533
 
 */
2190
 
  __pyx_t_1 = __Pyx_PyInt_From_unsigned_short(__pyx_v_width); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 151, __pyx_L1_error)
2534
 
  __pyx_t_1 = __Pyx_PyInt_From_unsigned_short(__pyx_v_width); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 151, __pyx_L1_error)
2191 2535
 
  __Pyx_GOTREF(__pyx_t_1);
2192
 
  __pyx_t_2 = __pyx_convert__to_py_DevChar(__pyx_v_self->devchar); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 151, __pyx_L1_error)
2536
 
  __pyx_t_2 = __pyx_convert__to_py_DevChar(__pyx_v_self->devchar); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 151, __pyx_L1_error)
2193 2537
 
  __Pyx_GOTREF(__pyx_t_2);
2194
 
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_2, __pyx_n_s_width, __pyx_t_1) < 0) __PYX_ERR(0, 151, __pyx_L1_error)
2538
 
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_2, __pyx_n_s_width, __pyx_t_1) < 0) __PYX_ERR(1, 151, __pyx_L1_error)
2195 2539
 
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2196 2540
 
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
2197 2541
 

	
...
 
@@ -2252,9 +2596,9 @@ static PyObject *__pyx_pf_3vms_3ptd_7_vm
2252 2596
 
 *             self.devchar.basic = basic
2253 2597
 
 */
2254 2598
 
  __Pyx_XDECREF(__pyx_r);
2255
 
  __pyx_t_1 = __pyx_convert__to_py_DevChar(__pyx_v_self->devchar); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 154, __pyx_L1_error)
2599
 
  __pyx_t_1 = __pyx_convert__to_py_DevChar(__pyx_v_self->devchar); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 154, __pyx_L1_error)
2256 2600
 
  __Pyx_GOTREF(__pyx_t_1);
2257
 
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_basic); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 154, __pyx_L1_error)
2601
 
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_basic); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 154, __pyx_L1_error)
2258 2602
 
  __Pyx_GOTREF(__pyx_t_2);
2259 2603
 
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2260 2604
 
  __pyx_r = __pyx_t_2;
...
 
@@ -2297,7 +2641,7 @@ static int __pyx_pw_3vms_3ptd_7_vmsptd_2
2297 2641
 
  __Pyx_RefNannyDeclarations
2298 2642
 
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
2299 2643
 
  assert(__pyx_arg_basic); {
2300
 
    __pyx_v_basic = __Pyx_PyInt_As_unsigned_int(__pyx_arg_basic); if (unlikely((__pyx_v_basic == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 155, __pyx_L3_error)
2644
 
    __pyx_v_basic = __Pyx_PyInt_As_unsigned_int(__pyx_arg_basic); if (unlikely((__pyx_v_basic == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(1, 155, __pyx_L3_error)
2301 2645
 
  }
2302 2646
 
  goto __pyx_L4_argument_unpacking_done;
2303 2647
 
  __pyx_L3_error:;
...
 
@@ -2326,11 +2670,11 @@ static int __pyx_pf_3vms_3ptd_7_vmsptd_2
2326 2670
 
 *     property length:
2327 2671
 
 *         def __get__(self):
2328 2672
 
 */
2329
 
  __pyx_t_1 = __Pyx_PyInt_From_unsigned_int(__pyx_v_basic); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 156, __pyx_L1_error)
2673
 
  __pyx_t_1 = __Pyx_PyInt_From_unsigned_int(__pyx_v_basic); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 156, __pyx_L1_error)
2330 2674
 
  __Pyx_GOTREF(__pyx_t_1);
2331
 
  __pyx_t_2 = __pyx_convert__to_py_DevChar(__pyx_v_self->devchar); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 156, __pyx_L1_error)
2675
 
  __pyx_t_2 = __pyx_convert__to_py_DevChar(__pyx_v_self->devchar); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 156, __pyx_L1_error)
2332 2676
 
  __Pyx_GOTREF(__pyx_t_2);
2333
 
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_2, __pyx_n_s_basic, __pyx_t_1) < 0) __PYX_ERR(0, 156, __pyx_L1_error)
2677
 
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_2, __pyx_n_s_basic, __pyx_t_1) < 0) __PYX_ERR(1, 156, __pyx_L1_error)
2334 2678
 
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2335 2679
 
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
2336 2680
 

	
...
 
@@ -2391,9 +2735,9 @@ static PyObject *__pyx_pf_3vms_3ptd_7_vm
2391 2735
 
 *             self.devchar.length = length
2392 2736
 
 */
2393 2737
 
  __Pyx_XDECREF(__pyx_r);
2394
 
  __pyx_t_1 = __pyx_convert__to_py_DevChar(__pyx_v_self->devchar); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 159, __pyx_L1_error)
2738
 
  __pyx_t_1 = __pyx_convert__to_py_DevChar(__pyx_v_self->devchar); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 159, __pyx_L1_error)
2395 2739
 
  __Pyx_GOTREF(__pyx_t_1);
2396
 
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_length); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 159, __pyx_L1_error)
2740
 
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_length); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 159, __pyx_L1_error)
2397 2741
 
  __Pyx_GOTREF(__pyx_t_2);
2398 2742
 
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2399 2743
 
  __pyx_r = __pyx_t_2;
...
 
@@ -2436,7 +2780,7 @@ static int __pyx_pw_3vms_3ptd_7_vmsptd_2
2436 2780
 
  __Pyx_RefNannyDeclarations
2437 2781
 
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
2438 2782
 
  assert(__pyx_arg_length); {
2439
 
    __pyx_v_length = __Pyx_PyInt_As_unsigned_char(__pyx_arg_length); if (unlikely((__pyx_v_length == (unsigned char)-1) && PyErr_Occurred())) __PYX_ERR(0, 160, __pyx_L3_error)
2783
 
    __pyx_v_length = __Pyx_PyInt_As_unsigned_char(__pyx_arg_length); if (unlikely((__pyx_v_length == (unsigned char)-1) && PyErr_Occurred())) __PYX_ERR(1, 160, __pyx_L3_error)
2440 2784
 
  }
2441 2785
 
  goto __pyx_L4_argument_unpacking_done;
2442 2786
 
  __pyx_L3_error:;
...
 
@@ -2465,11 +2809,11 @@ static int __pyx_pf_3vms_3ptd_7_vmsptd_2
2465 2809
 
 *     property extend:
2466 2810
 
 *         def __get__(self):
2467 2811
 
 */
2468
 
  __pyx_t_1 = __Pyx_PyInt_From_unsigned_char(__pyx_v_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 161, __pyx_L1_error)
2812
 
  __pyx_t_1 = __Pyx_PyInt_From_unsigned_char(__pyx_v_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 161, __pyx_L1_error)
2469 2813
 
  __Pyx_GOTREF(__pyx_t_1);
2470
 
  __pyx_t_2 = __pyx_convert__to_py_DevChar(__pyx_v_self->devchar); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 161, __pyx_L1_error)
2814
 
  __pyx_t_2 = __pyx_convert__to_py_DevChar(__pyx_v_self->devchar); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 161, __pyx_L1_error)
2471 2815
 
  __Pyx_GOTREF(__pyx_t_2);
2472
 
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_2, __pyx_n_s_length, __pyx_t_1) < 0) __PYX_ERR(0, 161, __pyx_L1_error)
2816
 
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_2, __pyx_n_s_length, __pyx_t_1) < 0) __PYX_ERR(1, 161, __pyx_L1_error)
2473 2817
 
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2474 2818
 
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
2475 2819
 

	
...
 
@@ -2530,9 +2874,9 @@ static PyObject *__pyx_pf_3vms_3ptd_7_vm
2530 2874
 
 *             self.devchar.extend = extend
2531 2875
 
 */
2532 2876
 
  __Pyx_XDECREF(__pyx_r);
2533
 
  __pyx_t_1 = __pyx_convert__to_py_DevChar(__pyx_v_self->devchar); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 164, __pyx_L1_error)
2877
 
  __pyx_t_1 = __pyx_convert__to_py_DevChar(__pyx_v_self->devchar); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 164, __pyx_L1_error)
2534 2878
 
  __Pyx_GOTREF(__pyx_t_1);
2535
 
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_extend); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 164, __pyx_L1_error)
2879
 
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_extend); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 164, __pyx_L1_error)
2536 2880
 
  __Pyx_GOTREF(__pyx_t_2);
2537 2881
 
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2538 2882
 
  __pyx_r = __pyx_t_2;
...
 
@@ -2575,7 +2919,7 @@ static int __pyx_pw_3vms_3ptd_7_vmsptd_2
2575 2919
 
  __Pyx_RefNannyDeclarations
2576 2920
 
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
2577 2921
 
  assert(__pyx_arg_extend); {
2578
 
    __pyx_v_extend = __Pyx_PyInt_As_unsigned_int(__pyx_arg_extend); if (unlikely((__pyx_v_extend == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 165, __pyx_L3_error)
2922
 
    __pyx_v_extend = __Pyx_PyInt_As_unsigned_int(__pyx_arg_extend); if (unlikely((__pyx_v_extend == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(1, 165, __pyx_L3_error)
2579 2923
 
  }
2580 2924
 
  goto __pyx_L4_argument_unpacking_done;
2581 2925
 
  __pyx_L3_error:;
...
 
@@ -2604,11 +2948,11 @@ static int __pyx_pf_3vms_3ptd_7_vmsptd_2
2604 2948
 
 * 
2605 2949
 
 * cdef checkStatus(unsigned int s):
2606 2950
 
 */
2607
 
  __pyx_t_1 = __Pyx_PyInt_From_unsigned_int(__pyx_v_extend); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 166, __pyx_L1_error)
2951
 
  __pyx_t_1 = __Pyx_PyInt_From_unsigned_int(__pyx_v_extend); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 166, __pyx_L1_error)
2608 2952
 
  __Pyx_GOTREF(__pyx_t_1);
2609
 
  __pyx_t_2 = __pyx_convert__to_py_DevChar(__pyx_v_self->devchar); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 166, __pyx_L1_error)
2953
 
  __pyx_t_2 = __pyx_convert__to_py_DevChar(__pyx_v_self->devchar); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 166, __pyx_L1_error)
2610 2954
 
  __Pyx_GOTREF(__pyx_t_2);
2611
 
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_2, __pyx_n_s_extend, __pyx_t_1) < 0) __PYX_ERR(0, 166, __pyx_L1_error)
2955
 
  if (__Pyx_PyObject_SetAttrStr(__pyx_t_2, __pyx_n_s_extend, __pyx_t_1) < 0) __PYX_ERR(1, 166, __pyx_L1_error)
2612 2956
 
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2613 2957
 
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
2614 2958
 

	
...
 
@@ -2633,6 +2977,113 @@ static int __pyx_pf_3vms_3ptd_7_vmsptd_2
2633 2977
 
  return __pyx_r;
2634 2978
 
}
2635 2979
 

	
2980
 
/* "(tree fragment)":1
2981
 
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
2982
 
 *     raise TypeError("Pickling of struct members such as self.devchar must be explicitly requested with @auto_pickle(True)")
2983
 
 * def __setstate_cython__(self, __pyx_state):
2984
 
 */
2985
 

	
2986
 
/* Python wrapper */
2987
 
static PyObject *__pyx_pw_3vms_3ptd_7_vmsptd_21DeviceCharacteristics_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
2988
 
static PyObject *__pyx_pw_3vms_3ptd_7_vmsptd_21DeviceCharacteristics_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
2989
 
  PyObject *__pyx_r = 0;
2990
 
  __Pyx_RefNannyDeclarations
2991
 
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
2992
 
  __pyx_r = __pyx_pf_3vms_3ptd_7_vmsptd_21DeviceCharacteristics_2__reduce_cython__(((struct __pyx_obj_3vms_3ptd_7_vmsptd_DeviceCharacteristics *)__pyx_v_self));
2993
 

	
2994
 
  /* function exit code */
2995
 
  __Pyx_RefNannyFinishContext();
2996
 
  return __pyx_r;
2997
 
}
2998
 

	
2999
 
static PyObject *__pyx_pf_3vms_3ptd_7_vmsptd_21DeviceCharacteristics_2__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_3vms_3ptd_7_vmsptd_DeviceCharacteristics *__pyx_v_self) {
3000
 
  PyObject *__pyx_r = NULL;
3001
 
  __Pyx_RefNannyDeclarations
3002
 
  PyObject *__pyx_t_1 = NULL;
3003
 
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);
3004
 

	
3005
 
  /* "(tree fragment)":2
3006
 
 * def __reduce_cython__(self):
3007
 
 *     raise TypeError("Pickling of struct members such as self.devchar must be explicitly requested with @auto_pickle(True)")             # <<<<<<<<<<<<<<
3008
 
 * def __setstate_cython__(self, __pyx_state):
3009
 
 *     raise TypeError("Pickling of struct members such as self.devchar must be explicitly requested with @auto_pickle(True)")
3010
 
 */
3011
 
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__3, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2, __pyx_L1_error)
3012
 
  __Pyx_GOTREF(__pyx_t_1);
3013
 
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
3014
 
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
3015
 
  __PYX_ERR(0, 2, __pyx_L1_error)
3016
 

	
3017
 
  /* "(tree fragment)":1
3018
 
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
3019
 
 *     raise TypeError("Pickling of struct members such as self.devchar must be explicitly requested with @auto_pickle(True)")
3020
 
 * def __setstate_cython__(self, __pyx_state):
3021
 
 */
3022
 

	
3023
 
  /* function exit code */
3024
 
  __pyx_L1_error:;
3025
 
  __Pyx_XDECREF(__pyx_t_1);
3026
 
  __Pyx_AddTraceback("vms.ptd._vmsptd.DeviceCharacteristics.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
3027
 
  __pyx_r = NULL;
3028
 
  __Pyx_XGIVEREF(__pyx_r);
3029
 
  __Pyx_RefNannyFinishContext();
3030
 
  return __pyx_r;
3031
 
}
3032
 

	
3033
 
/* "(tree fragment)":3
3034
 
 * def __reduce_cython__(self):
3035
 
 *     raise TypeError("Pickling of struct members such as self.devchar must be explicitly requested with @auto_pickle(True)")
3036
 
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
3037
 
 *     raise TypeError("Pickling of struct members such as self.devchar must be explicitly requested with @auto_pickle(True)")
3038
 
 */
3039
 

	
3040
 
/* Python wrapper */
3041
 
static PyObject *__pyx_pw_3vms_3ptd_7_vmsptd_21DeviceCharacteristics_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
3042
 
static PyObject *__pyx_pw_3vms_3ptd_7_vmsptd_21DeviceCharacteristics_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
3043
 
  PyObject *__pyx_r = 0;
3044
 
  __Pyx_RefNannyDeclarations
3045
 
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
3046
 
  __pyx_r = __pyx_pf_3vms_3ptd_7_vmsptd_21DeviceCharacteristics_4__setstate_cython__(((struct __pyx_obj_3vms_3ptd_7_vmsptd_DeviceCharacteristics *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));
3047
 

	
3048
 
  /* function exit code */
3049
 
  __Pyx_RefNannyFinishContext();
3050
 
  return __pyx_r;
3051
 
}
3052
 

	
3053
 
static PyObject *__pyx_pf_3vms_3ptd_7_vmsptd_21DeviceCharacteristics_4__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_3vms_3ptd_7_vmsptd_DeviceCharacteristics *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
3054
 
  PyObject *__pyx_r = NULL;
3055
 
  __Pyx_RefNannyDeclarations
3056
 
  PyObject *__pyx_t_1 = NULL;
3057
 
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);
3058
 

	
3059
 
  /* "(tree fragment)":4
3060
 
 *     raise TypeError("Pickling of struct members such as self.devchar must be explicitly requested with @auto_pickle(True)")
3061
 
 * def __setstate_cython__(self, __pyx_state):
3062
 
 *     raise TypeError("Pickling of struct members such as self.devchar must be explicitly requested with @auto_pickle(True)")             # <<<<<<<<<<<<<<
3063
 
 */
3064
 
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4, __pyx_L1_error)
3065
 
  __Pyx_GOTREF(__pyx_t_1);
3066
 
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
3067
 
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
3068
 
  __PYX_ERR(0, 4, __pyx_L1_error)
3069
 

	
3070
 
  /* "(tree fragment)":3
3071
 
 * def __reduce_cython__(self):
3072
 
 *     raise TypeError("Pickling of struct members such as self.devchar must be explicitly requested with @auto_pickle(True)")
3073
 
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
3074
 
 *     raise TypeError("Pickling of struct members such as self.devchar must be explicitly requested with @auto_pickle(True)")
3075
 
 */
3076
 

	
3077
 
  /* function exit code */
3078
 
  __pyx_L1_error:;
3079
 
  __Pyx_XDECREF(__pyx_t_1);
3080
 
  __Pyx_AddTraceback("vms.ptd._vmsptd.DeviceCharacteristics.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
3081
 
  __pyx_r = NULL;
3082
 
  __Pyx_XGIVEREF(__pyx_r);
3083
 
  __Pyx_RefNannyFinishContext();
3084
 
  return __pyx_r;
3085
 
}
3086
 

	
2636 3087
 
/* "vms/ptd/_vmsptd.pyx":168
2637 3088
 
 *             self.devchar.extend = extend
2638 3089
 
 * 
...
 
@@ -2659,7 +3110,7 @@ static PyObject *__pyx_f_3vms_3ptd_7_vms
2659 3110
 
 *         raise VMSError(s, msg)
2660 3111
 
 */
2661 3112
 
  __pyx_t_1 = (((__pyx_v_s & 1) == 0) != 0);
2662
 
  if (__pyx_t_1) {
3113
 
  if (unlikely(__pyx_t_1)) {
2663 3114
 

	
2664 3115
 
    /* "vms/ptd/_vmsptd.pyx":171
2665 3116
 
 *     cdef char msg[256]
...
 
@@ -2677,11 +3128,11 @@ static PyObject *__pyx_f_3vms_3ptd_7_vms
2677 3128
 
 * 
2678 3129
 
 * cdef inline checkstr(text):
2679 3130
 
 */
2680
 
    __pyx_t_2 = __Pyx_PyInt_From_unsigned_int(__pyx_v_s); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 172, __pyx_L1_error)
3131
 
    __pyx_t_2 = __Pyx_PyInt_From_unsigned_int(__pyx_v_s); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 172, __pyx_L1_error)
2681 3132
 
    __Pyx_GOTREF(__pyx_t_2);
2682
 
    __pyx_t_3 = __Pyx_PyObject_FromString(__pyx_v_msg); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 172, __pyx_L1_error)
3133
 
    __pyx_t_3 = __Pyx_PyObject_FromString(__pyx_v_msg); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 172, __pyx_L1_error)
2683 3134
 
    __Pyx_GOTREF(__pyx_t_3);
2684
 
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 172, __pyx_L1_error)
3135
 
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 172, __pyx_L1_error)
2685 3136
 
    __Pyx_GOTREF(__pyx_t_4);
2686 3137
 
    __Pyx_GIVEREF(__pyx_t_2);
2687 3138
 
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
...
 
@@ -2689,12 +3140,12 @@ static PyObject *__pyx_f_3vms_3ptd_7_vms
2689 3140
 
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3);
2690 3141
 
    __pyx_t_2 = 0;
2691 3142
 
    __pyx_t_3 = 0;
2692
 
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_VMSError, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 172, __pyx_L1_error)
3143
 
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_VMSError, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 172, __pyx_L1_error)
2693 3144
 
    __Pyx_GOTREF(__pyx_t_3);
2694 3145
 
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
2695 3146
 
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
2696 3147
 
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
2697
 
    __PYX_ERR(0, 172, __pyx_L1_error)
3148
 
    __PYX_ERR(1, 172, __pyx_L1_error)
2698 3149
 

	
2699 3150
 
    /* "vms/ptd/_vmsptd.pyx":170
2700 3151
 
 * cdef checkStatus(unsigned int s):
...
 
@@ -2754,7 +3205,7 @@ static CYTHON_INLINE PyObject *__pyx_f_3
2754 3205
 
 */
2755 3206
 
  __pyx_t_1 = __Pyx_PyBaseString_Check(__pyx_v_text); 
2756 3207
 
  __pyx_t_2 = ((!(__pyx_t_1 != 0)) != 0);
2757
 
  if (__pyx_t_2) {
3208
 
  if (unlikely(__pyx_t_2)) {
2758 3209
 

	
2759 3210
 
    /* "vms/ptd/_vmsptd.pyx":176
2760 3211
 
 * cdef inline checkstr(text):
...
 
@@ -2763,19 +3214,14 @@ static CYTHON_INLINE PyObject *__pyx_f_3
2763 3214
 
 *                         type(text))
2764 3215
 
 * 
2765 3216
 
 */
2766
 
    __pyx_t_3 = __Pyx_PyString_Format(__pyx_kp_s_iso885915_expected_string_or_Unicode_objec, ((PyObject *)Py_TYPE(__pyx_v_text))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 176, __pyx_L1_error)
3217
 
    __pyx_t_3 = __Pyx_PyString_Format(__pyx_kp_s_iso885915_expected_string_or_Unicode_objec, ((PyObject *)Py_TYPE(__pyx_v_text))); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 176, __pyx_L1_error)
2767 3218
 
    __Pyx_GOTREF(__pyx_t_3);
2768
 
    __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 176, __pyx_L1_error)
3219
 
    __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 176, __pyx_L1_error)
2769 3220
 
    __Pyx_GOTREF(__pyx_t_4);
2770
 
    __Pyx_GIVEREF(__pyx_t_3);
2771
 
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
2772
 
    __pyx_t_3 = 0;
2773
 
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 176, __pyx_L1_error)
2774
 
    __Pyx_GOTREF(__pyx_t_3);
3221
 
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
3222
 
    __Pyx_Raise(__pyx_t_4, 0, 0, 0);
2775 3223
 
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
2776
 
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
2777
 
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
2778
 
    __PYX_ERR(0, 176, __pyx_L1_error)
3224
 
    __PYX_ERR(1, 176, __pyx_L1_error)
2779 3225
 

	
2780 3226
 
    /* "vms/ptd/_vmsptd.pyx":175
2781 3227
 
 * 
...
 
@@ -2845,9 +3291,9 @@ static PyObject *__pyx_f_3vms_3ptd_7_vms
2845 3291
 
 *         return text
2846 3292
 
 */
2847 3293
 
    __Pyx_XDECREF(__pyx_r);
2848
 
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_text, __pyx_n_s_encode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 181, __pyx_L1_error)
3294
 
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_text, __pyx_n_s_encode); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 181, __pyx_L1_error)
2849 3295
 
    __Pyx_GOTREF(__pyx_t_3);
2850
 
    __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple_, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 181, __pyx_L1_error)
3296
 
    __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__5, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 181, __pyx_L1_error)
2851 3297
 
    __Pyx_GOTREF(__pyx_t_4);
2852 3298
 
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
2853 3299
 
    __pyx_r = __pyx_t_4;
...
 
@@ -2887,7 +3333,7 @@ static PyObject *__pyx_f_3vms_3ptd_7_vms
2887 3333
 
  __pyx_t_1 = (__pyx_t_5 != 0);
2888 3334
 
  __pyx_t_2 = __pyx_t_1;
2889 3335
 
  __pyx_L4_bool_binop_done:;
2890
 
  if (__pyx_t_2) {
3336
 
  if (likely(__pyx_t_2)) {
2891 3337
 

	
2892 3338
 
    /* "vms/ptd/_vmsptd.pyx":183
2893 3339
 
 *         return text.encode('ISO-8859-15')
...
 
@@ -2926,7 +3372,7 @@ static PyObject *__pyx_f_3vms_3ptd_7_vms
2926 3372
 
 * 
2927 3373
 
 * cdef inline DESCFROMSTR(dsc_descriptor_s* dsc, src):
2928 3374
 
 */
2929
 
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_iso885915_expected_string_or_Unicode_objec, ((PyObject *)Py_TYPE(__pyx_v_text))); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 185, __pyx_L1_error)
3375
 
    __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_iso885915_expected_string_or_Unicode_objec, ((PyObject *)Py_TYPE(__pyx_v_text))); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 185, __pyx_L1_error)
2930 3376
 
    __Pyx_GOTREF(__pyx_t_4);
2931 3377
 

	
2932 3378
 
    /* "vms/ptd/_vmsptd.pyx":185
...
 
@@ -2936,17 +3382,12 @@ static PyObject *__pyx_f_3vms_3ptd_7_vms
2936 3382
 
 *                          type(text))
2937 3383
 
 * 
2938 3384
 
 */
2939
 
    __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 185, __pyx_L1_error)
3385
 
    __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 185, __pyx_L1_error)
2940 3386
 
    __Pyx_GOTREF(__pyx_t_3);
2941
 
    __Pyx_GIVEREF(__pyx_t_4);
2942
 
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4);
2943
 
    __pyx_t_4 = 0;
2944
 
    __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_t_3, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 185, __pyx_L1_error)
2945
 
    __Pyx_GOTREF(__pyx_t_4);
3387
 
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
3388
 
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
2946 3389
 
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
2947
 
    __Pyx_Raise(__pyx_t_4, 0, 0, 0);
2948
 
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
2949
 
    __PYX_ERR(0, 185, __pyx_L1_error)
3390
 
    __PYX_ERR(1, 185, __pyx_L1_error)
2950 3391
 
  }
2951 3392
 

	
2952 3393
 
  /* "vms/ptd/_vmsptd.pyx":179
...
 
@@ -3022,7 +3463,7 @@ static CYTHON_INLINE PyObject *__pyx_f_3
3022 3463
 
 *     else:
3023 3464
 
 *         dsc.dsc_a_pointer = <char *><bytes>src
3024 3465
 
 */
3025
 
    __pyx_t_3 = PyByteArray_AsString(__pyx_v_src); if (unlikely(__pyx_t_3 == NULL)) __PYX_ERR(0, 193, __pyx_L1_error)
3466
 
    __pyx_t_3 = PyByteArray_AsString(__pyx_v_src); if (unlikely(__pyx_t_3 == ((char *)NULL))) __PYX_ERR(1, 193, __pyx_L1_error)
3026 3467
 
    __pyx_v_dsc->dsc$a_pointer = ((char *)__pyx_t_3);
3027 3468
 

	
3028 3469
 
    /* "vms/ptd/_vmsptd.pyx":192
...
 
@@ -3043,7 +3484,11 @@ static CYTHON_INLINE PyObject *__pyx_f_3
3043 3484
 
 * 
3044 3485
 
 */
3045 3486
 
  /*else*/ {
3046
 
    __pyx_t_3 = __Pyx_PyObject_AsString(__pyx_v_src); if (unlikely((!__pyx_t_3) && PyErr_Occurred())) __PYX_ERR(0, 195, __pyx_L1_error)
3487
 
    if (unlikely(__pyx_v_src == Py_None)) {
3488
 
      PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found");
3489
 
      __PYX_ERR(1, 195, __pyx_L1_error)
3490
 
    }
3491
 
    __pyx_t_3 = __Pyx_PyBytes_AsWritableString(__pyx_v_src); if (unlikely((!__pyx_t_3) && PyErr_Occurred())) __PYX_ERR(1, 195, __pyx_L1_error)
3047 3492
 
    __pyx_v_dsc->dsc$a_pointer = ((char *)__pyx_t_3);
3048 3493
 
  }
3049 3494
 
  __pyx_L3:;
...
 
@@ -3055,7 +3500,7 @@ static CYTHON_INLINE PyObject *__pyx_f_3
3055 3500
 
 * 
3056 3501
 
 * cdef inline dsc_descriptor_s* DESCFROMOPTSTR(dsc_descriptor_s* dsc, string) \
3057 3502
 
 */
3058
 
  __pyx_t_4 = PyObject_Length(__pyx_v_src); if (unlikely(__pyx_t_4 == -1)) __PYX_ERR(0, 196, __pyx_L1_error)
3503
 
  __pyx_t_4 = PyObject_Length(__pyx_v_src); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(1, 196, __pyx_L1_error)
3059 3504
 
  __pyx_v_dsc->dsc$w_length = __pyx_t_4;
3060 3505
 

	
3061 3506
 
  /* "vms/ptd/_vmsptd.pyx":188
...
 
@@ -3112,7 +3557,7 @@ static CYTHON_INLINE struct dsc$descript
3112 3557
 
 *         return dsc
3113 3558
 
 *     else:
3114 3559
 
 */
3115
 
    __pyx_t_3 = __pyx_f_3vms_3ptd_7_vmsptd_DESCFROMSTR(__pyx_v_dsc, __pyx_v_string); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 201, __pyx_L1_error)
3560
 
    __pyx_t_3 = __pyx_f_3vms_3ptd_7_vmsptd_DESCFROMSTR(__pyx_v_dsc, __pyx_v_string); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 201, __pyx_L1_error)
3116 3561
 
    __Pyx_GOTREF(__pyx_t_3);
3117 3562
 
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
3118 3563
 

	
...
 
@@ -3189,7 +3634,7 @@ static CYTHON_INLINE unsigned PY_LONG_LO
3189 3634
 
 *     lid = lid << 32
3190 3635
 
 *     lid += iid[0]
3191 3636
 
 */
3192
 
  __pyx_t_1 = __Pyx_PyInt_From_unsigned_int((__pyx_v_iid[1])); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 207, __pyx_L1_error)
3637
 
  __pyx_t_1 = __Pyx_PyInt_From_unsigned_int((__pyx_v_iid[1])); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 207, __pyx_L1_error)
3193 3638
 
  __Pyx_GOTREF(__pyx_t_1);
3194 3639
 
  __pyx_v_lid = __pyx_t_1;
3195 3640
 
  __pyx_t_1 = 0;
...
 
@@ -3201,7 +3646,7 @@ static CYTHON_INLINE unsigned PY_LONG_LO
3201 3646
 
 *     lid += iid[0]
3202 3647
 
 *     return lid
3203 3648
 
 */
3204
 
  __pyx_t_1 = __Pyx_PyInt_LshiftObjC(__pyx_v_lid, __pyx_int_32, 32, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 208, __pyx_L1_error)
3649
 
  __pyx_t_1 = __Pyx_PyInt_LshiftObjC(__pyx_v_lid, __pyx_int_32, 32, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 208, __pyx_L1_error)
3205 3650
 
  __Pyx_GOTREF(__pyx_t_1);
3206 3651
 
  __Pyx_DECREF_SET(__pyx_v_lid, __pyx_t_1);
3207 3652
 
  __pyx_t_1 = 0;
...
 
@@ -3213,9 +3658,9 @@ static CYTHON_INLINE unsigned PY_LONG_LO
3213 3658
 
 *     return lid
3214 3659
 
 * 
3215 3660
 
 */
3216
 
  __pyx_t_1 = __Pyx_PyInt_From_unsigned_int((__pyx_v_iid[0])); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 209, __pyx_L1_error)
3661
 
  __pyx_t_1 = __Pyx_PyInt_From_unsigned_int((__pyx_v_iid[0])); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 209, __pyx_L1_error)
3217 3662
 
  __Pyx_GOTREF(__pyx_t_1);
3218
 
  __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_lid, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 209, __pyx_L1_error)
3663
 
  __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_lid, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 209, __pyx_L1_error)
3219 3664
 
  __Pyx_GOTREF(__pyx_t_2);
3220 3665
 
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
3221 3666
 
  __Pyx_DECREF_SET(__pyx_v_lid, __pyx_t_2);
...
 
@@ -3228,7 +3673,7 @@ static CYTHON_INLINE unsigned PY_LONG_LO
3228 3673
 
 * 
3229 3674
 
 * cdef inline long2id(unsigned long long lid):
3230 3675
 
 */
3231
 
  __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_lid); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 210, __pyx_L1_error)
3676
 
  __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_lid); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(1, 210, __pyx_L1_error)
3232 3677
 
  __pyx_r = __pyx_t_3;
3233 3678
 
  goto __pyx_L0;
3234 3679
 

	
...
 
@@ -3244,7 +3689,7 @@ static CYTHON_INLINE unsigned PY_LONG_LO
3244 3689
 
  __pyx_L1_error:;
3245 3690
 
  __Pyx_XDECREF(__pyx_t_1);
3246 3691
 
  __Pyx_XDECREF(__pyx_t_2);
3247
 
  __Pyx_WriteUnraisable("vms.ptd._vmsptd.id2long", __pyx_clineno, __pyx_lineno, __pyx_filename, 0, 0);
3692
 
  __Pyx_WriteUnraisable("vms.ptd._vmsptd.id2long", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
3248 3693
 
  __pyx_r = 0;
3249 3694
 
  __pyx_L0:;
3250 3695
 
  __Pyx_XDECREF(__pyx_v_lid);
...
 
@@ -3276,14 +3721,14 @@ static CYTHON_INLINE PyObject *__pyx_f_3
3276 3721
 
 * cdef inline int* IOPTPTR(int* iv, val) except *:
3277 3722
 
 */
3278 3723
 
  __Pyx_XDECREF(__pyx_r);
3279
 
  __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(__pyx_v_lid); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 213, __pyx_L1_error)
3724
 
  __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG(__pyx_v_lid); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 213, __pyx_L1_error)
3280 3725
 
  __Pyx_GOTREF(__pyx_t_1);
3281
 
  __pyx_t_2 = PyNumber_And(__pyx_t_1, __pyx_int_4294967295); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 213, __pyx_L1_error)
3726
 
  __pyx_t_2 = PyNumber_And(__pyx_t_1, __pyx_int_4294967295); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 213, __pyx_L1_error)
3282 3727
 
  __Pyx_GOTREF(__pyx_t_2);
3283 3728
 
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
3284
 
  __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG((__pyx_v_lid >> 32)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 213, __pyx_L1_error)
3729
 
  __pyx_t_1 = __Pyx_PyInt_From_unsigned_PY_LONG_LONG((__pyx_v_lid >> 32)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 213, __pyx_L1_error)
3285 3730
 
  __Pyx_GOTREF(__pyx_t_1);
3286
 
  __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 213, __pyx_L1_error)
3731
 
  __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 213, __pyx_L1_error)
3287 3732
 
  __Pyx_GOTREF(__pyx_t_3);
3288 3733
 
  __Pyx_GIVEREF(__pyx_t_2);
3289 3734
 
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2);
...
 
@@ -3370,7 +3815,7 @@ static CYTHON_INLINE int *__pyx_f_3vms_3
3370 3815
 
 * 
3371 3816
 
 */
3372 3817
 
  /*else*/ {
3373
 
    __pyx_t_3 = __Pyx_PyInt_As_int(__pyx_v_val); if (unlikely((__pyx_t_3 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 219, __pyx_L1_error)
3818
 
    __pyx_t_3 = __Pyx_PyInt_As_int(__pyx_v_val); if (unlikely((__pyx_t_3 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 219, __pyx_L1_error)
3374 3819
 
    (__pyx_v_iv[0]) = __pyx_t_3;
3375 3820
 

	
3376 3821
 
    /* "vms/ptd/_vmsptd.pyx":220
...
 
@@ -3455,7 +3900,7 @@ static CYTHON_INLINE unsigned int *__pyx
3455 3900
 
 * 
3456 3901
 
 */
3457 3902
 
  /*else*/ {
3458
 
    __pyx_t_3 = __Pyx_PyInt_As_unsigned_int(__pyx_v_val); if (unlikely((__pyx_t_3 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 226, __pyx_L1_error)
3903
 
    __pyx_t_3 = __Pyx_PyInt_As_unsigned_int(__pyx_v_val); if (unlikely((__pyx_t_3 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(1, 226, __pyx_L1_error)
3459 3904
 
    (__pyx_v_iv[0]) = __pyx_t_3;
3460 3905
 

	
3461 3906
 
    /* "vms/ptd/_vmsptd.pyx":227
...
 
@@ -3540,7 +3985,7 @@ static CYTHON_INLINE PY_LONG_LONG *__pyx
3540 3985
 
 * 
3541 3986
 
 */
3542 3987
 
  /*else*/ {
3543
 
    __pyx_t_3 = __Pyx_PyInt_As_PY_LONG_LONG(__pyx_v_val); if (unlikely((__pyx_t_3 == (PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 233, __pyx_L1_error)
3988
 
    __pyx_t_3 = __Pyx_PyInt_As_PY_LONG_LONG(__pyx_v_val); if (unlikely((__pyx_t_3 == (PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(1, 233, __pyx_L1_error)
3544 3989
 
    (__pyx_v_iv[0]) = __pyx_t_3;
3545 3990
 

	
3546 3991
 
    /* "vms/ptd/_vmsptd.pyx":234
...
 
@@ -3625,7 +4070,7 @@ static CYTHON_INLINE unsigned PY_LONG_LO
3625 4070
 
 * 
3626 4071
 
 */
3627 4072
 
  /*else*/ {
3628
 
    __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_val); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 241, __pyx_L1_error)
4073
 
    __pyx_t_3 = __Pyx_PyInt_As_unsigned_PY_LONG_LONG(__pyx_v_val); if (unlikely((__pyx_t_3 == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(1, 241, __pyx_L1_error)
3629 4074
 
    (__pyx_v_iv[0]) = __pyx_t_3;
3630 4075
 

	
3631 4076
 
    /* "vms/ptd/_vmsptd.pyx":242
...
 
@@ -3710,7 +4155,7 @@ static CYTHON_INLINE short *__pyx_f_3vms
3710 4155
 
 * 
3711 4156
 
 */
3712 4157
 
  /*else*/ {
3713
 
    __pyx_t_3 = __Pyx_PyInt_As_short(__pyx_v_val); if (unlikely((__pyx_t_3 == (short)-1) && PyErr_Occurred())) __PYX_ERR(0, 248, __pyx_L1_error)
4158
 
    __pyx_t_3 = __Pyx_PyInt_As_short(__pyx_v_val); if (unlikely((__pyx_t_3 == (short)-1) && PyErr_Occurred())) __PYX_ERR(1, 248, __pyx_L1_error)
3714 4159
 
    (__pyx_v_iv[0]) = __pyx_t_3;
3715 4160
 

	
3716 4161
 
    /* "vms/ptd/_vmsptd.pyx":249
...
 
@@ -3795,7 +4240,7 @@ static CYTHON_INLINE unsigned short *__p
3795 4240
 
 * 
3796 4241
 
 */
3797 4242
 
  /*else*/ {
3798
 
    __pyx_t_3 = __Pyx_PyInt_As_unsigned_short(__pyx_v_val); if (unlikely((__pyx_t_3 == (unsigned short)-1) && PyErr_Occurred())) __PYX_ERR(0, 255, __pyx_L1_error)
4243
 
    __pyx_t_3 = __Pyx_PyInt_As_unsigned_short(__pyx_v_val); if (unlikely((__pyx_t_3 == (unsigned short)-1) && PyErr_Occurred())) __PYX_ERR(1, 255, __pyx_L1_error)
3799 4244
 
    (__pyx_v_iv[0]) = __pyx_t_3;
3800 4245
 

	
3801 4246
 
    /* "vms/ptd/_vmsptd.pyx":256
...
 
@@ -3880,7 +4325,7 @@ static CYTHON_INLINE unsigned char *__py
3880 4325
 
 * 
3881 4326
 
 */
3882 4327
 
  /*else*/ {
3883
 
    __pyx_t_3 = __Pyx_PyInt_As_unsigned_char(__pyx_v_val); if (unlikely((__pyx_t_3 == (unsigned char)-1) && PyErr_Occurred())) __PYX_ERR(0, 262, __pyx_L1_error)
4328
 
    __pyx_t_3 = __Pyx_PyInt_As_unsigned_char(__pyx_v_val); if (unlikely((__pyx_t_3 == (unsigned char)-1) && PyErr_Occurred())) __PYX_ERR(1, 262, __pyx_L1_error)
3884 4329
 
    (__pyx_v_iv[0]) = __pyx_t_3;
3885 4330
 

	
3886 4331
 
    /* "vms/ptd/_vmsptd.pyx":263
...
 
@@ -3905,7 +4350,7 @@ static CYTHON_INLINE unsigned char *__py
3905 4350
 
  /* function exit code */
3906 4351
 
  __pyx_L1_error:;
3907 4352
 
  __Pyx_AddTraceback("vms.ptd._vmsptd.UCOPTPTR", __pyx_clineno, __pyx_lineno, __pyx_filename);
3908
 
  __pyx_r = 0;
4353
 
  __pyx_r = NULL;
3909 4354
 
  __pyx_L0:;
3910 4355
 
  __Pyx_RefNannyFinishContext();
3911 4356
 
  return __pyx_r;
...
 
@@ -3927,7 +4372,7 @@ static PyObject *__pyx_pw_3vms_3ptd_7_vm
3927 4372
 
  PyObject *__pyx_r = 0;
3928 4373
 
  __Pyx_RefNannyDeclarations
3929 4374
 
  __Pyx_RefNannySetupContext("cancel (wrapper)", 0);
3930
 
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_handler), __pyx_ptype_3vms_3ptd_7_vmsptd_PtdHandler, 1, "handler", 0))) __PYX_ERR(0, 265, __pyx_L1_error)
4375
 
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_handler), __pyx_ptype_3vms_3ptd_7_vmsptd_PtdHandler, 1, "handler", 0))) __PYX_ERR(1, 265, __pyx_L1_error)
3931 4376
 
  __pyx_r = __pyx_pf_3vms_3ptd_7_vmsptd_cancel(__pyx_self, ((struct __pyx_obj_3vms_3ptd_7_vmsptd_PtdHandler *)__pyx_v_handler));
3932 4377
 

	
3933 4378
 
  /* function exit code */
...
 
@@ -3971,7 +4416,7 @@ static PyObject *__pyx_pf_3vms_3ptd_7_vm
3971 4416
 
 *     return s
3972 4417
 
 * 
3973 4418
 
 */
3974
 
  __pyx_t_1 = __pyx_f_3vms_3ptd_7_vmsptd_checkStatus(__pyx_v_s); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 269, __pyx_L1_error)
4419
 
  __pyx_t_1 = __pyx_f_3vms_3ptd_7_vmsptd_checkStatus(__pyx_v_s); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 269, __pyx_L1_error)
3975 4420
 
  __Pyx_GOTREF(__pyx_t_1);
3976 4421
 
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
3977 4422
 

	
...
 
@@ -3983,7 +4428,7 @@ static PyObject *__pyx_pf_3vms_3ptd_7_vm
3983 4428
 
 * def create(unsigned int acmode=0, DeviceCharacteristics charbuff=None):
3984 4429
 
 */
3985 4430
 
  __Pyx_XDECREF(__pyx_r);
3986
 
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_s); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 270, __pyx_L1_error)
4431
 
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_s); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 270, __pyx_L1_error)
3987 4432
 
  __Pyx_GOTREF(__pyx_t_1);
3988 4433
 
  __pyx_r = __pyx_t_1;
3989 4434
 
  __pyx_t_1 = 0;
...
 
@@ -4035,7 +4480,9 @@ static PyObject *__pyx_pw_3vms_3ptd_7_vm
4035 4480
 
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
4036 4481
 
      switch (pos_args) {
4037 4482
 
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
4483
 
        CYTHON_FALLTHROUGH;
4038 4484
 
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
4485
 
        CYTHON_FALLTHROUGH;
4039 4486
 
        case  0: break;
4040 4487
 
        default: goto __pyx_L5_argtuple_error;
4041 4488
 
      }
...
 
@@ -4043,28 +4490,31 @@ static PyObject *__pyx_pw_3vms_3ptd_7_vm
4043 4490
 
      switch (pos_args) {
4044 4491
 
        case  0:
4045 4492
 
        if (kw_args > 0) {
4046
 
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_acmode);
4493
 
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_acmode);
4047 4494
 
          if (value) { values[0] = value; kw_args--; }
4048 4495
 
        }
4496
 
        CYTHON_FALLTHROUGH;
4049 4497
 
        case  1:
4050 4498
 
        if (kw_args > 0) {
4051
 
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_charbuff);
4499
 
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_charbuff);
4052 4500
 
          if (value) { values[1] = value; kw_args--; }
4053 4501
 
        }
4054 4502
 
      }
4055 4503
 
      if (unlikely(kw_args > 0)) {
4056
 
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "create") < 0)) __PYX_ERR(0, 272, __pyx_L3_error)
4504
 
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "create") < 0)) __PYX_ERR(1, 272, __pyx_L3_error)
4057 4505
 
      }
4058 4506
 
    } else {
4059 4507
 
      switch (PyTuple_GET_SIZE(__pyx_args)) {
4060 4508
 
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
4509
 
        CYTHON_FALLTHROUGH;
4061 4510
 
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
4511
 
        CYTHON_FALLTHROUGH;
4062 4512
 
        case  0: break;
4063 4513
 
        default: goto __pyx_L5_argtuple_error;
4064 4514
 
      }
4065 4515
 
    }
4066 4516
 
    if (values[0]) {
4067
 
      __pyx_v_acmode = __Pyx_PyInt_As_unsigned_int(values[0]); if (unlikely((__pyx_v_acmode == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 272, __pyx_L3_error)
4517
 
      __pyx_v_acmode = __Pyx_PyInt_As_unsigned_int(values[0]); if (unlikely((__pyx_v_acmode == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(1, 272, __pyx_L3_error)
4068 4518
 
    } else {
4069 4519
 
      __pyx_v_acmode = ((unsigned int)0);
4070 4520
 
    }
...
 
@@ -4072,13 +4522,13 @@ static PyObject *__pyx_pw_3vms_3ptd_7_vm
4072 4522
 
  }
4073 4523
 
  goto __pyx_L4_argument_unpacking_done;
4074 4524
 
  __pyx_L5_argtuple_error:;
4075
 
  __Pyx_RaiseArgtupleInvalid("create", 0, 0, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 272, __pyx_L3_error)
4525
 
  __Pyx_RaiseArgtupleInvalid("create", 0, 0, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 272, __pyx_L3_error)
4076 4526
 
  __pyx_L3_error:;
4077 4527
 
  __Pyx_AddTraceback("vms.ptd._vmsptd.create", __pyx_clineno, __pyx_lineno, __pyx_filename);
4078 4528
 
  __Pyx_RefNannyFinishContext();
4079 4529
 
  return NULL;
4080 4530
 
  __pyx_L4_argument_unpacking_done:;
4081
 
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_charbuff), __pyx_ptype_3vms_3ptd_7_vmsptd_DeviceCharacteristics, 1, "charbuff", 0))) __PYX_ERR(0, 272, __pyx_L1_error)
4531
 
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_charbuff), __pyx_ptype_3vms_3ptd_7_vmsptd_DeviceCharacteristics, 1, "charbuff", 0))) __PYX_ERR(1, 272, __pyx_L1_error)
4082 4532
 
  __pyx_r = __pyx_pf_3vms_3ptd_7_vmsptd_2create(__pyx_self, __pyx_v_acmode, __pyx_v_charbuff);
4083 4533
 

	
4084 4534
 
  /* function exit code */
...
 
@@ -4131,7 +4581,7 @@ static PyObject *__pyx_pf_3vms_3ptd_7_vm
4131 4581
 
 *     cdef DevChar* devchar
4132 4582
 
 *     cdef unsigned short buflen
4133 4583
 
 */
4134
 
  __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_3vms_3ptd_7_vmsptd_PtdHandler), __pyx_empty_tuple, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 278, __pyx_L1_error)
4584
 
  __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_3vms_3ptd_7_vmsptd_PtdHandler)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 278, __pyx_L1_error)
4135 4585
 
  __Pyx_GOTREF(__pyx_t_1);
4136 4586
 
  __pyx_v_handler = ((struct __pyx_obj_3vms_3ptd_7_vmsptd_PtdHandler *)__pyx_t_1);
4137 4587
 
  __pyx_t_1 = 0;
...
 
@@ -4212,7 +4662,7 @@ static PyObject *__pyx_pf_3vms_3ptd_7_vm
4212 4662
 
 *     ptrc = <char *>handler.handler + pgsize + pgsize - 1 # keep one data page
4213 4663
 
 *     ptrc = ptrc - <unsigned int>ptrc % pgsize
4214 4664
 
 */
4215
 
  __pyx_t_1 = __pyx_f_3vms_3ptd_7_vmsptd_checkStatus(__pyx_v_s); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 288, __pyx_L1_error)
4665
 
  __pyx_t_1 = __pyx_f_3vms_3ptd_7_vmsptd_checkStatus(__pyx_v_s); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 288, __pyx_L1_error)
4216 4666
 
  __Pyx_GOTREF(__pyx_t_1);
4217 4667
 
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
4218 4668
 

	
...
 
@@ -4234,7 +4684,7 @@ static PyObject *__pyx_pf_3vms_3ptd_7_vm
4234 4684
 
 */
4235 4685
 
  if (unlikely(__pyx_v_pgsize == 0)) {
4236 4686
 
    PyErr_SetString(PyExc_ZeroDivisionError, "integer division or modulo by zero");
4237
 
    __PYX_ERR(0, 290, __pyx_L1_error)
4687
 
    __PYX_ERR(1, 290, __pyx_L1_error)
4238 4688
 
  }
4239 4689
 
  __pyx_v_ptrc = (__pyx_v_ptrc - (((unsigned int)__pyx_v_ptrc) % __pyx_v_pgsize));
4240 4690
 

	
...
 
@@ -4318,7 +4768,7 @@ static PyObject *__pyx_pf_3vms_3ptd_7_vm
4318 4768
 
 *                          &(handler.handler))
4319 4769
 
 *     checkStatus(s)
4320 4770
 
 */
4321
 
    lib$free_vm_page(((int *)(&__pyx_v_handler->handler->nbpages)), (&__pyx_v_handler->handler));
4771
 
    (void)(lib$free_vm_page(((int *)(&__pyx_v_handler->handler->nbpages)), (&__pyx_v_handler->handler)));
4322 4772
 

	
4323 4773
 
    /* "vms/ptd/_vmsptd.pyx":298
4324 4774
 
 *     handler.handler.timer_status = 0
...
 
@@ -4336,7 +4786,7 @@ static PyObject *__pyx_pf_3vms_3ptd_7_vm
4336 4786
 
 *     s = ptd_create(<unsigned short*>&(handler.handler.channel), acmode,
4337 4787
 
 *                    devchar, buflen, 0, 0, 0,
4338 4788
 
 */
4339
 
  __pyx_t_1 = __pyx_f_3vms_3ptd_7_vmsptd_checkStatus(__pyx_v_s); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 301, __pyx_L1_error)
4789
 
  __pyx_t_1 = __pyx_f_3vms_3ptd_7_vmsptd_checkStatus(__pyx_v_s); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 301, __pyx_L1_error)
4340 4790
 
  __Pyx_GOTREF(__pyx_t_1);
4341 4791
 
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
4342 4792
 

	
...
 
@@ -4366,7 +4816,7 @@ static PyObject *__pyx_pf_3vms_3ptd_7_vm
4366 4816
 
 *         lib_free_vm_page(<int *>&(handler.handler.nbpages),
4367 4817
 
 *                          &(handler.handler))
4368 4818
 
 */
4369
 
    lib$free_ef(((unsigned int *)(&__pyx_v_handler->handler->efn)));
4819
 
    (void)(lib$free_ef(((unsigned int *)(&__pyx_v_handler->handler->efn))));
4370 4820
 

	
4371 4821
 
    /* "vms/ptd/_vmsptd.pyx":307
4372 4822
 
 *     if s & 1 == 0:
...
 
@@ -4375,7 +4825,7 @@ static PyObject *__pyx_pf_3vms_3ptd_7_vm
4375 4825
 
 *                          &(handler.handler))
4376 4826
 
 *     checkStatus(s)
4377 4827
 
 */
4378
 
    lib$free_vm_page(((int *)(&__pyx_v_handler->handler->nbpages)), (&__pyx_v_handler->handler));
4828
 
    (void)(lib$free_vm_page(((int *)(&__pyx_v_handler->handler->nbpages)), (&__pyx_v_handler->handler)));
4379 4829
 

	
4380 4830
 
    /* "vms/ptd/_vmsptd.pyx":305
4381 4831
 
 *                    devchar, buflen, 0, 0, 0,
...
 
@@ -4393,7 +4843,7 @@ static PyObject *__pyx_pf_3vms_3ptd_7_vm
4393 4843
 
 *     return s, handler
4394 4844
 
 * 
4395 4845
 
 */
4396
 
  __pyx_t_1 = __pyx_f_3vms_3ptd_7_vmsptd_checkStatus(__pyx_v_s); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 309, __pyx_L1_error)
4846
 
  __pyx_t_1 = __pyx_f_3vms_3ptd_7_vmsptd_checkStatus(__pyx_v_s); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 309, __pyx_L1_error)
4397 4847
 
  __Pyx_GOTREF(__pyx_t_1);
4398 4848
 
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
4399 4849
 

	
...
 
@@ -4405,9 +4855,9 @@ static PyObject *__pyx_pf_3vms_3ptd_7_vm
4405 4855
 
 * def delete(PtdHandler handler):
4406 4856
 
 */
4407 4857
 
  __Pyx_XDECREF(__pyx_r);
4408
 
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_s); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 310, __pyx_L1_error)
4858
 
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_s); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 310, __pyx_L1_error)
4409 4859
 
  __Pyx_GOTREF(__pyx_t_1);
4410
 
  __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 310, __pyx_L1_error)
4860
 
  __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 310, __pyx_L1_error)
4411 4861
 
  __Pyx_GOTREF(__pyx_t_4);
4412 4862
 
  __Pyx_GIVEREF(__pyx_t_1);
4413 4863
 
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1);
...
 
@@ -4456,7 +4906,7 @@ static PyObject *__pyx_pw_3vms_3ptd_7_vm
4456 4906
 
  PyObject *__pyx_r = 0;
4457 4907
 
  __Pyx_RefNannyDeclarations
4458 4908
 
  __Pyx_RefNannySetupContext("delete (wrapper)", 0);
4459
 
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_handler), __pyx_ptype_3vms_3ptd_7_vmsptd_PtdHandler, 1, "handler", 0))) __PYX_ERR(0, 312, __pyx_L1_error)
4909
 
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_handler), __pyx_ptype_3vms_3ptd_7_vmsptd_PtdHandler, 1, "handler", 0))) __PYX_ERR(1, 312, __pyx_L1_error)
4460 4910
 
  __pyx_r = __pyx_pf_3vms_3ptd_7_vmsptd_4delete(__pyx_self, ((struct __pyx_obj_3vms_3ptd_7_vmsptd_PtdHandler *)__pyx_v_handler));
4461 4911
 

	
4462 4912
 
  /* function exit code */
...
 
@@ -4491,7 +4941,7 @@ static PyObject *__pyx_pf_3vms_3ptd_7_vm
4491 4941
 
 *     handler.handler.read_status = 0
4492 4942
 
 *     s = ptd_delete(handler.handler.channel)
4493 4943
 
 */
4494
 
  __pyx_t_1 = __pyx_f_3vms_3ptd_7_vmsptd_checkStatus(__pyx_v_s); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 315, __pyx_L1_error)
4944
 
  __pyx_t_1 = __pyx_f_3vms_3ptd_7_vmsptd_checkStatus(__pyx_v_s); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 315, __pyx_L1_error)
4495 4945
 
  __Pyx_GOTREF(__pyx_t_1);
4496 4946
 
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
4497 4947
 

	
...
 
@@ -4520,7 +4970,7 @@ static PyObject *__pyx_pf_3vms_3ptd_7_vm
4520 4970
 
 *     s = lib_free_ef(<unsigned int *>&(handler.handler.efn))
4521 4971
 
 *     checkStatus(s)
4522 4972
 
 */
4523
 
  __pyx_t_1 = __pyx_f_3vms_3ptd_7_vmsptd_checkStatus(__pyx_v_s); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 318, __pyx_L1_error)
4973
 
  __pyx_t_1 = __pyx_f_3vms_3ptd_7_vmsptd_checkStatus(__pyx_v_s); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 318, __pyx_L1_error)
4524 4974
 
  __Pyx_GOTREF(__pyx_t_1);
4525 4975
 
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
4526 4976
 

	
...
 
@@ -4540,7 +4990,7 @@ static PyObject *__pyx_pf_3vms_3ptd_7_vm
4540 4990
 
 *     s = lib_free_vm_page(<int *>&(handler.handler.nbpages),
4541 4991
 
 *                          &(handler.handler))
4542 4992
 
 */
4543
 
  __pyx_t_1 = __pyx_f_3vms_3ptd_7_vmsptd_checkStatus(__pyx_v_s); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 320, __pyx_L1_error)
4993
 
  __pyx_t_1 = __pyx_f_3vms_3ptd_7_vmsptd_checkStatus(__pyx_v_s); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 320, __pyx_L1_error)
4544 4994
 
  __Pyx_GOTREF(__pyx_t_1);
4545 4995
 
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
4546 4996
 

	
...
 
@@ -4561,7 +5011,7 @@ static PyObject *__pyx_pf_3vms_3ptd_7_vm
4561 5011
 
 * def readw(PtdHandler handler):
4562 5012
 
 */
4563 5013
 
  __Pyx_XDECREF(__pyx_r);
4564
 
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_s); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 323, __pyx_L1_error)
5014
 
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_s); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 323, __pyx_L1_error)
4565 5015
 
  __Pyx_GOTREF(__pyx_t_1);
4566 5016
 
  __pyx_r = __pyx_t_1;
4567 5017
 
  __pyx_t_1 = 0;
...
 
@@ -4602,7 +5052,7 @@ static PyObject *__pyx_pw_3vms_3ptd_7_vm
4602 5052
 
  PyObject *__pyx_r = 0;
4603 5053
 
  __Pyx_RefNannyDeclarations
4604 5054
 
  __Pyx_RefNannySetupContext("readw (wrapper)", 0);
4605
 
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_handler), __pyx_ptype_3vms_3ptd_7_vmsptd_PtdHandler, 1, "handler", 0))) __PYX_ERR(0, 325, __pyx_L1_error)
5055
 
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_handler), __pyx_ptype_3vms_3ptd_7_vmsptd_PtdHandler, 1, "handler", 0))) __PYX_ERR(1, 325, __pyx_L1_error)
4606 5056
 
  __pyx_r = __pyx_pf_3vms_3ptd_7_vmsptd_6readw(__pyx_self, ((struct __pyx_obj_3vms_3ptd_7_vmsptd_PtdHandler *)__pyx_v_handler));
4607 5057
 

	
4608 5058
 
  /* function exit code */
...
 
@@ -4713,7 +5163,7 @@ static PyObject *__pyx_pf_3vms_3ptd_7_vm
4713 5163
 
 *     cdef char* buf = <char *>(handler.handler.inadr.va_range_ps_start_va) + 4
4714 5164
 
 *     cdef unsigned short* retlenPtr = <unsigned short *>(buf - 2)
4715 5165
 
 */
4716
 
  __pyx_t_2 = __pyx_f_3vms_3ptd_7_vmsptd_checkStatus(__pyx_v_s); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 337, __pyx_L1_error)
5166
 
  __pyx_t_2 = __pyx_f_3vms_3ptd_7_vmsptd_checkStatus(__pyx_v_s); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 337, __pyx_L1_error)
4717 5167
 
  __Pyx_GOTREF(__pyx_t_2);
4718 5168
 
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
4719 5169
 

	
...
 
@@ -4743,11 +5193,11 @@ static PyObject *__pyx_pf_3vms_3ptd_7_vm
4743 5193
 
 * def read_timeout(PtdHandler handler, unsigned short timeout):
4744 5194
 
 */
4745 5195
 
  __Pyx_XDECREF(__pyx_r);
4746
 
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_s); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 340, __pyx_L1_error)
5196
 
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_s); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 340, __pyx_L1_error)
4747 5197
 
  __Pyx_GOTREF(__pyx_t_2);
4748
 
  __pyx_t_3 = __Pyx_PyBytes_FromStringAndSize(__pyx_v_buf + 0, (__pyx_v_retlenPtr[0]) - 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 340, __pyx_L1_error)
5198
 
  __pyx_t_3 = __Pyx_PyBytes_FromStringAndSize(__pyx_v_buf + 0, (__pyx_v_retlenPtr[0]) - 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 340, __pyx_L1_error)
4749 5199
 
  __Pyx_GOTREF(__pyx_t_3);
4750
 
  __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 340, __pyx_L1_error)
5200
 
  __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 340, __pyx_L1_error)
4751 5201
 
  __Pyx_GOTREF(__pyx_t_4);
4752 5202
 
  __Pyx_GIVEREF(__pyx_t_2);
4753 5203
 
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
...
 
@@ -4806,23 +5256,26 @@ static PyObject *__pyx_pw_3vms_3ptd_7_vm
4806 5256
 
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
4807 5257
 
      switch (pos_args) {
4808 5258
 
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
5259
 
        CYTHON_FALLTHROUGH;
4809 5260
 
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
5261
 
        CYTHON_FALLTHROUGH;
4810 5262
 
        case  0: break;
4811 5263
 
        default: goto __pyx_L5_argtuple_error;
4812 5264
 
      }
4813 5265
 
      kw_args = PyDict_Size(__pyx_kwds);
4814 5266
 
      switch (pos_args) {
4815 5267
 
        case  0:
4816
 
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_handler)) != 0)) kw_args--;
5268
 
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_handler)) != 0)) kw_args--;
4817 5269
 
        else goto __pyx_L5_argtuple_error;
5270
 
        CYTHON_FALLTHROUGH;
4818 5271
 
        case  1:
4819
 
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_timeout)) != 0)) kw_args--;
5272
 
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_timeout)) != 0)) kw_args--;
4820 5273
 
        else {
4821
 
          __Pyx_RaiseArgtupleInvalid("read_timeout", 1, 2, 2, 1); __PYX_ERR(0, 342, __pyx_L3_error)
5274
 
          __Pyx_RaiseArgtupleInvalid("read_timeout", 1, 2, 2, 1); __PYX_ERR(1, 342, __pyx_L3_error)
4822 5275
 
        }
4823 5276
 
      }
4824 5277
 
      if (unlikely(kw_args > 0)) {
4825
 
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "read_timeout") < 0)) __PYX_ERR(0, 342, __pyx_L3_error)
5278
 
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "read_timeout") < 0)) __PYX_ERR(1, 342, __pyx_L3_error)
4826 5279
 
      }
4827 5280
 
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
4828 5281
 
      goto __pyx_L5_argtuple_error;
...
 
@@ -4831,17 +5284,17 @@ static PyObject *__pyx_pw_3vms_3ptd_7_vm
4831 5284
 
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
4832 5285
 
    }
4833 5286
 
    __pyx_v_handler = ((struct __pyx_obj_3vms_3ptd_7_vmsptd_PtdHandler *)values[0]);
4834
 
    __pyx_v_timeout = __Pyx_PyInt_As_unsigned_short(values[1]); if (unlikely((__pyx_v_timeout == (unsigned short)-1) && PyErr_Occurred())) __PYX_ERR(0, 342, __pyx_L3_error)
5287
 
    __pyx_v_timeout = __Pyx_PyInt_As_unsigned_short(values[1]); if (unlikely((__pyx_v_timeout == (unsigned short)-1) && PyErr_Occurred())) __PYX_ERR(1, 342, __pyx_L3_error)
4835 5288
 
  }
4836 5289
 
  goto __pyx_L4_argument_unpacking_done;
4837 5290
 
  __pyx_L5_argtuple_error:;
4838
 
  __Pyx_RaiseArgtupleInvalid("read_timeout", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 342, __pyx_L3_error)
5291
 
  __Pyx_RaiseArgtupleInvalid("read_timeout", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 342, __pyx_L3_error)
4839 5292
 
  __pyx_L3_error:;
4840 5293
 
  __Pyx_AddTraceback("vms.ptd._vmsptd.read_timeout", __pyx_clineno, __pyx_lineno, __pyx_filename);
4841 5294
 
  __Pyx_RefNannyFinishContext();
4842 5295
 
  return NULL;
4843 5296
 
  __pyx_L4_argument_unpacking_done:;
4844
 
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_handler), __pyx_ptype_3vms_3ptd_7_vmsptd_PtdHandler, 1, "handler", 0))) __PYX_ERR(0, 342, __pyx_L1_error)
5297
 
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_handler), __pyx_ptype_3vms_3ptd_7_vmsptd_PtdHandler, 1, "handler", 0))) __PYX_ERR(1, 342, __pyx_L1_error)
4845 5298
 
  __pyx_r = __pyx_pf_3vms_3ptd_7_vmsptd_8read_timeout(__pyx_self, __pyx_v_handler, __pyx_v_timeout);
4846 5299
 

	
4847 5300
 
  /* function exit code */
...
 
@@ -4885,7 +5338,7 @@ static PyObject *__pyx_pf_3vms_3ptd_7_vm
4885 5338
 
 *     ascTimeD.dsc_w_length = strlen(ascTime)
4886 5339
 
 *     s = sys_bintim(&ascTimeD, <_generic_64 *>&binTime)
4887 5340
 
 */
4888
 
  sprintf(__pyx_v_ascTime, ((char const *)"0 :%d:%d"), __Pyx_div_long(__pyx_v_timeout, 60), __Pyx_mod_long(__pyx_v_timeout, 60));
5341
 
  (void)(sprintf(__pyx_v_ascTime, ((char const *)"0 :%d:%d"), __Pyx_div_long(__pyx_v_timeout, 60), __Pyx_mod_long(__pyx_v_timeout, 60)));
4889 5342
 

	
4890 5343
 
  /* "vms/ptd/_vmsptd.pyx":351
4891 5344
 
 *     cdef unsigned long long binTime
...
 
@@ -4912,7 +5365,7 @@ static PyObject *__pyx_pf_3vms_3ptd_7_vm
4912 5365
 
 *     handler.handler.timer_status = 1
4913 5366
 
 *     s = sys_setimr(EFN_C_ENF, <_generic_64 *>&binTime, read_timeout_ast,
4914 5367
 
 */
4915
 
  __pyx_t_1 = __pyx_f_3vms_3ptd_7_vmsptd_checkStatus(__pyx_v_s); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 353, __pyx_L1_error)
5368
 
  __pyx_t_1 = __pyx_f_3vms_3ptd_7_vmsptd_checkStatus(__pyx_v_s); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 353, __pyx_L1_error)
4916 5369
 
  __Pyx_GOTREF(__pyx_t_1);
4917 5370
 
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
4918 5371
 

	
...
 
@@ -4941,7 +5394,7 @@ static PyObject *__pyx_pf_3vms_3ptd_7_vm
4941 5394
 
 *     # if a read request was not previously started, start one
4942 5395
 
 *     if handler.handler.read_status == 0:
4943 5396
 
 */
4944
 
  __pyx_t_1 = __pyx_f_3vms_3ptd_7_vmsptd_checkStatus(__pyx_v_s); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 357, __pyx_L1_error)
5397
 
  __pyx_t_1 = __pyx_f_3vms_3ptd_7_vmsptd_checkStatus(__pyx_v_s); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 357, __pyx_L1_error)
4945 5398
 
  __Pyx_GOTREF(__pyx_t_1);
4946 5399
 
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
4947 5400
 

	
...
 
@@ -4980,7 +5433,7 @@ static PyObject *__pyx_pf_3vms_3ptd_7_vm
4980 5433
 
 *     while ((handler.handler.read_status == 1) and
4981 5434
 
 *            (handler.handler.timer_status == 1)):
4982 5435
 
 */
4983
 
    __pyx_t_1 = __pyx_f_3vms_3ptd_7_vmsptd_checkStatus(__pyx_v_s); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 365, __pyx_L1_error)
5436
 
    __pyx_t_1 = __pyx_f_3vms_3ptd_7_vmsptd_checkStatus(__pyx_v_s); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 365, __pyx_L1_error)
4984 5437
 
    __Pyx_GOTREF(__pyx_t_1);
4985 5438
 
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
4986 5439
 

	
...
 
@@ -5048,9 +5501,9 @@ static PyObject *__pyx_pf_3vms_3ptd_7_vm
5048 5501
 
 *     cdef unsigned short* retlenPtr = <unsigned short *>(buf - 2)
5049 5502
 
 */
5050 5503
 
    __Pyx_XDECREF(__pyx_r);
5051
 
    __pyx_t_1 = __Pyx_PyInt_From_int(SS$_TIMEOUT); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 370, __pyx_L1_error)
5504
 
    __pyx_t_1 = __Pyx_PyInt_From_int(SS$_TIMEOUT); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 370, __pyx_L1_error)
5052 5505
 
    __Pyx_GOTREF(__pyx_t_1);
5053
 
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 370, __pyx_L1_error)
5506
 
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 370, __pyx_L1_error)
5054 5507
 
    __Pyx_GOTREF(__pyx_t_4);
5055 5508
 
    __Pyx_GIVEREF(__pyx_t_1);
5056 5509
 
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1);
...
 
@@ -5106,11 +5559,11 @@ static PyObject *__pyx_pf_3vms_3ptd_7_vm
5106 5559
 
 * def write(PtdHandler handler, wrtstr):
5107 5560
 
 */
5108 5561
 
  __Pyx_XDECREF(__pyx_r);
5109
 
  __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_s); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 374, __pyx_L1_error)
5562
 
  __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_s); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 374, __pyx_L1_error)
5110 5563
 
  __Pyx_GOTREF(__pyx_t_4);
5111
 
  __pyx_t_1 = __Pyx_PyBytes_FromStringAndSize(__pyx_v_buf + 0, (__pyx_v_retlenPtr[0]) - 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 374, __pyx_L1_error)
5564
 
  __pyx_t_1 = __Pyx_PyBytes_FromStringAndSize(__pyx_v_buf + 0, (__pyx_v_retlenPtr[0]) - 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 374, __pyx_L1_error)
5112 5565
 
  __Pyx_GOTREF(__pyx_t_1);
5113
 
  __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 374, __pyx_L1_error)
5566
 
  __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 374, __pyx_L1_error)
5114 5567
 
  __Pyx_GOTREF(__pyx_t_5);
5115 5568
 
  __Pyx_GIVEREF(__pyx_t_4);
5116 5569
 
  PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4);
...
 
@@ -5169,23 +5622,26 @@ static PyObject *__pyx_pw_3vms_3ptd_7_vm
5169 5622
 
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
5170 5623
 
      switch (pos_args) {
5171 5624
 
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
5625
 
        CYTHON_FALLTHROUGH;
5172 5626
 
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
5627
 
        CYTHON_FALLTHROUGH;
5173 5628
 
        case  0: break;
5174 5629
 
        default: goto __pyx_L5_argtuple_error;
5175 5630
 
      }
5176 5631
 
      kw_args = PyDict_Size(__pyx_kwds);
5177 5632
 
      switch (pos_args) {
5178 5633
 
        case  0:
5179
 
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_handler)) != 0)) kw_args--;
5634
 
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_handler)) != 0)) kw_args--;
5180 5635
 
        else goto __pyx_L5_argtuple_error;
5636
 
        CYTHON_FALLTHROUGH;
5181 5637
 
        case  1:
5182
 
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_wrtstr)) != 0)) kw_args--;
5638
 
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_wrtstr)) != 0)) kw_args--;
5183 5639
 
        else {
5184
 
          __Pyx_RaiseArgtupleInvalid("write", 1, 2, 2, 1); __PYX_ERR(0, 376, __pyx_L3_error)
5640
 
          __Pyx_RaiseArgtupleInvalid("write", 1, 2, 2, 1); __PYX_ERR(1, 376, __pyx_L3_error)
5185 5641
 
        }
5186 5642
 
      }
5187 5643
 
      if (unlikely(kw_args > 0)) {
5188
 
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "write") < 0)) __PYX_ERR(0, 376, __pyx_L3_error)
5644
 
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "write") < 0)) __PYX_ERR(1, 376, __pyx_L3_error)
5189 5645
 
      }
5190 5646
 
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
5191 5647
 
      goto __pyx_L5_argtuple_error;
...
 
@@ -5198,13 +5654,13 @@ static PyObject *__pyx_pw_3vms_3ptd_7_vm
5198 5654
 
  }
5199 5655
 
  goto __pyx_L4_argument_unpacking_done;
5200 5656
 
  __pyx_L5_argtuple_error:;
5201
 
  __Pyx_RaiseArgtupleInvalid("write", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 376, __pyx_L3_error)
5657
 
  __Pyx_RaiseArgtupleInvalid("write", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 376, __pyx_L3_error)
5202 5658
 
  __pyx_L3_error:;
5203 5659
 
  __Pyx_AddTraceback("vms.ptd._vmsptd.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
5204 5660
 
  __Pyx_RefNannyFinishContext();
5205 5661
 
  return NULL;
5206 5662
 
  __pyx_L4_argument_unpacking_done:;
5207
 
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_handler), __pyx_ptype_3vms_3ptd_7_vmsptd_PtdHandler, 1, "handler", 0))) __PYX_ERR(0, 376, __pyx_L1_error)
5663
 
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_handler), __pyx_ptype_3vms_3ptd_7_vmsptd_PtdHandler, 1, "handler", 0))) __PYX_ERR(1, 376, __pyx_L1_error)
5208 5664
 
  __pyx_r = __pyx_pf_3vms_3ptd_7_vmsptd_10write(__pyx_self, __pyx_v_handler, __pyx_v_wrtstr);
5209 5665
 

	
5210 5666
 
  /* function exit code */
...
 
@@ -5243,7 +5699,7 @@ static PyObject *__pyx_pf_3vms_3ptd_7_vm
5243 5699
 
 *     cdef char* wrtstrPtr = wrtstr
5244 5700
 
 *     cdef int wlen = len(wrtstr)
5245 5701
 
 */
5246
 
  __pyx_t_1 = __pyx_f_3vms_3ptd_7_vmsptd_getstr(__pyx_v_wrtstr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 378, __pyx_L1_error)
5702
 
  __pyx_t_1 = __pyx_f_3vms_3ptd_7_vmsptd_getstr(__pyx_v_wrtstr); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 378, __pyx_L1_error)
5247 5703
 
  __Pyx_GOTREF(__pyx_t_1);
5248 5704
 
  __Pyx_DECREF_SET(__pyx_v_wrtstr, __pyx_t_1);
5249 5705
 
  __pyx_t_1 = 0;
...
 
@@ -5255,7 +5711,7 @@ static PyObject *__pyx_pf_3vms_3ptd_7_vm
5255 5711
 
 *     cdef int wlen = len(wrtstr)
5256 5712
 
 *     if wlen > 1024:
5257 5713
 
 */
5258
 
  __pyx_t_2 = __Pyx_PyObject_AsString(__pyx_v_wrtstr); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 379, __pyx_L1_error)
5714
 
  __pyx_t_2 = __Pyx_PyObject_AsWritableString(__pyx_v_wrtstr); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(1, 379, __pyx_L1_error)
5259 5715
 
  __pyx_v_wrtstrPtr = __pyx_t_2;
5260 5716
 

	
5261 5717
 
  /* "vms/ptd/_vmsptd.pyx":380
...
 
@@ -5265,7 +5721,7 @@ static PyObject *__pyx_pf_3vms_3ptd_7_vm
5265 5721
 
 *     if wlen > 1024:
5266 5722
 
 *         raise ValueError('Invalid wrtstr length, maximum is 1024')
5267 5723
 
 */
5268
 
  __pyx_t_3 = PyObject_Length(__pyx_v_wrtstr); if (unlikely(__pyx_t_3 == -1)) __PYX_ERR(0, 380, __pyx_L1_error)
5724
 
  __pyx_t_3 = PyObject_Length(__pyx_v_wrtstr); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(1, 380, __pyx_L1_error)
5269 5725
 
  __pyx_v_wlen = __pyx_t_3;
5270 5726
 

	
5271 5727
 
  /* "vms/ptd/_vmsptd.pyx":381
...
 
@@ -5276,7 +5732,7 @@ static PyObject *__pyx_pf_3vms_3ptd_7_vm
5276 5732
 
 *     cdef char* wrtbuf = <char *>(handler.handler.inadr.va_range_ps_start_va)
5277 5733
 
 */
5278 5734
 
  __pyx_t_4 = ((__pyx_v_wlen > 0x400) != 0);
5279
 
  if (__pyx_t_4) {
5735
 
  if (unlikely(__pyx_t_4)) {
5280 5736
 

	
5281 5737
 
    /* "vms/ptd/_vmsptd.pyx":382
5282 5738
 
 *     cdef int wlen = len(wrtstr)
...
 
@@ -5285,11 +5741,11 @@ static PyObject *__pyx_pf_3vms_3ptd_7_vm
5285 5741
 
 *     cdef char* wrtbuf = <char *>(handler.handler.inadr.va_range_ps_start_va)
5286 5742
 
 *     cdef char* readbuf = \
5287 5743
 
 */
5288
 
    __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 382, __pyx_L1_error)
5744
 
    __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__6, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 382, __pyx_L1_error)
5289 5745
 
    __Pyx_GOTREF(__pyx_t_1);
5290 5746
 
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
5291 5747
 
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
5292
 
    __PYX_ERR(0, 382, __pyx_L1_error)
5748
 
    __PYX_ERR(1, 382, __pyx_L1_error)
5293 5749
 

	
5294 5750
 
    /* "vms/ptd/_vmsptd.pyx":381
5295 5751
 
 *     cdef char* wrtstrPtr = wrtstr
...
 
@@ -5325,7 +5781,7 @@ static PyObject *__pyx_pf_3vms_3ptd_7_vm
5325 5781
 
 *     strncpy(wrtbuf + 4, wrtstrPtr, wlen)
5326 5782
 
 *     if handler.handler.read_status != 0:
5327 5783
 
 */
5328
 
  memset(__pyx_v_wrtbuf, 4, 0);
5784
 
  (void)(memset(__pyx_v_wrtbuf, 4, 0));
5329 5785
 

	
5330 5786
 
  /* "vms/ptd/_vmsptd.pyx":387
5331 5787
 
 *        <char *>(handler.handler.inadr.va_range_ps_start_va) + 1024
...
 
@@ -5334,7 +5790,7 @@ static PyObject *__pyx_pf_3vms_3ptd_7_vm
5334 5790
 
 *     if handler.handler.read_status != 0:
5335 5791
 
 *         cancel(handler)
5336 5792
 
 */
5337
 
  strncpy((__pyx_v_wrtbuf + 4), __pyx_v_wrtstrPtr, __pyx_v_wlen);
5793
 
  (void)(strncpy((__pyx_v_wrtbuf + 4), __pyx_v_wrtstrPtr, __pyx_v_wlen));
5338 5794
 

	
5339 5795
 
  /* "vms/ptd/_vmsptd.pyx":388
5340 5796
 
 *     memset(wrtbuf, 4, 0)
...
 
@@ -5353,7 +5809,7 @@ static PyObject *__pyx_pf_3vms_3ptd_7_vm
5353 5809
 
 *     s = ptd_write(handler.handler.channel, 0, 0,
5354 5810
 
 *                   handler.handler.inadr.va_range_ps_start_va, wlen, readbuf,
5355 5811
 
 */
5356
 
    __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_cancel); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 389, __pyx_L1_error)
5812
 
    __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_cancel); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 389, __pyx_L1_error)
5357 5813
 
    __Pyx_GOTREF(__pyx_t_5);
5358 5814
 
    __pyx_t_6 = NULL;
5359 5815
 
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
...
 
@@ -5366,13 +5822,13 @@ static PyObject *__pyx_pf_3vms_3ptd_7_vm
5366 5822
 
      }
5367 5823
 
    }
5368 5824
 
    if (!__pyx_t_6) {
5369
 
      __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_5, ((PyObject *)__pyx_v_handler)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 389, __pyx_L1_error)
5825
 
      __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_5, ((PyObject *)__pyx_v_handler)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 389, __pyx_L1_error)
5370 5826
 
      __Pyx_GOTREF(__pyx_t_1);
5371 5827
 
    } else {
5372 5828
 
      #if CYTHON_FAST_PYCALL
5373 5829
 
      if (PyFunction_Check(__pyx_t_5)) {
5374 5830
 
        PyObject *__pyx_temp[2] = {__pyx_t_6, ((PyObject *)__pyx_v_handler)};
5375
 
        __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 389, __pyx_L1_error)
5831
 
        __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 389, __pyx_L1_error)
5376 5832
 
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
5377 5833
 
        __Pyx_GOTREF(__pyx_t_1);
5378 5834
 
      } else
...
 
@@ -5380,19 +5836,19 @@ static PyObject *__pyx_pf_3vms_3ptd_7_vm
5380 5836
 
      #if CYTHON_FAST_PYCCALL
5381 5837
 
      if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) {
5382 5838
 
        PyObject *__pyx_temp[2] = {__pyx_t_6, ((PyObject *)__pyx_v_handler)};
5383
 
        __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 389, __pyx_L1_error)
5839
 
        __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 389, __pyx_L1_error)
5384 5840
 
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
5385 5841
 
        __Pyx_GOTREF(__pyx_t_1);
5386 5842
 
      } else
5387 5843
 
      #endif
5388 5844
 
      {
5389
 
        __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 389, __pyx_L1_error)
5845
 
        __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 389, __pyx_L1_error)
5390 5846
 
        __Pyx_GOTREF(__pyx_t_7);
5391 5847
 
        __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_6); __pyx_t_6 = NULL;
5392 5848
 
        __Pyx_INCREF(((PyObject *)__pyx_v_handler));
5393 5849
 
        __Pyx_GIVEREF(((PyObject *)__pyx_v_handler));
5394 5850
 
        PyTuple_SET_ITEM(__pyx_t_7, 0+1, ((PyObject *)__pyx_v_handler));
5395
 
        __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_7, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 389, __pyx_L1_error)
5851
 
        __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_7, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 389, __pyx_L1_error)
5396 5852
 
        __Pyx_GOTREF(__pyx_t_1);
5397 5853
 
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
5398 5854
 
      }
...
 
@@ -5425,7 +5881,7 @@ static PyObject *__pyx_pf_3vms_3ptd_7_vm
5425 5881
 
 *     cdef char* buf = <char *>(handler.handler.inadr.va_range_ps_start_va) + 4
5426 5882
 
 *     cdef unsigned short* retlenPtr = <unsigned short *>(buf - 2)
5427 5883
 
 */
5428
 
  __pyx_t_1 = __pyx_f_3vms_3ptd_7_vmsptd_checkStatus(__pyx_v_s); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 393, __pyx_L1_error)
5884
 
  __pyx_t_1 = __pyx_f_3vms_3ptd_7_vmsptd_checkStatus(__pyx_v_s); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 393, __pyx_L1_error)
5429 5885
 
  __Pyx_GOTREF(__pyx_t_1);
5430 5886
 
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
5431 5887
 

	
...
 
@@ -5452,11 +5908,11 @@ static PyObject *__pyx_pf_3vms_3ptd_7_vm
5452 5908
 
 *     return s, buf[:retlenPtr[0]]             # <<<<<<<<<<<<<<
5453 5909
 
 */
5454 5910
 
  __Pyx_XDECREF(__pyx_r);
5455
 
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_s); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 396, __pyx_L1_error)
5911
 
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_s); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 396, __pyx_L1_error)
5456 5912
 
  __Pyx_GOTREF(__pyx_t_1);
5457
 
  __pyx_t_5 = __Pyx_PyBytes_FromStringAndSize(__pyx_v_buf + 0, (__pyx_v_retlenPtr[0]) - 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 396, __pyx_L1_error)
5913
 
  __pyx_t_5 = __Pyx_PyBytes_FromStringAndSize(__pyx_v_buf + 0, (__pyx_v_retlenPtr[0]) - 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 396, __pyx_L1_error)
5458 5914
 
  __Pyx_GOTREF(__pyx_t_5);
5459
 
  __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 396, __pyx_L1_error)
5915
 
  __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 396, __pyx_L1_error)
5460 5916
 
  __Pyx_GOTREF(__pyx_t_7);
5461 5917
 
  __Pyx_GIVEREF(__pyx_t_1);
5462 5918
 
  PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_1);
...
 
@@ -5503,8 +5959,8 @@ static PyObject *__pyx_tp_new_3vms_3ptd_
5503 5959
 
}
5504 5960
 

	
5505 5961
 
static void __pyx_tp_dealloc_3vms_3ptd_7_vmsptd_PtdHandler(PyObject *o) {
5506
 
  #if PY_VERSION_HEX >= 0x030400a1
5507
 
  if (unlikely(Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
5962
 
  #if CYTHON_USE_TP_FINALIZE
5963
 
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
5508 5964
 
    if (PyObject_CallFinalizerFromDealloc(o)) return;
5509 5965
 
  }
5510 5966
 
  #endif
...
 
@@ -5536,6 +5992,8 @@ static PyObject *__pyx_getprop_3vms_3ptd
5536 5992
 
}
5537 5993
 

	
5538 5994
 
static PyMethodDef __pyx_methods_3vms_3ptd_7_vmsptd_PtdHandler[] = {
5995
 
  {"__reduce_cython__", (PyCFunction)__pyx_pw_3vms_3ptd_7_vmsptd_10PtdHandler_3__reduce_cython__, METH_NOARGS, 0},
5996
 
  {"__setstate_cython__", (PyCFunction)__pyx_pw_3vms_3ptd_7_vmsptd_10PtdHandler_5__setstate_cython__, METH_O, 0},
5539 5997
 
  {0, 0, 0, 0}
5540 5998
 
};
5541 5999
 

	
...
 
@@ -5619,8 +6077,8 @@ static PyObject *__pyx_tp_new_3vms_3ptd_
5619 6077
 
}
5620 6078
 

	
5621 6079
 
static void __pyx_tp_dealloc_3vms_3ptd_7_vmsptd_DeviceCharacteristics(PyObject *o) {
5622
 
  #if PY_VERSION_HEX >= 0x030400a1
5623
 
  if (unlikely(Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
6080
 
  #if CYTHON_USE_TP_FINALIZE
6081
 
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
5624 6082
 
    if (PyObject_CallFinalizerFromDealloc(o)) return;
5625 6083
 
  }
5626 6084
 
  #endif
...
 
@@ -5712,6 +6170,8 @@ static int __pyx_setprop_3vms_3ptd_7_vms
5712 6170
 
}
5713 6171
 

	
5714 6172
 
static PyMethodDef __pyx_methods_3vms_3ptd_7_vmsptd_DeviceCharacteristics[] = {
6173
 
  {"__reduce_cython__", (PyCFunction)__pyx_pw_3vms_3ptd_7_vmsptd_21DeviceCharacteristics_3__reduce_cython__, METH_NOARGS, 0},
6174
 
  {"__setstate_cython__", (PyCFunction)__pyx_pw_3vms_3ptd_7_vmsptd_21DeviceCharacteristics_5__setstate_cython__, METH_O, 0},
5715 6175
 
  {0, 0, 0, 0}
5716 6176
 
};
5717 6177
 

	
...
 
@@ -5788,17 +6248,31 @@ static PyMethodDef __pyx_methods[] = {
5788 6248
 
};
5789 6249
 

	
5790 6250
 
#if PY_MAJOR_VERSION >= 3
6251
 
#if CYTHON_PEP489_MULTI_PHASE_INIT
6252
 
static PyObject* __pyx_pymod_create(PyObject *spec, PyModuleDef *def); /*proto*/
6253
 
static int __pyx_pymod_exec__vmsptd(PyObject* module); /*proto*/
6254
 
static PyModuleDef_Slot __pyx_moduledef_slots[] = {
6255
 
  {Py_mod_create, (void*)__pyx_pymod_create},
6256
 
  {Py_mod_exec, (void*)__pyx_pymod_exec__vmsptd},
6257
 
  {0, NULL}
6258
 
};
6259
 
#endif
6260
 

	
5791 6261
 
static struct PyModuleDef __pyx_moduledef = {
5792
 
  #if PY_VERSION_HEX < 0x03020000
5793
 
    { PyObject_HEAD_INIT(NULL) NULL, 0, NULL },
5794
 
  #else
5795 6262
 
    PyModuleDef_HEAD_INIT,
5796
 
  #endif
5797 6263
 
    "_vmsptd",
5798 6264
 
    0, /* m_doc */
6265
 
  #if CYTHON_PEP489_MULTI_PHASE_INIT
6266
 
    0, /* m_size */
6267
 
  #else
5799 6268
 
    -1, /* m_size */
6269
 
  #endif
5800 6270
 
    __pyx_methods /* m_methods */,
6271
 
  #if CYTHON_PEP489_MULTI_PHASE_INIT
6272
 
    __pyx_moduledef_slots, /* m_slots */
6273
 
  #else
5801 6274
 
    NULL, /* m_reload */
6275
 
  #endif
5802 6276
 
    NULL, /* m_traverse */
5803 6277
 
    NULL, /* m_clear */
5804 6278
 
    NULL /* m_free */
...
 
@@ -5806,9 +6280,9 @@ static struct PyModuleDef __pyx_modulede
5806 6280
 
#endif
5807 6281
 

	
5808 6282
 
static __Pyx_StringTabEntry __pyx_string_tab[] = {
5809
 
  {&__pyx_kp_s_DISK_REPOS_vmspython_python_loc, __pyx_k_DISK_REPOS_vmspython_python_loc, sizeof(__pyx_k_DISK_REPOS_vmspython_python_loc), 0, 0, 1, 0},
5810 6283
 
  {&__pyx_kp_s_iso885915_ISO_8859_15, __pyx_k_ISO_8859_15, sizeof(__pyx_k_ISO_8859_15), "iso-8859-15", 0, 1, 0},
5811 6284
 
  {&__pyx_kp_s_iso885915_Invalid_wrtstr_length_maximum_is, __pyx_k_Invalid_wrtstr_length_maximum_is, sizeof(__pyx_k_Invalid_wrtstr_length_maximum_is), "iso-8859-15", 0, 1, 0},
6285
 
  {&__pyx_kp_s_Pickling_of_struct_members_such, __pyx_k_Pickling_of_struct_members_such, sizeof(__pyx_k_Pickling_of_struct_members_such), 0, 0, 1, 0},
5812 6286
 
  {&__pyx_n_s_TypeError, __pyx_k_TypeError, sizeof(__pyx_k_TypeError), 0, 0, 1, 1},
5813 6287
 
  {&__pyx_n_s_VMSError, __pyx_k_VMSError, sizeof(__pyx_k_VMSError), 0, 0, 1, 1},
5814 6288
 
  {&__pyx_n_s_ValueError, __pyx_k_ValueError, sizeof(__pyx_k_ValueError), 0, 0, 1, 1},
...
 
@@ -5821,6 +6295,7 @@ static __Pyx_StringTabEntry __pyx_string
5821 6295
 
  {&__pyx_n_s_buflen, __pyx_k_buflen, sizeof(__pyx_k_buflen), 0, 0, 1, 1},
5822 6296
 
  {&__pyx_n_s_cancel, __pyx_k_cancel, sizeof(__pyx_k_cancel), 0, 0, 1, 1},
5823 6297
 
  {&__pyx_n_s_charbuff, __pyx_k_charbuff, sizeof(__pyx_k_charbuff), 0, 0, 1, 1},
6298
 
  {&__pyx_n_s_cline_in_traceback, __pyx_k_cline_in_traceback, sizeof(__pyx_k_cline_in_traceback), 0, 0, 1, 1},
5824 6299
 
  {&__pyx_n_s_create, __pyx_k_create, sizeof(__pyx_k_create), 0, 0, 1, 1},
5825 6300
 
  {&__pyx_n_s_dclass, __pyx_k_dclass, sizeof(__pyx_k_dclass), 0, 0, 1, 1},
5826 6301
 
  {&__pyx_n_s_delete, __pyx_k_delete, sizeof(__pyx_k_delete), 0, 0, 1, 1},
...
 
@@ -5829,22 +6304,31 @@ static __Pyx_StringTabEntry __pyx_string
5829 6304
 
  {&__pyx_n_s_encode, __pyx_k_encode, sizeof(__pyx_k_encode), 0, 0, 1, 1},
5830 6305
 
  {&__pyx_kp_s_iso885915_expected_string_or_Unicode_objec, __pyx_k_expected_string_or_Unicode_objec, sizeof(__pyx_k_expected_string_or_Unicode_objec), "iso-8859-15", 0, 1, 0},
5831 6306
 
  {&__pyx_n_s_extend, __pyx_k_extend, sizeof(__pyx_k_extend), 0, 0, 1, 1},
6307
 
  {&__pyx_n_s_getstate, __pyx_k_getstate, sizeof(__pyx_k_getstate), 0, 0, 1, 1},
5832 6308
 
  {&__pyx_n_s_handler, __pyx_k_handler, sizeof(__pyx_k_handler), 0, 0, 1, 1},
5833 6309
 
  {&__pyx_n_s_inadr, __pyx_k_inadr, sizeof(__pyx_k_inadr), 0, 0, 1, 1},
5834 6310
 
  {&__pyx_n_s_length, __pyx_k_length, sizeof(__pyx_k_length), 0, 0, 1, 1},
5835 6311
 
  {&__pyx_n_s_main, __pyx_k_main, sizeof(__pyx_k_main), 0, 0, 1, 1},
6312
 
  {&__pyx_n_s_name, __pyx_k_name, sizeof(__pyx_k_name), 0, 0, 1, 1},
5836 6313
 
  {&__pyx_n_s_nbpages, __pyx_k_nbpages, sizeof(__pyx_k_nbpages), 0, 0, 1, 1},
5837 6314
 
  {&__pyx_n_s_pgsize, __pyx_k_pgsize, sizeof(__pyx_k_pgsize), 0, 0, 1, 1},
5838 6315
 
  {&__pyx_n_s_ptrc, __pyx_k_ptrc, sizeof(__pyx_k_ptrc), 0, 0, 1, 1},
5839 6316
 
  {&__pyx_n_s_read_timeout, __pyx_k_read_timeout, sizeof(__pyx_k_read_timeout), 0, 0, 1, 1},
5840 6317
 
  {&__pyx_n_s_readbuf, __pyx_k_readbuf, sizeof(__pyx_k_readbuf), 0, 0, 1, 1},
5841 6318
 
  {&__pyx_n_s_readw, __pyx_k_readw, sizeof(__pyx_k_readw), 0, 0, 1, 1},
6319
 
  {&__pyx_n_s_reduce, __pyx_k_reduce, sizeof(__pyx_k_reduce), 0, 0, 1, 1},
6320
 
  {&__pyx_n_s_reduce_cython, __pyx_k_reduce_cython, sizeof(__pyx_k_reduce_cython), 0, 0, 1, 1},
6321
 
  {&__pyx_n_s_reduce_ex, __pyx_k_reduce_ex, sizeof(__pyx_k_reduce_ex), 0, 0, 1, 1},
5842 6322
 
  {&__pyx_n_s_retlenPtr, __pyx_k_retlenPtr, sizeof(__pyx_k_retlenPtr), 0, 0, 1, 1},
5843 6323
 
  {&__pyx_n_s_s, __pyx_k_s, sizeof(__pyx_k_s), 0, 0, 1, 1},
6324
 
  {&__pyx_kp_s_self_handler_cannot_be_converted, __pyx_k_self_handler_cannot_be_converted, sizeof(__pyx_k_self_handler_cannot_be_converted), 0, 0, 1, 0},
6325
 
  {&__pyx_n_s_setstate, __pyx_k_setstate, sizeof(__pyx_k_setstate), 0, 0, 1, 1},
6326
 
  {&__pyx_n_s_setstate_cython, __pyx_k_setstate_cython, sizeof(__pyx_k_setstate_cython), 0, 0, 1, 1},
5844 6327
 
  {&__pyx_n_s_test, __pyx_k_test, sizeof(__pyx_k_test), 0, 0, 1, 1},
5845 6328
 
  {&__pyx_n_s_timeout, __pyx_k_timeout, sizeof(__pyx_k_timeout), 0, 0, 1, 1},
5846 6329
 
  {&__pyx_n_s_type, __pyx_k_type, sizeof(__pyx_k_type), 0, 0, 1, 1},
5847 6330
 
  {&__pyx_n_s_vms_ptd__vmsptd, __pyx_k_vms_ptd__vmsptd, sizeof(__pyx_k_vms_ptd__vmsptd), 0, 0, 1, 1},
6331
 
  {&__pyx_kp_s_vmsptd_pyx, __pyx_k_vmsptd_pyx, sizeof(__pyx_k_vmsptd_pyx), 0, 0, 1, 0},
5848 6332
 
  {&__pyx_n_s_width, __pyx_k_width, sizeof(__pyx_k_width), 0, 0, 1, 1},
5849 6333
 
  {&__pyx_n_s_wlen, __pyx_k_wlen, sizeof(__pyx_k_wlen), 0, 0, 1, 1},
5850 6334
 
  {&__pyx_n_s_write, __pyx_k_write, sizeof(__pyx_k_write), 0, 0, 1, 1},
...
 
@@ -5854,9 +6338,9 @@ static __Pyx_StringTabEntry __pyx_string
5854 6338
 
  {0, 0, 0, 0, 0, 0, 0}
5855 6339
 
};
5856 6340
 
static int __Pyx_InitCachedBuiltins(void) {
5857
 
  __pyx_builtin_VMSError = __Pyx_GetBuiltinName(__pyx_n_s_VMSError); if (!__pyx_builtin_VMSError) __PYX_ERR(0, 172, __pyx_L1_error)
5858
 
  __pyx_builtin_TypeError = __Pyx_GetBuiltinName(__pyx_n_s_TypeError); if (!__pyx_builtin_TypeError) __PYX_ERR(0, 176, __pyx_L1_error)
5859
 
  __pyx_builtin_ValueError = __Pyx_GetBuiltinName(__pyx_n_s_ValueError); if (!__pyx_builtin_ValueError) __PYX_ERR(0, 185, __pyx_L1_error)
6341
 
  __pyx_builtin_TypeError = __Pyx_GetBuiltinName(__pyx_n_s_TypeError); if (!__pyx_builtin_TypeError) __PYX_ERR(0, 2, __pyx_L1_error)
6342
 
  __pyx_builtin_VMSError = __Pyx_GetBuiltinName(__pyx_n_s_VMSError); if (!__pyx_builtin_VMSError) __PYX_ERR(1, 172, __pyx_L1_error)
6343
 
  __pyx_builtin_ValueError = __Pyx_GetBuiltinName(__pyx_n_s_ValueError); if (!__pyx_builtin_ValueError) __PYX_ERR(1, 185, __pyx_L1_error)
5860 6344
 
  return 0;
5861 6345
 
  __pyx_L1_error:;
5862 6346
 
  return -1;
...
 
@@ -5866,6 +6350,44 @@ static int __Pyx_InitCachedConstants(voi
5866 6350
 
  __Pyx_RefNannyDeclarations
5867 6351
 
  __Pyx_RefNannySetupContext("__Pyx_InitCachedConstants", 0);
5868 6352
 

	
6353
 
  /* "(tree fragment)":2
6354
 
 * def __reduce_cython__(self):
6355
 
 *     raise TypeError("self.handler cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
6356
 
 * def __setstate_cython__(self, __pyx_state):
6357
 
 *     raise TypeError("self.handler cannot be converted to a Python object for pickling")
6358
 
 */
6359
 
  __pyx_tuple_ = PyTuple_Pack(1, __pyx_kp_s_self_handler_cannot_be_converted); if (unlikely(!__pyx_tuple_)) __PYX_ERR(0, 2, __pyx_L1_error)
6360
 
  __Pyx_GOTREF(__pyx_tuple_);
6361
 
  __Pyx_GIVEREF(__pyx_tuple_);
6362
 

	
6363
 
  /* "(tree fragment)":4
6364
 
 *     raise TypeError("self.handler cannot be converted to a Python object for pickling")
6365
 
 * def __setstate_cython__(self, __pyx_state):
6366
 
 *     raise TypeError("self.handler cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
6367
 
 */
6368
 
  __pyx_tuple__2 = PyTuple_Pack(1, __pyx_kp_s_self_handler_cannot_be_converted); if (unlikely(!__pyx_tuple__2)) __PYX_ERR(0, 4, __pyx_L1_error)
6369
 
  __Pyx_GOTREF(__pyx_tuple__2);
6370
 
  __Pyx_GIVEREF(__pyx_tuple__2);
6371
 

	
6372
 
  /* "(tree fragment)":2
6373
 
 * def __reduce_cython__(self):
6374
 
 *     raise TypeError("Pickling of struct members such as self.devchar must be explicitly requested with @auto_pickle(True)")             # <<<<<<<<<<<<<<
6375
 
 * def __setstate_cython__(self, __pyx_state):
6376
 
 *     raise TypeError("Pickling of struct members such as self.devchar must be explicitly requested with @auto_pickle(True)")
6377
 
 */
6378
 
  __pyx_tuple__3 = PyTuple_Pack(1, __pyx_kp_s_Pickling_of_struct_members_such); if (unlikely(!__pyx_tuple__3)) __PYX_ERR(0, 2, __pyx_L1_error)
6379
 
  __Pyx_GOTREF(__pyx_tuple__3);
6380
 
  __Pyx_GIVEREF(__pyx_tuple__3);
6381
 

	
6382
 
  /* "(tree fragment)":4
6383
 
 *     raise TypeError("Pickling of struct members such as self.devchar must be explicitly requested with @auto_pickle(True)")
6384
 
 * def __setstate_cython__(self, __pyx_state):
6385
 
 *     raise TypeError("Pickling of struct members such as self.devchar must be explicitly requested with @auto_pickle(True)")             # <<<<<<<<<<<<<<
6386
 
 */
6387
 
  __pyx_tuple__4 = PyTuple_Pack(1, __pyx_kp_s_Pickling_of_struct_members_such); if (unlikely(!__pyx_tuple__4)) __PYX_ERR(0, 4, __pyx_L1_error)
6388
 
  __Pyx_GOTREF(__pyx_tuple__4);
6389
 
  __Pyx_GIVEREF(__pyx_tuple__4);
6390
 

	
5869 6391
 
  /* "vms/ptd/_vmsptd.pyx":181
5870 6392
 
 * cdef getstr(text):
5871 6393
 
 *     if isinstance(text, unicode):
...
 
@@ -5873,9 +6395,9 @@ static int __Pyx_InitCachedConstants(voi
5873 6395
 
 *     elif text is None or (PY_MAJOR_VERSION < 3) and isinstance(text, str):
5874 6396
 
 *         return text
5875 6397
 
 */
5876
 
  __pyx_tuple_ = PyTuple_Pack(1, __pyx_kp_s_iso885915_ISO_8859_15); if (unlikely(!__pyx_tuple_)) __PYX_ERR(0, 181, __pyx_L1_error)
5877
 
  __Pyx_GOTREF(__pyx_tuple_);
5878
 
  __Pyx_GIVEREF(__pyx_tuple_);
6398
 
  __pyx_tuple__5 = PyTuple_Pack(1, __pyx_kp_s_iso885915_ISO_8859_15); if (unlikely(!__pyx_tuple__5)) __PYX_ERR(1, 181, __pyx_L1_error)
6399
 
  __Pyx_GOTREF(__pyx_tuple__5);
6400
 
  __Pyx_GIVEREF(__pyx_tuple__5);
5879 6401
 

	
5880 6402
 
  /* "vms/ptd/_vmsptd.pyx":382
5881 6403
 
 *     cdef int wlen = len(wrtstr)
...
 
@@ -5884,9 +6406,9 @@ static int __Pyx_InitCachedConstants(voi
5884 6406
 
 *     cdef char* wrtbuf = <char *>(handler.handler.inadr.va_range_ps_start_va)
5885 6407
 
 *     cdef char* readbuf = \
5886 6408
 
 */
5887
 
  __pyx_tuple__2 = PyTuple_Pack(1, __pyx_kp_s_iso885915_Invalid_wrtstr_length_maximum_is); if (unlikely(!__pyx_tuple__2)) __PYX_ERR(0, 382, __pyx_L1_error)
5888
 
  __Pyx_GOTREF(__pyx_tuple__2);
5889
 
  __Pyx_GIVEREF(__pyx_tuple__2);
6409
 
  __pyx_tuple__6 = PyTuple_Pack(1, __pyx_kp_s_iso885915_Invalid_wrtstr_length_maximum_is); if (unlikely(!__pyx_tuple__6)) __PYX_ERR(1, 382, __pyx_L1_error)
6410
 
  __Pyx_GOTREF(__pyx_tuple__6);
6411
 
  __Pyx_GIVEREF(__pyx_tuple__6);
5890 6412
 

	
5891 6413
 
  /* "vms/ptd/_vmsptd.pyx":265
5892 6414
 
 *         return iv
...
 
@@ -5895,10 +6417,10 @@ static int __Pyx_InitCachedConstants(voi
5895 6417
 
 *     "status = cancel(handler)"
5896 6418
 
 *     s = ptd_cancel(handler.handler.channel)
5897 6419
 
 */
5898
 
  __pyx_tuple__3 = PyTuple_Pack(2, __pyx_n_s_handler, __pyx_n_s_s); if (unlikely(!__pyx_tuple__3)) __PYX_ERR(0, 265, __pyx_L1_error)
5899
 
  __Pyx_GOTREF(__pyx_tuple__3);
5900
 
  __Pyx_GIVEREF(__pyx_tuple__3);
5901
 
  __pyx_codeobj__4 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__3, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_DISK_REPOS_vmspython_python_loc, __pyx_n_s_cancel, 265, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__4)) __PYX_ERR(0, 265, __pyx_L1_error)
6420
 
  __pyx_tuple__7 = PyTuple_Pack(2, __pyx_n_s_handler, __pyx_n_s_s); if (unlikely(!__pyx_tuple__7)) __PYX_ERR(1, 265, __pyx_L1_error)
6421
 
  __Pyx_GOTREF(__pyx_tuple__7);
6422
 
  __Pyx_GIVEREF(__pyx_tuple__7);
6423
 
  __pyx_codeobj__8 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__7, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_vmsptd_pyx, __pyx_n_s_cancel, 265, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__8)) __PYX_ERR(1, 265, __pyx_L1_error)
5902 6424
 

	
5903 6425
 
  /* "vms/ptd/_vmsptd.pyx":272
5904 6426
 
 *     return s
...
 
@@ -5907,10 +6429,10 @@ static int __Pyx_InitCachedConstants(voi
5907 6429
 
 *     "status, handler = create(acmode=0, charbuff=None)"
5908 6430
 
 *     cdef char* inadr[2]
5909 6431
 
 */
5910
 
  __pyx_tuple__5 = PyTuple_Pack(10, __pyx_n_s_acmode, __pyx_n_s_charbuff, __pyx_n_s_inadr, __pyx_n_s_pgsize, __pyx_n_s_nbpages, __pyx_n_s_ptrc, __pyx_n_s_handler, __pyx_n_s_devchar, __pyx_n_s_buflen, __pyx_n_s_s); if (unlikely(!__pyx_tuple__5)) __PYX_ERR(0, 272, __pyx_L1_error)
5911
 
  __Pyx_GOTREF(__pyx_tuple__5);
5912
 
  __Pyx_GIVEREF(__pyx_tuple__5);
5913
 
  __pyx_codeobj__6 = (PyObject*)__Pyx_PyCode_New(2, 0, 10, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__5, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_DISK_REPOS_vmspython_python_loc, __pyx_n_s_create, 272, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__6)) __PYX_ERR(0, 272, __pyx_L1_error)
6432
 
  __pyx_tuple__9 = PyTuple_Pack(10, __pyx_n_s_acmode, __pyx_n_s_charbuff, __pyx_n_s_inadr, __pyx_n_s_pgsize, __pyx_n_s_nbpages, __pyx_n_s_ptrc, __pyx_n_s_handler, __pyx_n_s_devchar, __pyx_n_s_buflen, __pyx_n_s_s); if (unlikely(!__pyx_tuple__9)) __PYX_ERR(1, 272, __pyx_L1_error)
6433
 
  __Pyx_GOTREF(__pyx_tuple__9);
6434
 
  __Pyx_GIVEREF(__pyx_tuple__9);
6435
 
  __pyx_codeobj__10 = (PyObject*)__Pyx_PyCode_New(2, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__9, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_vmsptd_pyx, __pyx_n_s_create, 272, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__10)) __PYX_ERR(1, 272, __pyx_L1_error)
5914 6436
 

	
5915 6437
 
  /* "vms/ptd/_vmsptd.pyx":312
5916 6438
 
 *     return s, handler
...
 
@@ -5919,10 +6441,10 @@ static int __Pyx_InitCachedConstants(voi
5919 6441
 
 *     "status = delete(handler)"
5920 6442
 
 *     s = ptd_cancel(handler.handler.channel)
5921 6443
 
 */
5922
 
  __pyx_tuple__7 = PyTuple_Pack(2, __pyx_n_s_handler, __pyx_n_s_s); if (unlikely(!__pyx_tuple__7)) __PYX_ERR(0, 312, __pyx_L1_error)
5923
 
  __Pyx_GOTREF(__pyx_tuple__7);
5924
 
  __Pyx_GIVEREF(__pyx_tuple__7);
5925
 
  __pyx_codeobj__8 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__7, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_DISK_REPOS_vmspython_python_loc, __pyx_n_s_delete, 312, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__8)) __PYX_ERR(0, 312, __pyx_L1_error)
6444
 
  __pyx_tuple__11 = PyTuple_Pack(2, __pyx_n_s_handler, __pyx_n_s_s); if (unlikely(!__pyx_tuple__11)) __PYX_ERR(1, 312, __pyx_L1_error)
6445
 
  __Pyx_GOTREF(__pyx_tuple__11);
6446
 
  __Pyx_GIVEREF(__pyx_tuple__11);
6447
 
  __pyx_codeobj__12 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__11, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_vmsptd_pyx, __pyx_n_s_delete, 312, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__12)) __PYX_ERR(1, 312, __pyx_L1_error)
5926 6448
 

	
5927 6449
 
  /* "vms/ptd/_vmsptd.pyx":325
5928 6450
 
 *     return s
...
 
@@ -5931,10 +6453,10 @@ static int __Pyx_InitCachedConstants(voi
5931 6453
 
 *     "status, res = readw(handler)"
5932 6454
 
 *     cdef int efn = EFN_C_ENF
5933 6455
 
 */
5934
 
  __pyx_tuple__9 = PyTuple_Pack(5, __pyx_n_s_handler, __pyx_n_s_efn, __pyx_n_s_s, __pyx_n_s_buf, __pyx_n_s_retlenPtr); if (unlikely(!__pyx_tuple__9)) __PYX_ERR(0, 325, __pyx_L1_error)
5935
 
  __Pyx_GOTREF(__pyx_tuple__9);
5936
 
  __Pyx_GIVEREF(__pyx_tuple__9);
5937
 
  __pyx_codeobj__10 = (PyObject*)__Pyx_PyCode_New(1, 0, 5, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__9, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_DISK_REPOS_vmspython_python_loc, __pyx_n_s_readw, 325, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__10)) __PYX_ERR(0, 325, __pyx_L1_error)
6456
 
  __pyx_tuple__13 = PyTuple_Pack(5, __pyx_n_s_handler, __pyx_n_s_efn, __pyx_n_s_s, __pyx_n_s_buf, __pyx_n_s_retlenPtr); if (unlikely(!__pyx_tuple__13)) __PYX_ERR(1, 325, __pyx_L1_error)
6457
 
  __Pyx_GOTREF(__pyx_tuple__13);
6458
 
  __Pyx_GIVEREF(__pyx_tuple__13);
6459
 
  __pyx_codeobj__14 = (PyObject*)__Pyx_PyCode_New(1, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__13, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_vmsptd_pyx, __pyx_n_s_readw, 325, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__14)) __PYX_ERR(1, 325, __pyx_L1_error)
5938 6460
 

	
5939 6461
 
  /* "vms/ptd/_vmsptd.pyx":342
5940 6462
 
 *     return s, buf[:retlenPtr[0]]
...
 
@@ -5943,10 +6465,10 @@ static int __Pyx_InitCachedConstants(voi
5943 6465
 
 *     "status, res = read_timeout(handler, timeout)\n\
5944 6466
 
 * The timeout period is given in seconds and is assumed \
5945 6467
 
 */
5946
 
  __pyx_tuple__11 = PyTuple_Pack(8, __pyx_n_s_handler, __pyx_n_s_timeout, __pyx_n_s_ascTime, __pyx_n_s_ascTimeD, __pyx_n_s_binTime, __pyx_n_s_s, __pyx_n_s_buf, __pyx_n_s_retlenPtr); if (unlikely(!__pyx_tuple__11)) __PYX_ERR(0, 342, __pyx_L1_error)
5947
 
  __Pyx_GOTREF(__pyx_tuple__11);
5948
 
  __Pyx_GIVEREF(__pyx_tuple__11);
5949
 
  __pyx_codeobj__12 = (PyObject*)__Pyx_PyCode_New(2, 0, 8, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__11, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_DISK_REPOS_vmspython_python_loc, __pyx_n_s_read_timeout, 342, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__12)) __PYX_ERR(0, 342, __pyx_L1_error)
6468
 
  __pyx_tuple__15 = PyTuple_Pack(8, __pyx_n_s_handler, __pyx_n_s_timeout, __pyx_n_s_ascTime, __pyx_n_s_ascTimeD, __pyx_n_s_binTime, __pyx_n_s_s, __pyx_n_s_buf, __pyx_n_s_retlenPtr); if (unlikely(!__pyx_tuple__15)) __PYX_ERR(1, 342, __pyx_L1_error)
6469
 
  __Pyx_GOTREF(__pyx_tuple__15);
6470
 
  __Pyx_GIVEREF(__pyx_tuple__15);
6471
 
  __pyx_codeobj__16 = (PyObject*)__Pyx_PyCode_New(2, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__15, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_vmsptd_pyx, __pyx_n_s_read_timeout, 342, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__16)) __PYX_ERR(1, 342, __pyx_L1_error)
5950 6472
 

	
5951 6473
 
  /* "vms/ptd/_vmsptd.pyx":376
5952 6474
 
 *     return s, buf[:retlenPtr[0]]
...
 
@@ -5955,10 +6477,10 @@ static int __Pyx_InitCachedConstants(voi
5955 6477
 
 *     "status, res = write(handler, wrstr)"
5956 6478
 
 *     wrtstr = getstr(wrtstr)
5957 6479
 
 */
5958
 
  __pyx_tuple__13 = PyTuple_Pack(9, __pyx_n_s_handler, __pyx_n_s_wrtstr, __pyx_n_s_wrtstrPtr, __pyx_n_s_wlen, __pyx_n_s_wrtbuf, __pyx_n_s_readbuf, __pyx_n_s_s, __pyx_n_s_buf, __pyx_n_s_retlenPtr); if (unlikely(!__pyx_tuple__13)) __PYX_ERR(0, 376, __pyx_L1_error)
5959
 
  __Pyx_GOTREF(__pyx_tuple__13);
5960
 
  __Pyx_GIVEREF(__pyx_tuple__13);
5961
 
  __pyx_codeobj__14 = (PyObject*)__Pyx_PyCode_New(2, 0, 9, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__13, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_DISK_REPOS_vmspython_python_loc, __pyx_n_s_write, 376, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__14)) __PYX_ERR(0, 376, __pyx_L1_error)
6480
 
  __pyx_tuple__17 = PyTuple_Pack(9, __pyx_n_s_handler, __pyx_n_s_wrtstr, __pyx_n_s_wrtstrPtr, __pyx_n_s_wlen, __pyx_n_s_wrtbuf, __pyx_n_s_readbuf, __pyx_n_s_s, __pyx_n_s_buf, __pyx_n_s_retlenPtr); if (unlikely(!__pyx_tuple__17)) __PYX_ERR(1, 376, __pyx_L1_error)
6481
 
  __Pyx_GOTREF(__pyx_tuple__17);
6482
 
  __Pyx_GIVEREF(__pyx_tuple__17);
6483
 
  __pyx_codeobj__18 = (PyObject*)__Pyx_PyCode_New(2, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__17, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_vmsptd_pyx, __pyx_n_s_write, 376, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__18)) __PYX_ERR(1, 376, __pyx_L1_error)
5962 6484
 
  __Pyx_RefNannyFinishContext();
5963 6485
 
  return 0;
5964 6486
 
  __pyx_L1_error:;
...
 
@@ -5967,53 +6489,232 @@ static int __Pyx_InitCachedConstants(voi
5967 6489
 
}
5968 6490
 

	
5969 6491
 
static int __Pyx_InitGlobals(void) {
5970
 
  if (__Pyx_InitStrings(__pyx_string_tab) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
5971
 
  __pyx_int_32 = PyInt_FromLong(32); if (unlikely(!__pyx_int_32)) __PYX_ERR(0, 1, __pyx_L1_error)
5972
 
  __pyx_int_4294967295 = PyInt_FromString((char *)"4294967295", 0, 0); if (unlikely(!__pyx_int_4294967295)) __PYX_ERR(0, 1, __pyx_L1_error)
6492
 
  if (__Pyx_InitStrings(__pyx_string_tab) < 0) __PYX_ERR(1, 1, __pyx_L1_error);
6493
 
  __pyx_int_32 = PyInt_FromLong(32); if (unlikely(!__pyx_int_32)) __PYX_ERR(1, 1, __pyx_L1_error)
6494
 
  __pyx_int_4294967295 = PyInt_FromString((char *)"4294967295", 0, 0); if (unlikely(!__pyx_int_4294967295)) __PYX_ERR(1, 1, __pyx_L1_error)
5973 6495
 
  return 0;
5974 6496
 
  __pyx_L1_error:;
5975 6497
 
  return -1;
5976 6498
 
}
5977 6499
 

	
6500
 
static int __Pyx_modinit_global_init_code(void); /*proto*/
6501
 
static int __Pyx_modinit_variable_export_code(void); /*proto*/
6502
 
static int __Pyx_modinit_function_export_code(void); /*proto*/
6503
 
static int __Pyx_modinit_type_init_code(void); /*proto*/
6504
 
static int __Pyx_modinit_type_import_code(void); /*proto*/
6505
 
static int __Pyx_modinit_variable_import_code(void); /*proto*/
6506
 
static int __Pyx_modinit_function_import_code(void); /*proto*/
6507