diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-08-20 11:44:47 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-08-20 11:44:47 +0000 |
commit | ee5166e47bf9023c5bef7b18355da9392155a340 (patch) | |
tree | 10bff7e9c951755417181a6bdf93e325e752adc5 /mdoc.c | |
parent | 3585b83d67b5ef20e17f299831c92d657f1e0767 (diff) | |
download | mandoc-ee5166e47bf9023c5bef7b18355da9392155a340.tar.gz mandoc-ee5166e47bf9023c5bef7b18355da9392155a340.tar.zst mandoc-ee5166e47bf9023c5bef7b18355da9392155a340.zip |
Fix to libmdoc passing over delimiters.
`RS' and `RE' documented in man.7.
Diffstat (limited to 'mdoc.c')
-rw-r--r-- | mdoc.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -1,4 +1,4 @@ -/* $Id: mdoc.c,v 1.102 2009/08/19 14:09:33 kristaps Exp $ */ +/* $Id: mdoc.c,v 1.103 2009/08/20 11:44:47 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -682,7 +682,7 @@ macrowarn(struct mdoc *m, int ln, const char *buf) int parsemacro(struct mdoc *m, int ln, char *buf) { - int i, j, c, ppos; + int i, j, c; char mac[5]; /* Empty lines are ignored. */ @@ -702,8 +702,6 @@ parsemacro(struct mdoc *m, int ln, char *buf) return(1); } - ppos = i; - /* Copy the first word into a nil-terminated buffer. */ for (j = 0; j < 4; j++, i++) { @@ -736,7 +734,7 @@ parsemacro(struct mdoc *m, int ln, char *buf) * Begin recursive parse sequence. Since we're at the start of * the line, we don't need to do callable/parseable checks. */ - if ( ! mdoc_macro(m, c, ln, ppos, &i, buf)) + if ( ! mdoc_macro(m, c, ln, 1, &i, buf)) goto err; return(1); |