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: Yngve Svendsen
Subject: Changes to gnats/gnats/query.c
Date: Mon, 25 Nov 2002 08:58:43 -0500

Index: gnats/gnats/query.c
diff -c gnats/gnats/query.c:1.56 gnats/gnats/query.c:1.57
*** gnats/gnats/query.c:1.56    Sun Feb 10 13:24:02 2002
--- gnats/gnats/query.c Mon Nov 25 08:58:33 2002
***************
*** 152,158 ****
    QueryFormat *res;
    FieldList currEnt = NULL;
  
!   while (expr[0] != '\0' && isspace ((int) expr[0]))
      {
        expr++;
      }
--- 152,158 ----
    QueryFormat *res;
    FieldList currEnt = NULL;
  
!   while (expr[0] != '\0' && isspace ((int)(unsigned char) expr[0]))
      {
        expr++;
      }
***************
*** 192,203 ****
        const char *nstart = expr;
        FieldList newEnt;
  
!       if (isspace ((int) expr[0]))
        {
          expr++;
          continue;
        }
!       while ((! isspace ((int) expr[0])) && expr[0] != '\0')
        {
          expr++;
        }
--- 192,203 ----
        const char *nstart = expr;
        FieldList newEnt;
  
!       if (isspace ((int)(unsigned char) expr[0]))
        {
          expr++;
          continue;
        }
!       while ((! isspace ((int)(unsigned char) expr[0])) && expr[0] != '\0')
        {
          expr++;
        }
***************
*** 1615,1625 ****
  static void
  stripWhiteSpace (const char **expr, const char **expend)
  {
!   while (expr <= expend && isspace ((int) **expr))
      {
        (*expr)++;
      }
!   while (expr <= expend && isspace ((int) **expend))
      {
        (*expend)--;
      }
--- 1615,1625 ----
  static void
  stripWhiteSpace (const char **expr, const char **expend)
  {
!   while (expr <= expend && isspace ((int)(unsigned char) **expr))
      {
        (*expr)++;
      }
!   while (expr <= expend && isspace ((int)(unsigned char) **expend))
      {
        (*expend)--;
      }




reply via email to

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