*** empty log message ***
[nvi.git] / common / nothread.c
blobf88387ed09998a51b6b3b2d3f6cec04c3c5c776c
1 /*-
2 * Copyright (c) 2000
3 * Sven Verdoolaege. All rights reserved.
5 * See the LICENSE file for redistribution information.
6 */
8 #include "config.h"
10 #ifndef lint
11 static const char sccsid[] = "$Id: nothread.c,v 1.2 2000/07/04 21:48:53 skimo Exp $ (Berkeley) $Date: 2000/07/04 21:48:53 $";
12 #endif /* not lint */
14 #include <sys/types.h>
15 #include <sys/queue.h>
17 #include <bitstring.h>
18 #include <ctype.h>
19 #include <errno.h>
20 #include <stdio.h>
21 #include <stdlib.h>
22 #include <string.h>
23 #include <unistd.h>
25 #include "../common/common.h"
27 static void vi_nothread_run __P((WIN *wp, void (*fun)(void*), void *data));
30 * thread_init
32 * PUBLIC: void thread_init __P((GS *gp));
34 void
35 thread_init(GS *gp)
37 gp->run = vi_nothread_run;
40 static void
41 vi_nothread_run(WIN *wp, void (*fun)(void*), void *data)
43 fun(data);