Expand PMF_FN_* macros.
[netbsd-mini2440.git] / dist / nvi / ex / ex_open.c
blobbb0a1df59b996d8351a6b05efc2fd812cf7e774e
1 /* $NetBSD$ */
3 /*-
4 * Copyright (c) 1993, 1994
5 * The Regents of the University of California. All rights reserved.
6 * Copyright (c) 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_open.c,v 10.8 2001/06/25 15:19:17 skimo Exp (Berkeley) Date: 2001/06/25 15:19:17";
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_open -- :[line] o[pen] [/pattern/] [flags]
30 * Switch to single line "open" mode.
32 * PUBLIC: int ex_open __P((SCR *, EXCMD *));
34 int
35 ex_open(SCR *sp, EXCMD *cmdp)
37 /* If open option off, disallow open command. */
38 if (!O_ISSET(sp, O_OPEN)) {
39 msgq(sp, M_ERR,
40 "140|The open command requires that the open option be set");
41 return (1);
44 msgq(sp, M_ERR, "141|The open command is not yet implemented");
45 return (1);