xref: /illumos-gate/usr/src/cmd/eqn/mark.c (revision e3ae4b35c024af1196582063ecee3ab79367227d)
1 /*
2  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
3  * Use is subject to license terms.
4  */
5 
6 /*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
7 /*	  All Rights Reserved  	*/
8 
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.
13  */
14 
15 #include "e.h"
16 
17 void
18 mark(int p1)
19 {
20 	markline = 1;
21 	printf(".ds %d \\k(97\\*(%d\n", p1, p1);
22 	yyval = p1;
23 	if (dbg) printf(".\tmark %d\n", p1);
24 }
25 
26 void
27 lineup(int p1)
28 {
29 	markline = 1;
30 	if (p1 == 0) {
31 		yyval = oalloc();
32 		printf(".ds %d \\h'|\\n(97u'\n", yyval);
33 	}
34 	if (dbg) printf(".\tlineup %d\n", p1);
35 }
36