Lines Matching defs:module

59 module _locale
109 _locale_setlocale_impl(PyObject *module, int category, const char *locale)
118 PyErr_SetString(get_locale_state(module)->Error,
129 PyErr_SetString(get_locale_state(module)->Error,
140 PyErr_SetString(get_locale_state(module)->Error,
242 _locale_localeconv_impl(PyObject *module)
356 _locale_strcoll_impl(PyObject *module, PyObject *os1, PyObject *os2)
391 _locale_strxfrm_impl(PyObject *module, PyObject *str)
452 _locale__getdefaultlocale_impl(PyObject *module)
606 _locale_nl_langinfo_impl(PyObject *module, int item)
640 _locale_gettext_impl(PyObject *module, const char *in)
659 _locale_dgettext_impl(PyObject *module, const char *domain, const char *in)
677 _locale_dcgettext_impl(PyObject *module, const char *domain,
694 _locale_textdomain_impl(PyObject *module, const char *domain)
716 _locale_bindtextdomain_impl(PyObject *module, const char *domain,
724 PyErr_SetString(get_locale_state(module)->Error,
760 _locale_bind_textdomain_codeset_impl(PyObject *module, const char *domain,
782 _locale_getencoding_impl(PyObject *module)
819 _locale_exec(PyObject *module)
824 #define ADD_INT(module, value) \
826 if (PyModule_AddIntConstant(module, #value, value) < 0) { \
831 ADD_INT(module, LC_CTYPE);
832 ADD_INT(module, LC_TIME);
833 ADD_INT(module, LC_COLLATE);
834 ADD_INT(module, LC_MONETARY);
837 ADD_INT(module, LC_MESSAGES);
840 ADD_INT(module, LC_NUMERIC);
841 ADD_INT(module, LC_ALL);
842 ADD_INT(module, CHAR_MAX);
844 _locale_state *state = get_locale_state(module);
849 Py_INCREF(get_locale_state(module)->Error);
850 if (PyModule_AddObject(module, "Error", get_locale_state(module)->Error) < 0) {
851 Py_DECREF(get_locale_state(module)->Error);
857 if (PyModule_AddIntConstant(module,
879 locale_traverse(PyObject *module, visitproc visit, void *arg)
881 _locale_state *state = get_locale_state(module);
887 locale_clear(PyObject *module)
889 _locale_state *state = get_locale_state(module);
895 locale_free(PyObject *module)
897 locale_clear(module);