Lines Matching refs:NULL
62 if (av == NULL)
88 if (str == NULL)
102 if (av == NULL)
109 if ((list = PyList_New(2)) == NULL)
127 if ((val = Py_BuildValue("sis", str, pos, msg)) != NULL) {
138 if ((val = Py_BuildValue("ss", str, msg)) != NULL) {
153 char *s = NULL;
154 char *str = NULL;
155 char *hashstr = NULL;
156 char *keystr = NULL;
157 int *slashmap = NULL;
164 PyObject *act_args = NULL;
165 PyObject *act_class = NULL;
166 PyObject *act_data = NULL;
167 PyObject *action = NULL;
168 PyObject *hash = NULL;
169 PyObject *attrs = NULL;
170 PyObject *key = NULL;
171 PyObject *attr = NULL;
200 static char *kwlist[] = { "string", "data", NULL };
213 return (NULL);
219 if (s == NULL) {
222 return (NULL);
272 if (act_class == NULL) {
274 str, typestrl)) != NULL) {
278 return (NULL);
287 return (NULL);
292 if ((attrs = PyDict_New()) == NULL) {
294 return (NULL);
302 if (PyDict_Size(attrs) > 0 || hash != NULL) {
305 return (NULL);
314 if (hash == NULL) {
316 return (NULL);
321 return (NULL);
335 if (key == NULL) {
337 return (NULL);
344 return (NULL);
350 return (NULL);
366 return (NULL);
370 return (NULL);
381 return (NULL);
390 return (NULL);
403 if (slashmap == NULL) {
406 if (slashmap == NULL) {
421 if (slashmap == NULL) {
439 if (slashmap != NULL) {
445 if (sattr == NULL) {
464 slashmap = NULL;
473 if (attr == NULL) {
476 return (NULL);
488 if (attr == NULL) {
490 return (NULL);
499 return (NULL);
502 attr = NULL;
513 return (NULL);
535 return (NULL);
538 attr = NULL;
548 return (NULL);
559 return (NULL);
592 return (NULL);
595 attr = NULL;
604 return (NULL);
608 if (slashmap != NULL)
613 return (NULL);
617 return (NULL);
628 if ((act_args = Py_BuildValue("(O)", act_data)) == NULL) {
629 if (hash != NULL && hash != Py_None)
632 return (NULL);
643 if (action == NULL) {
644 if (hash != NULL && hash != Py_None)
646 return (NULL);
649 if (hash != NULL && hash != Py_None) {
653 return (NULL);
663 { NULL, NULL, 0, NULL }
670 NULL,
679 PyObject *action_types = NULL;
680 PyObject *pkg_actions = NULL;
681 PyObject *sys = NULL;
682 PyObject *sys_modules = NULL;
686 if ((m = PyModule_Create(&actionmodule)) == NULL)
687 return (NULL);
693 if (Py_InitModule("_actions", methods) == NULL)
694 return (NULL);
705 if ((sys = PyImport_ImportModule("sys")) == NULL)
706 return (NULL);
708 if ((sys_modules = PyObject_GetAttrString(sys, "modules")) == NULL)
709 return (NULL);
712 == NULL) {
716 return (NULL);
743 "types")) == NULL) {
745 return (NULL);
754 if ((cache_var = PyDict_GetItemString(action_types, name)) == NULL) { \
758 return (NULL); \