Expand PMF_FN_* macros.
[netbsd-mini2440.git] / dist / nvi / common / nothread.c
blob9a681eb5420f90cc74fbfa64e329cfd89bbfe2f6
1 /* $NetBSD$ */
3 /*-
4 * Copyright (c) 2000
5 * Sven Verdoolaege. All rights reserved.
7 * See the LICENSE file for redistribution information.
8 */
10 #include "config.h"
12 #ifndef lint
13 static const char sccsid[] = "Id: nothread.c,v 1.4 2000/07/22 14:52:37 skimo Exp (Berkeley) Date: 2000/07/22 14:52:37";
14 #endif /* not lint */
16 #include <sys/types.h>
17 #include <sys/queue.h>
19 #include <bitstring.h>
20 #include <ctype.h>
21 #include <errno.h>
22 #include <stdio.h>
23 #include <stdlib.h>
24 #include <string.h>
25 #include <unistd.h>
27 #include "../common/common.h"
29 static int vi_nothread_run __P((WIN *wp, void *(*fun)(void*), void *data));
30 static int vi_nothread_lock __P((WIN *, void **));
33 * thread_init
35 * PUBLIC: void thread_init __P((GS *gp));
37 void
38 thread_init(GS *gp)
40 gp->run = vi_nothread_run;
41 gp->lock_init = vi_nothread_lock;
42 gp->lock_end = vi_nothread_lock;
43 gp->lock_try = vi_nothread_lock;
44 gp->lock_unlock = vi_nothread_lock;
47 static int
48 vi_nothread_run(WIN *wp, void *(*fun)(void*), void *data)
50 fun(data);
51 return 0;
54 static int
55 vi_nothread_lock (WIN * wp, void **lp)
57 return 0;