Expand PMF_FN_* macros.
[netbsd-mini2440.git] / dist / nvi / ex / ex_mark.c
blob12d938c76d3e61d32e55d6839abd244454af8c31
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_mark.c,v 10.9 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_mark -- :mark char
29 * :k char
30 * Mark lines.
33 * PUBLIC: int ex_mark __P((SCR *, EXCMD *));
35 int
36 ex_mark(SCR *sp, EXCMD *cmdp)
38 NEEDFILE(sp, cmdp);
40 if (cmdp->argv[0]->len != 1) {
41 msgq(sp, M_ERR, "136|Mark names must be a single character");
42 return (1);
44 return (mark_set(sp, cmdp->argv[0]->bp[0], &cmdp->addr1, 1));