Lines Matching refs:NULL
60 if (cl == NULL) { in test_cmdline_parse_fns()
65 if (cmdline_parse(NULL, "buffer") >= 0) in test_cmdline_parse_fns()
67 if (cmdline_parse(cl, NULL) >= 0) in test_cmdline_parse_fns()
70 if (cmdline_complete(NULL, "buffer", &i, dst, sizeof(dst)) >= 0) in test_cmdline_parse_fns()
72 if (cmdline_complete(cl, NULL, &i, dst, sizeof(dst)) >= 0) in test_cmdline_parse_fns()
74 if (cmdline_complete(cl, "buffer", NULL, dst, sizeof(dst)) >= 0) in test_cmdline_parse_fns()
76 if (cmdline_complete(cl, "buffer", &i, NULL, sizeof(dst)) >= 0) in test_cmdline_parse_fns()
96 rdl = rdline_new(NULL, v, c, NULL); in test_cmdline_rdline_fns()
97 if (rdl != NULL) in test_cmdline_rdline_fns()
99 rdl = rdline_new(wc, NULL, c, NULL); in test_cmdline_rdline_fns()
100 if (rdl != NULL) in test_cmdline_rdline_fns()
102 rdl = rdline_new(wc, v, NULL, NULL); in test_cmdline_rdline_fns()
103 if (rdl != NULL) in test_cmdline_rdline_fns()
105 if (rdline_char_in(NULL, 0) >= 0) in test_cmdline_rdline_fns()
107 if (rdline_get_buffer(NULL) != NULL) in test_cmdline_rdline_fns()
109 if (rdline_add_history(NULL, "history") >= 0) in test_cmdline_rdline_fns()
111 if (rdline_add_history(rdl, NULL) >= 0) in test_cmdline_rdline_fns()
113 if (rdline_get_history_item(NULL, 0) != NULL) in test_cmdline_rdline_fns()
117 rdline_get_history_buffer_size(NULL); in test_cmdline_rdline_fns()
118 rdline_get_opaque(NULL); in test_cmdline_rdline_fns()
119 rdline_newline(NULL, "prompt"); in test_cmdline_rdline_fns()
120 rdline_newline(rdl, NULL); in test_cmdline_rdline_fns()
121 rdline_stop(NULL); in test_cmdline_rdline_fns()
122 rdline_quit(NULL); in test_cmdline_rdline_fns()
123 rdline_restart(NULL); in test_cmdline_rdline_fns()
124 rdline_redisplay(NULL); in test_cmdline_rdline_fns()
125 rdline_reset(NULL); in test_cmdline_rdline_fns()
126 rdline_clear_history(NULL); in test_cmdline_rdline_fns()
127 rdline_free(NULL); in test_cmdline_rdline_fns()
141 if (vt100_parser(NULL, 0) >= 0) { in test_cmdline_vt100_fns()
147 vt100_init(NULL); in test_cmdline_vt100_fns()
158 cl = cmdline_stdin_new(NULL, "prompt"); in test_cmdline_socket_fns()
159 if (cl != NULL) in test_cmdline_socket_fns()
161 cl = cmdline_stdin_new(&ctx, NULL); in test_cmdline_socket_fns()
162 if (cl != NULL) in test_cmdline_socket_fns()
164 cl = cmdline_file_new(NULL, "prompt", NULL_INPUT); in test_cmdline_socket_fns()
165 if (cl != NULL) in test_cmdline_socket_fns()
167 cl = cmdline_file_new(&ctx, NULL, NULL_INPUT); in test_cmdline_socket_fns()
168 if (cl != NULL) in test_cmdline_socket_fns()
170 cl = cmdline_file_new(&ctx, "prompt", NULL); in test_cmdline_socket_fns()
171 if (cl != NULL) in test_cmdline_socket_fns()
174 if (cl != NULL) { in test_cmdline_socket_fns()
180 if (cl == NULL) { in test_cmdline_socket_fns()
185 cl = NULL; in test_cmdline_socket_fns()
188 cmdline_stdin_exit(NULL); in test_cmdline_socket_fns()
204 cl = cmdline_new(NULL, "prompt", 0, 0); in test_cmdline_fns()
205 if (cl != NULL) in test_cmdline_fns()
207 cl = cmdline_new(&ctx, NULL, 0, 0); in test_cmdline_fns()
208 if (cl != NULL) in test_cmdline_fns()
211 if (cl == NULL) in test_cmdline_fns()
213 if (cmdline_in(NULL, "buffer", CMDLINE_TEST_BUFSIZE) >= 0) in test_cmdline_fns()
215 if (cmdline_in(cl, NULL, CMDLINE_TEST_BUFSIZE) >= 0) in test_cmdline_fns()
217 if (cmdline_write_char(NULL, 0) >= 0) in test_cmdline_fns()
221 cmdline_set_prompt(NULL, "prompt"); in test_cmdline_fns()
222 cmdline_free(NULL); in test_cmdline_fns()
223 cmdline_printf(NULL, "format"); in test_cmdline_fns()
224 cmdline_interact(NULL); in test_cmdline_fns()
225 cmdline_quit(NULL); in test_cmdline_fns()
232 if (cl != NULL) in test_cmdline_fns()