/[emacs]/emacs/src/regex.c
ViewVC logotype

Diff of /emacs/src/regex.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.174.2.4 by handa, Thu Sep 19 00:40:09 2002 UTC revision 1.174.2.5 by handa, Mon Oct 7 12:58:29 2002 UTC
# Line 4099  re_search_2 (bufp, str1, size1, str2, si Line 4099  re_search_2 (bufp, str1, size1, str2, si
4099                int room = (startpos >= size1                int room = (startpos >= size1
4100                            ? size2 + size1 - startpos                            ? size2 + size1 - startpos
4101                            : size1 - startpos);                            : size1 - startpos);
               buf_ch = RE_STRING_CHAR (d, room);  
               if (! target_multibyte)  
                 MAKE_CHAR_MULTIBYTE (buf_ch);  
               buf_ch = TRANSLATE (buf_ch);  
4102    
4103                if (! fastmap[CHAR_LEADING_CODE (buf_ch)])                if (multibyte)
4104                  goto advance;                  {
4105                      /* Case of Emacs.  */
4106                      if (target_multibyte)
4107                        buf_ch = RE_STRING_CHAR (d, room);
4108                      else
4109                        {
4110                          buf_ch = *d;
4111                          MAKE_CHAR_MULTIBYTE (buf_ch);
4112                        }
4113                      buf_ch = TRANSLATE (buf_ch);
4114                      if (! fastmap[CHAR_LEADING_CODE (buf_ch)])
4115                        goto advance;
4116                    }
4117                  else
4118                    {
4119                      if (! fastmap[TRANSLATE (*d)])
4120                        goto advance;
4121                    }
4122              }              }
4123          }          }
4124    

Legend:
Removed from v.1.174.2.4  
changed lines
  Added in v.1.174.2.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26