xref: /illumos-gate/usr/src/cmd/eqn/mark.c (revision 2a8bcb4e)
1*779fc935Sceastha /*
2*779fc935Sceastha  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
3*779fc935Sceastha  * Use is subject to license terms.
4*779fc935Sceastha  */
5*779fc935Sceastha 
67c478bd9Sstevel@tonic-gate /*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
77c478bd9Sstevel@tonic-gate /*	  All Rights Reserved  	*/
87c478bd9Sstevel@tonic-gate 
97c478bd9Sstevel@tonic-gate /*
107c478bd9Sstevel@tonic-gate  * Copyright (c) 1980 Regents of the University of California.
117c478bd9Sstevel@tonic-gate  * All rights reserved. The Berkeley software License Agreement
127c478bd9Sstevel@tonic-gate  * specifies the terms and conditions for redistribution.
137c478bd9Sstevel@tonic-gate  */
14*779fc935Sceastha 
157c478bd9Sstevel@tonic-gate #include "e.h"
167c478bd9Sstevel@tonic-gate 
17*779fc935Sceastha void
mark(int p1)18*779fc935Sceastha mark(int p1)
19*779fc935Sceastha {
207c478bd9Sstevel@tonic-gate 	markline = 1;
217c478bd9Sstevel@tonic-gate 	printf(".ds %d \\k(97\\*(%d\n", p1, p1);
227c478bd9Sstevel@tonic-gate 	yyval = p1;
23*779fc935Sceastha 	if (dbg) printf(".\tmark %d\n", p1);
247c478bd9Sstevel@tonic-gate }
257c478bd9Sstevel@tonic-gate 
26*779fc935Sceastha void
lineup(int p1)27*779fc935Sceastha lineup(int p1)
28*779fc935Sceastha {
297c478bd9Sstevel@tonic-gate 	markline = 1;
307c478bd9Sstevel@tonic-gate 	if (p1 == 0) {
317c478bd9Sstevel@tonic-gate 		yyval = oalloc();
327c478bd9Sstevel@tonic-gate 		printf(".ds %d \\h'|\\n(97u'\n", yyval);
337c478bd9Sstevel@tonic-gate 	}
34*779fc935Sceastha 	if (dbg) printf(".\tlineup %d\n", p1);
357c478bd9Sstevel@tonic-gate }
36