aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/htmlroff/t12.c
blob: 5ec577d353c56cad1033cfcfaa9f3549d7d52ca0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#include "a.h"

/*
 * 12. Overstrike, bracket, line-drawing, graphics, and zero-width functions.
 */

/*
	\o'asdf'
	\zc
	\b'asdf'
	\l'Nc'
	\L'Nc'
	\D'xxx'
*/

int
e_o(void)
{
	pushinputstring(getqarg());
	return 0;
}

int
e_z(void)
{
	getnext();
	return 0;
}

int
e_b(void)
{
	pushinputstring(getqarg());
	return 0;
}

int
e_l(void)
{
	getqarg();
	return 0;
}

int
e_L(void)
{
	getqarg();
	return 0;
}

int
e_D(void)
{
	getqarg();
	return 0;
}

void
t12init(void)
{
	addesc('o', e_o, 0);
	addesc('z', e_z, 0);
	addesc('b', e_b, 0);
	addesc('l', e_l, 0);
	addesc('L', e_L, 0);
	addesc('D', e_D, 0);
}