gnats-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Changes to gnats/gnats/query.c


From: Milan Zamazal
Subject: Changes to gnats/gnats/query.c
Date: Sun, 10 Feb 2002 13:24:03 -0500

Index: gnats/gnats/query.c
diff -c gnats/gnats/query.c:1.55 gnats/gnats/query.c:1.56
*** gnats/gnats/query.c:1.55    Sat Dec  1 17:51:59 2001
--- gnats/gnats/query.c Sun Feb 10 13:24:02 2002
***************
*** 324,330 ****
  
  /* Return 0 if VALUE matched the regexp in PAT, 1 otherwise.  */
  int
! regcmp (const char *pat, const char *value, struct re_pattern_buffer *barg)
  {
    struct re_pattern_buffer buf;
    struct re_pattern_buffer *bufPtr;
--- 324,331 ----
  
  /* Return 0 if VALUE matched the regexp in PAT, 1 otherwise.  */
  int
! gnats_regcmp (const char *pat, const char *value,
!             struct re_pattern_buffer *barg)
  {
    struct re_pattern_buffer buf;
    struct re_pattern_buffer *bufPtr;
***************
*** 653,659 ****
        break;
  
      case RegCmp:
!       res = (regcmp (vals[1].value, vals[0].value, fields[1]->compRegexp) == 
0);
        break;
  
      case RegFind:
--- 654,661 ----
        break;
  
      case RegCmp:
!       res = (gnats_regcmp (vals[1].value, vals[0].value, 
fields[1]->compRegexp)
!            == 0);
        break;
  
      case RegFind:
***************
*** 1406,1413 ****
  
          while (pr != NULL)
            {
!             if (regcmp (pat, field_value (pr, NUMBER (pr->database)), &buf) 
!                 == 0)
                {
                  if (pr_matches_expr (pr, NULL, exp, NULL))
                    {
--- 1408,1415 ----
  
          while (pr != NULL)
            {
!             if (gnats_regcmp (pat, field_value (pr, NUMBER (pr->database)),
!                               &buf) == 0)
                {
                  if (pr_matches_expr (pr, NULL, exp, NULL))
                    {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]