Date: Mon, 27 Feb 2012 16:10:44 +0000 (UTC) From: Gabor Kovesdan <gabor@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r232220 - user/gabor/tre-integration/contrib/tre/lib Message-ID: <201202271610.q1RGAiPB025848@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: gabor Date: Mon Feb 27 16:10:44 2012 New Revision: 232220 URL: http://svn.freebsd.org/changeset/base/232220 Log: - Use fast matcher when possible (add missing return) Modified: user/gabor/tre-integration/contrib/tre/lib/regexec.c Modified: user/gabor/tre-integration/contrib/tre/lib/regexec.c ============================================================================== --- user/gabor/tre-integration/contrib/tre/lib/regexec.c Mon Feb 27 16:10:26 2012 (r232219) +++ user/gabor/tre-integration/contrib/tre/lib/regexec.c Mon Feb 27 16:10:44 2012 (r232220) @@ -167,8 +167,8 @@ tre_match(const regex_t *preg, const voi heur_t *heur = preg->heur; if ((shortcut != NULL) && (type != STR_USER)) - tre_match_fast(shortcut, string, len, type, nmatch, - pmatch, eflags); + return tre_match_fast(shortcut, string, len, type, nmatch, + pmatch, eflags); else if ((heur != NULL) && (type != STR_USER)) return tre_match_heur(tnfa, heur, string, len, type, nmatch, pmatch, eflags);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201202271610.q1RGAiPB025848>