Expand PMF_FN_* macros.
[netbsd-mini2440.git] / dist / nvi / ex / ex_set.c
blob7a1c85cd42459ab81d20940cd8fd97c00c9933b6
1 /* $NetBSD$ */
3 /*-
4 * Copyright (c) 1992, 1993, 1994
5 * The Regents of the University of California. All rights reserved.
6 * Copyright (c) 1992, 1993, 1994, 1995, 1996
7 * Keith Bostic. All rights reserved.
9 * See the LICENSE file for redistribution information.
12 #include "config.h"
14 #ifndef lint
15 static const char sccsid[] = "Id: ex_set.c,v 10.8 2001/06/25 15:19:19 skimo Exp (Berkeley) Date: 2001/06/25 15:19:19";
16 #endif /* not lint */
18 #include <sys/types.h>
19 #include <sys/queue.h>
21 #include <bitstring.h>
22 #include <limits.h>
23 #include <stdio.h>
25 #include "../common/common.h"
28 * ex_set -- :set
29 * Ex set option.
31 * PUBLIC: int ex_set __P((SCR *, EXCMD *));
33 int
34 ex_set(SCR *sp, EXCMD *cmdp)
36 switch(cmdp->argc) {
37 case 0:
38 opts_dump(sp, CHANGED_DISPLAY);
39 break;
40 default:
41 if (opts_set(sp, cmdp->argv, cmdp->cmd->usage))
42 return (1);
43 break;
45 return (0);