aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/eqn/mark.c
blob: e6bd90223ded94ad9245a86a918faca032262193 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include "e.h"

void mark(int p1)
{
	markline = 1;
	printf(".ds %d \\k(09\\*(%d\n", p1, p1);
	yyval = p1;
	dprintf(".\tmark %d\n", p1);
}

void lineup(int p1)
{
	markline = 2;
	if (p1 == 0) {
		yyval = salloc();
		printf(".ds %d \\h'|\\n(09u'\n", (int)yyval);
	}
	dprintf(".\tlineup %d\n", p1);
}