Changed a macro name from _Q to _Q2 to avoid a clash with the
authorAndreas Schulz <ats@g386bsd.first.bmd.de>
Thu, 7 Apr 1994 14:34:25 +0000 (14:34 +0000)
committerAndreas Schulz <ats@g386bsd.first.bmd.de>
Thu, 7 Apr 1994 14:34:25 +0000 (14:34 +0000)
newly introduced _Q macro in ctype.h.

bin/csh/char.c
bin/csh/char.h
bin/csh/dol.c
bin/csh/lex.c

index f552a28..eb2dab6 100644 (file)
@@ -63,10 +63,10 @@ unsigned short _cmap[256] = {
        _CTR,           _CTR,           _CTR,           _CTR,
 
 /*     sp              !               "               #       */
        _CTR,           _CTR,           _CTR,           _CTR,
 
 /*     sp              !               "               #       */
-       _SP|_META,      0,              _Q            _META,
+       _SP|_META,      0,              _Q2,            _META,
 
 /*     $               %               &               '       */
 
 /*     $               %               &               '       */
-       _DOL,           0,              _META|_CMD,     _Q,
+       _DOL,           0,              _META|_CMD,     _Q2,
 
 /*     (               )               *               +       */
        _META|_CMD,     _META,          _GLOB,          0,
 
 /*     (               )               *               +       */
        _META|_CMD,     _META,          _GLOB,          0,
index 297a6ee..4754368 100644 (file)
@@ -42,7 +42,7 @@ extern unsigned char _cmap_lower[], _cmap_upper[];
 
 #endif
 
 
 #endif
 
-#define        _Q      0x0001          /* '" */
+#define        _Q2     0x0001          /* '" */
 #define        _Q1     0x0002          /* ` */
 #define        _SP     0x0004          /* space and tab */
 #define        _NL     0x0008          /* \n */
 #define        _Q1     0x0002          /* ` */
 #define        _SP     0x0004          /* space and tab */
 #define        _NL     0x0008          /* \n */
index d2b28f5..816b458 100644 (file)
@@ -66,7 +66,7 @@ static Char *Dcp, **Dvp;      /* Input vector for Dreadc */
 
 #define        unDgetC(c)      Dpeekc = c
 
 
 #define        unDgetC(c)      Dpeekc = c
 
-#define QUOTES         (_Q|_Q1|_ESC)   /* \ ' " ` */
+#define QUOTES         (_Q2|_Q1|_ESC)  /* \ ' " ` */
 
 /*
  * The following variables give the information about the current
 
 /*
  * The following variables give the information about the current
@@ -192,7 +192,7 @@ Dpack(wbuf, wp)
            Gcat(STRNULL, wbuf);
            return (NULL);
        }
            Gcat(STRNULL, wbuf);
            return (NULL);
        }
-       if (cmap(c, _SP | _NL | _Q | _Q1)) {    /* sp \t\n'"` */
+       if (cmap(c, _SP | _NL | _Q2 | _Q1)) {   /* sp \t\n'"` */
            unDgetC(c);
            if (cmap(c, QUOTES))
                return (wp);
            unDgetC(c);
            if (cmap(c, QUOTES))
                return (wp);
index 63af5da..75fb7e3 100644 (file)
@@ -315,7 +315,7 @@ loop:
                break;
            }
        }
                break;
            }
        }
-       else if (cmap(c, _META | _Q | _Q1 | _ESC)) {
+       else if (cmap(c, _META | _Q2 | _Q1 | _ESC)) {
            if (c == '\\') {
                c = getC(0);
                if (c == '\n') {
            if (c == '\\') {
                c = getC(0);
                if (c == '\n') {
@@ -327,7 +327,7 @@ loop:
                    *wp++ = '\\', --i;
                c |= QUOTE;
            }
                    *wp++ = '\\', --i;
                c |= QUOTE;
            }
-           else if (cmap(c, _Q | _Q1)) {       /* '"` */
+           else if (cmap(c, _Q2 | _Q1)) {      /* '"` */
                c1 = c;
                dolflg = c == '"' ? DOALL : DOEXCL;
            }
                c1 = c;
                dolflg = c == '"' ? DOALL : DOEXCL;
            }
@@ -366,7 +366,7 @@ getC1(flag)
            if ((c = *lap++) == 0)
                lap = 0;
            else {
            if ((c = *lap++) == 0)
                lap = 0;
            else {
-               if (cmap(c, _META | _Q | _Q1))
+               if (cmap(c, _META | _Q2 | _Q1))
                    c |= QUOTE;
                return (c);
            }
                    c |= QUOTE;
                return (c);
            }