xref: /onnv-gate/usr/src/cmd/eqn/mark.c (revision 364:f36290b8cb0b)
1*364Sceastha /*
2*364Sceastha  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
3*364Sceastha  * Use is subject to license terms.
4*364Sceastha  */
5*364Sceastha 
60Sstevel@tonic-gate /*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
70Sstevel@tonic-gate /*	  All Rights Reserved  	*/
80Sstevel@tonic-gate 
90Sstevel@tonic-gate /*
100Sstevel@tonic-gate  * Copyright (c) 1980 Regents of the University of California.
110Sstevel@tonic-gate  * All rights reserved. The Berkeley software License Agreement
120Sstevel@tonic-gate  * specifies the terms and conditions for redistribution.
130Sstevel@tonic-gate  */
14*364Sceastha 
15*364Sceastha #pragma ident	"%Z%%M%	%I%	%E% SMI"
160Sstevel@tonic-gate 
170Sstevel@tonic-gate #include "e.h"
180Sstevel@tonic-gate 
19*364Sceastha void
mark(int p1)20*364Sceastha mark(int p1)
21*364Sceastha {
220Sstevel@tonic-gate 	markline = 1;
230Sstevel@tonic-gate 	printf(".ds %d \\k(97\\*(%d\n", p1, p1);
240Sstevel@tonic-gate 	yyval = p1;
25*364Sceastha 	if (dbg) printf(".\tmark %d\n", p1);
260Sstevel@tonic-gate }
270Sstevel@tonic-gate 
28*364Sceastha void
lineup(int p1)29*364Sceastha lineup(int p1)
30*364Sceastha {
310Sstevel@tonic-gate 	markline = 1;
320Sstevel@tonic-gate 	if (p1 == 0) {
330Sstevel@tonic-gate 		yyval = oalloc();
340Sstevel@tonic-gate 		printf(".ds %d \\h'|\\n(97u'\n", yyval);
350Sstevel@tonic-gate 	}
36*364Sceastha 	if (dbg) printf(".\tlineup %d\n", p1);
370Sstevel@tonic-gate }
38