aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/eqn/mark.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2004-05-15 23:24:00 +0000
committerrsc <devnull@localhost>2004-05-15 23:24:00 +0000
commit5cedca1b69d020c32466f70843a11767773d7e3b (patch)
treea15a3d84e92aa262543b0010763a5e6920c9ba24 /src/cmd/eqn/mark.c
parent76e6aca867e3e48ea04fbcf7284c45369a69829e (diff)
downloadplan9port-5cedca1b69d020c32466f70843a11767773d7e3b.tar.gz
plan9port-5cedca1b69d020c32466f70843a11767773d7e3b.tar.bz2
plan9port-5cedca1b69d020c32466f70843a11767773d7e3b.zip
Let's try this. It's BUGGERED.
Diffstat (limited to 'src/cmd/eqn/mark.c')
-rw-r--r--src/cmd/eqn/mark.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/cmd/eqn/mark.c b/src/cmd/eqn/mark.c
new file mode 100644
index 00000000..f02e6779
--- /dev/null
+++ b/src/cmd/eqn/mark.c
@@ -0,0 +1,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", yyval);
+ }
+ dprintf(".\tlineup %d\n", p1);
+}