xref: /titanic_41/usr/src/cmd/eqn/mark.c (revision 26d8ba2242584067b65160d24193c37cdc83cd55)
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 #pragma ident	"%Z%%M%	%I%	%E% SMI"
16 
17 #include "e.h"
18 
19 void
20 mark(int p1)
21 {
22 	markline = 1;
23 	printf(".ds %d \\k(97\\*(%d\n", p1, p1);
24 	yyval = p1;
25 	if (dbg) printf(".\tmark %d\n", p1);
26 }
27 
28 void
29 lineup(int p1)
30 {
31 	markline = 1;
32 	if (p1 == 0) {
33 		yyval = oalloc();
34 		printf(".ds %d \\h'|\\n(97u'\n", yyval);
35 	}
36 	if (dbg) printf(".\tlineup %d\n", p1);
37 }
38