[BACK]Return to mansearch.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/mansearch.c between version 1.20 and 1.21

version 1.20, 2014/01/19 01:18:34 version 1.21, 2014/01/19 23:09:30
Line 608  exprterm(const struct mansearch *search, char *buf, in
Line 608  exprterm(const struct mansearch *search, char *buf, in
                 e->bits = search->deftype;                  e->bits = search->deftype;
   
         if ('~' == *v++) {          if ('~' == *v++) {
                   if (NULL != strstr(buf, "arch"))
                           cs = 0;
                 if (0 != (irc = regcomp(&e->regexp, v,                  if (0 != (irc = regcomp(&e->regexp, v,
                     REG_EXTENDED | REG_NOSUB | (cs ? 0 : REG_ICASE)))) {                      REG_EXTENDED | REG_NOSUB | (cs ? 0 : REG_ICASE)))) {
                         regerror(irc, &e->regexp, errbuf, sizeof(errbuf));                          regerror(irc, &e->regexp, errbuf, sizeof(errbuf));

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

CVSweb