Lines Matching refs:NULL

45 	PyObject *exc = NULL;
46 PyObject *val = NULL;
47 PyObject *pkg_actions = NULL;
53 if ((pkg_actions = PyImport_ImportModule("pkg.actions")) == NULL) {
64 if ((exc = PyObject_GetAttrString(pkg_actions, name)) == NULL) {
70 if ((val = Py_BuildValue("OO", action, key_aname)) != NULL) {
78 * These routines are expected to return NULL in an exception case per CPython
79 * calling conventions. Whenver NULL is returned, an exception should already
90 PyObject *key_aname = NULL;
91 PyObject *key_attr = NULL;
92 PyObject *path_attr = NULL;
93 char *path = NULL;
100 if (attrs != NULL) {
102 return (NULL);
105 if ((attrs = PyDict_New()) == NULL)
106 return (NULL);
109 return (NULL);
114 if (data == NULL || data == Py_None) {
117 return (NULL);
121 if (res == NULL)
122 return (NULL);
126 if ((key_aname = PyObject_GetAttrString(action, "key_attr")) == NULL)
127 return (NULL);
134 if ((key_attr = PyDict_GetItem(attrs, key_aname)) == NULL) {
150 return (NULL);
175 if (dt != NULL) {
177 if (ts == NULL) {
187 return (NULL);
199 return (NULL);
203 if ((path_attr = PyDict_GetItemString(attrs, "path")) == NULL) {
208 if ((path = PyBytes_AsString(path_attr)) != NULL) {
212 if (stripped == NULL) {
214 return (NULL);
220 return (NULL);
238 return (NULL);
249 PyObject *action = NULL;
250 PyObject *data = NULL;
254 return (NULL);
263 PyObject *action = NULL;
264 PyObject *data = NULL;
265 PyObject *result = NULL;
268 return (NULL);
270 if ((result = _generic_init_common(action, data, attrs)) != NULL)
273 return (NULL);
276 return (NULL);
279 return (NULL);
288 { NULL, NULL, 0, NULL }
295 NULL,
304 PyObject *pkg_actions = NULL;
308 if ((m = PyModule_Create(&commonmodule)) == NULL)
309 return (NULL);
315 if (Py_InitModule("_common", methods) == NULL)
316 return (NULL);
319 if ((pkg_actions = PyImport_ImportModule("pkg.actions")) == NULL) {
322 return (NULL);
325 if ((nohash = PyBytes_FromStringAndSize("NOHASH", 6)) == NULL) {
328 return (NULL);