Lines Matching refs:traps
86 PyObject *traps;
488 if (status & (ctx->traps|MPD_Malloc_error)) {
496 ex = flags_as_exception(ctx->traps&status);
500 siglist = flags_as_list(ctx->traps&status);
540 new context is created, context.traps and context.flags are
748 Dec_CONTEXT_GET_ULONG(traps)
1123 if (PyUnicode_CompareWithASCIIString(name, "traps") == 0) {
1124 retval = ((PyDecContextObject *)self)->traps;
1148 if (PyUnicode_CompareWithASCIIString(name, "traps") == 0) {
1162 PyObject *clamp, PyObject *status, PyObject *traps) {
1184 if (traps != Py_None) {
1185 if (PyList_Check(traps)) {
1186 ret = context_settraps_list(self, traps);
1189 else if (PyLong_Check(traps)) {
1190 ret = context_settraps(self, traps, NULL);
1194 ret = context_settraps_dict(self, traps);
1223 CTX(self)->traps = 0;
1260 self->traps = PyObject_CallObject((PyObject *)PyDecSignalDict_Type, NULL);
1261 if (self->traps == NULL) {
1281 SdFlagAddr(self->traps) = &ctx->traps;
1299 Py_XDECREF(self->traps);
1309 "flags", "traps", NULL
1318 PyObject *traps = Py_None;
1325 &prec, &rounding, &emin, &emax, &capitals, &clamp, &status, &traps
1333 clamp, status, traps
1342 char traps[MPD_MAX_SIGNAL_LIST];
1354 n = mpd_lsnprint_signals(traps, mem, ctx->traps, dec_signal_string);
1361 "capitals=%d, clamp=%d, flags=%s, traps=%s)",
1363 self->capitals, ctx->clamp, flags, traps);
1372 ctx.traps |= (MPD_Underflow|MPD_Clamped);
1385 ctx.traps = 0;
1449 PyObject *traps;
1459 traps = signals_as_list(ctx->traps);
1460 if (traps == NULL) {
1469 CtxCaps(self), ctx->clamp, flags, traps
1473 Py_DECREF(traps);
1739 "clamp", "flags", "traps",
1753 PyObject *traps = Py_None;
1757 &prec, &rounding, &Emin, &Emax, &capitals, &clamp, &flags, &traps)) {
1787 clamp, flags, traps