Lines Matching refs:traps
83 PyObject *traps; member
485 if (status & (ctx->traps|MPD_Malloc_error)) { in dec_addstatus()
493 ex = flags_as_exception(ctx->traps&status); in dec_addstatus()
497 siglist = flags_as_list(ctx->traps&status); in dec_addstatus()
746 Dec_CONTEXT_GET_ULONG(traps) in Dec_CONTEXT_GET_SSIZE()
1122 retval = ((PyDecContextObject *)self)->traps; in context_getattr()
1160 CTX(self)->traps = 0; in context_clear_traps()
1197 self->traps = PyObject_CallObject((PyObject *)PyDecSignalDict_Type, NULL); in context_new()
1198 if (self->traps == NULL) { in context_new()
1218 SdFlagAddr(self->traps) = &ctx->traps; in context_new()
1236 Py_XDECREF(self->traps); in context_dealloc()
1255 PyObject *traps = Py_None; in context_init() local
1263 &prec, &rounding, &emin, &emax, &capitals, &clamp, &status, &traps in context_init()
1287 if (traps != Py_None) { in context_init()
1288 if (PyList_Check(traps)) { in context_init()
1289 ret = context_settraps_list(self, traps); in context_init()
1292 else if (PyLong_Check(traps)) { in context_init()
1293 ret = context_settraps(self, traps, NULL); in context_init()
1297 ret = context_settraps_dict(self, traps); in context_init()
1328 char traps[MPD_MAX_SIGNAL_LIST]; in context_repr() local
1340 n = mpd_lsnprint_signals(traps, mem, ctx->traps, dec_signal_string); in context_repr()
1349 self->capitals, ctx->clamp, flags, traps); in context_repr()
1358 ctx.traps |= (MPD_Underflow|MPD_Clamped); in init_basic_context()
1371 ctx.traps = 0; in init_extended_context()
1435 PyObject *traps; in context_reduce() local
1445 traps = signals_as_list(ctx->traps); in context_reduce()
1446 if (traps == NULL) { in context_reduce()
1455 CtxCaps(self), ctx->clamp, flags, traps in context_reduce()
1459 Py_DECREF(traps); in context_reduce()