aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-07-27 12:41:02 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-07-27 12:41:02 +0000
commit41fb753e38e93d33d278d5b1ec34681285bc19f6 (patch)
tree2be9a755fa73b41757423c0d66fdab29f84b21a1 /mdoc.c
parentb15d8ed53a62b1e387e33a9390c1c9d858862601 (diff)
downloadmandoc-41fb753e38e93d33d278d5b1ec34681285bc19f6.tar.gz
mandoc-41fb753e38e93d33d278d5b1ec34681285bc19f6.tar.zst
mandoc-41fb753e38e93d33d278d5b1ec34681285bc19f6.zip
Disable in-line eqn processing for a bit.
Diffstat (limited to 'mdoc.c')
-rw-r--r--mdoc.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/mdoc.c b/mdoc.c
index 4d3c5fb6..cdeb88bf 100644
--- a/mdoc.c
+++ b/mdoc.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc.c,v 1.192 2011/07/27 07:09:41 kristaps Exp $ */
+/* $Id: mdoc.c,v 1.193 2011/07/27 12:41:02 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010 Ingo Schwarze <schwarze@openbsd.org>
@@ -97,7 +97,9 @@ static struct mdoc_node *node_alloc(struct mdoc *, int, int,
enum mdoct, enum mdoc_type);
static int node_append(struct mdoc *,
struct mdoc_node *);
+#if 0
static int mdoc_preptext(struct mdoc *, int, char *, int);
+#endif
static int mdoc_ptext(struct mdoc *, int, char *, int);
static int mdoc_pmacro(struct mdoc *, int, char *, int);
@@ -300,7 +302,7 @@ mdoc_parseln(struct mdoc *m, int ln, char *buf, int offs)
return(mandoc_getcontrol(buf, &offs) ?
mdoc_pmacro(m, ln, buf, offs) :
- mdoc_preptext(m, ln, buf, offs));
+ mdoc_ptext(m, ln, buf, offs));
}
int
@@ -651,6 +653,7 @@ mdoc_node_delete(struct mdoc *m, struct mdoc_node *p)
mdoc_node_free(p);
}
+#if 0
/*
* Pre-treat a text line.
* Text lines can consist of equations, which must be handled apart from
@@ -702,6 +705,7 @@ mdoc_preptext(struct mdoc *m, int line, char *buf, int offs)
return(1);
}
+#endif
/*
* Parse free-form text, that is, a line that does not begin with the