Lines Matching refs:wp
39 static IP_PRIVATE *ip_init __P((WIN *wp, int i_fd, int o_fd, int, int argc, char *argv[]));
42 static int get_connection __P((WIN *wp, int main_ifd, int main_ofd,
57 WIN *wp; in main() local
98 wp = NULL; in main()
100 while (get_connection(wp, main_ifd, main_ofd, &i_fd, &o_fd, &t_fd, 1) == 0) { in main()
102 wp = gs_new_win(gp); in main()
105 if ((ipp = ip_init(wp, i_fd, o_fd, t_fd, argc, argv)) == NULL) in main()
108 gp->run(wp, run_editor, (void *)wp); in main()
126 WIN *wp; in run_editor() local
131 wp = (WIN *) vp; in run_editor()
132 gp = wp->gp; in run_editor()
133 ipp = wp->ip_private; in run_editor()
145 if (ip_wevent(wp, NULL, &ev, 0, 0)) in run_editor()
157 rval = editor(wp, ipp->argc, ipp->argv); in run_editor()
160 (void)ip_quit(wp); in run_editor()
170 win_end(wp); in run_editor()
183 ip_init(WIN *wp, int i_fd, int o_fd, int t_fd, int argc, char *argv[]) in ip_init() argument
190 perr(wp->gp->progname, NULL); in ip_init()
191 wp->ip_private = ipp; in ip_init()
201 ip_func_std(wp); in ip_init()
231 get_connection(WIN *wp, int main_ifd, int main_ofd, in get_connection() argument
237 if (wp == NULL) { /* First call */ in get_connection()
279 ip_func_std(WIN *wp) in ip_func_std() argument
283 gp = wp->gp; in ip_func_std()
305 wp->scr_msg = ip_msg; in ip_func_std()