common/log.c: minor whitespace change
[nvi.git] / ex / ex_open.c
blobc24abad902c81519bb0fd796a1467bf42b01c2e2
1 /*-
2 * Copyright (c) 1993, 1994
3 * The Regents of the University of California. All rights reserved.
4 * Copyright (c) 1993, 1994, 1995, 1996
5 * Keith Bostic. 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: ex_open.c,v 10.8 2001/06/25 15:19:17 skimo Exp $ (Berkeley) $Date: 2001/06/25 15:19:17 $";
14 #endif /* not lint */
16 #include <sys/types.h>
17 #include <sys/queue.h>
19 #include <bitstring.h>
20 #include <limits.h>
21 #include <stdio.h>
23 #include "../common/common.h"
26 * ex_open -- :[line] o[pen] [/pattern/] [flags]
28 * Switch to single line "open" mode.
30 * PUBLIC: int ex_open __P((SCR *, EXCMD *));
32 int
33 ex_open(SCR *sp, EXCMD *cmdp)
35 /* If open option off, disallow open command. */
36 if (!O_ISSET(sp, O_OPEN)) {
37 msgq(sp, M_ERR,
38 "140|The open command requires that the open option be set");
39 return (1);
42 msgq(sp, M_ERR, "141|The open command is not yet implemented");
43 return (1);