Utilities

Miscellaneous utilities

Definitions

YMO_INCREF_PYDICT_SETITEM
Definition
#define YMO_INCREF_PYDICT_SETITEM(d, k, v) \
        { \
            PyObject* _v_py_tmp = v; \
            Py_INCREF(_v_py_tmp); \
            PyDict_SetItem(d, k, _v_py_tmp); \
        }
YMO_DECREF_PYDICT_SETITEM
Definition
#define YMO_DECREF_PYDICT_SETITEM(d, k, v) \
        { \
            PyObject* _v_py_tmp = v; \
            PyDict_SetItem(d, k, _v_py_tmp); \
            Py_DECREF(_v_py_tmp); \
        }
YMO_INCREF_PYDICT_SETITEM_STRING
Definition
#define YMO_INCREF_PYDICT_SETITEM_STRING(d, k, v) \
        { \
            PyObject* _v_py_tmp = v; \
            Py_INCREF(_v_py_tmp); \
            PyDict_SetItemString(d, k, _v_py_tmp); \
        }
YMO_DECREF_PYDICT_SETITEM_STRING
Definition
#define YMO_DECREF_PYDICT_SETITEM_STRING(d, k, v) \
        { \
            PyObject* _v_py_tmp = v; \
            PyDict_SetItemString(d, k, _v_py_tmp); \
            Py_DECREF(_v_py_tmp); \
        }

Functions

int ymo_wsgi_signal_mask(int signum, int how)
int ymo_wsgi_signal_get_mask(sigset_t *signal_mask)
int ymo_wsgi_signal_set_mask(sigset_t *signal_mask)