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 | c951da7ef21e3e87c07a7d4b730990bef506f6d4 (patch) | |
| tree | 178d42b86a00f944f512c5f0695de105098a9465 | |
| parent | 154c74a463b9f4d0c87a3161a60df5ce17c366c9 (diff) | |
| download | mandoc-c951da7ef21e3e87c07a7d4b730990bef506f6d4.tar.gz mandoc-c951da7ef21e3e87c07a7d4b730990bef506f6d4.zip | |
Tiny optimisation in mandoc_isdelim() check.
| -rw-r--r-- | mandoc.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: mandoc.c,v 1.40 2011/03/17 09:16:38 kristaps Exp $ */ +/* $Id: mandoc.c,v 1.41 2011/03/17 09:18:12 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2011 Ingo Schwarze <schwarze@openbsd.org> @@ -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); |
