diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-03-17 09:18:12 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-03-17 09:18:12 +0000 |
commit | 8efc30176986c7bf8c728cecbe5daafe5657732b (patch) | |
tree | 3ef8fb33d59d174fef02541c6323ce53acc3ac33 /mandoc.c | |
parent | e3df96e26436bd256a2aa5a33e49f9166ff6d4b6 (diff) | |
download | mandoc-8efc30176986c7bf8c728cecbe5daafe5657732b.tar.gz |
Tiny optimisation in mandoc_isdelim() check.
Diffstat (limited to 'mandoc.c')
-rw-r--r-- | mandoc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -549,9 +549,9 @@ mandoc_isdelim(const char *p) if ('\\' != p[0]) return(DELIM_NONE); - if (0 == strcmp(p, "\\.")) + if (0 == strcmp(p + 1, ".")) return(DELIM_CLOSE); - if (0 == strcmp(p, "\\*(Ba")) + if (0 == strcmp(p + 1, "*(Ba")) return(DELIM_MIDDLE); return(DELIM_NONE); |