summaryrefslogtreecommitdiffstats
path: root/libman.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-06-09 19:22:56 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-06-09 19:22:56 +0000
commitc92be367f7c707418fe2a4beb17688dffa614781 (patch)
treead1bf921cea730c33b344ec8d7a420a9c758d32d /libman.h
parenta560a18cf09008f29e00db4014ecd394727489c8 (diff)
downloadmandoc-c92be367f7c707418fe2a4beb17688dffa614781.tar.gz
Squash bug noted by Ulrich Spoerlein where "-" were being converted to
ASCII_HYPH, as per normal, but were screwing up mandoc_special(). Fixed by making mandoc_special() first check isspace() instead of ! isgraph(), then normalise its string as it passes out. This require de-constifying some validation routines not already de-constified (those in libman), but that's ok, because I'd like to be pushing actions into validation routines to save on space and redundant calculations.
Diffstat (limited to 'libman.h')
-rw-r--r--libman.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libman.h b/libman.h
index 19738a1b..4f4da709 100644
--- a/libman.h
+++ b/libman.h
@@ -79,7 +79,7 @@ int man_args(struct man *, int, int *, char *, char **);
int man_vmsg(struct man *, enum mandocerr,
int, int, const char *, ...);
int man_valid_post(struct man *);
-int man_valid_pre(struct man *, const struct man_node *);
+int man_valid_pre(struct man *, struct man_node *);
int man_action_post(struct man *);
int man_action_pre(struct man *, struct man_node *);
int man_unscope(struct man *,