8354 sync regcomp(3C) with upstream (fix make catalog)
[unleashed/tickless.git] / usr / src / cmd / eqn / mark.c
blobc9a0fcd7eeab6dc66f2827e100d8d9d35c12d6ed
1 /*
2 * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
3 * Use is subject to license terms.
4 */
6 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
7 /* All Rights Reserved */
9 /*
10 * Copyright (c) 1980 Regents of the University of California.
11 * All rights reserved. The Berkeley software License Agreement
12 * specifies the terms and conditions for redistribution.
15 #pragma ident "%Z%%M% %I% %E% SMI"
17 #include "e.h"
19 void
20 mark(int p1)
22 markline = 1;
23 printf(".ds %d \\k(97\\*(%d\n", p1, p1);
24 yyval = p1;
25 if (dbg) printf(".\tmark %d\n", p1);
28 void
29 lineup(int p1)
31 markline = 1;
32 if (p1 == 0) {
33 yyval = oalloc();
34 printf(".ds %d \\h'|\\n(97u'\n", yyval);
36 if (dbg) printf(".\tlineup %d\n", p1);