]> granicus.if.org Git - php/commitdiff
namespace protect one enum to fix compile with ncurses
authorThies C. Arntzen <thies@php.net>
Tue, 12 Jun 2001 21:34:47 +0000 (21:34 +0000)
committerThies C. Arntzen <thies@php.net>
Tue, 12 Jun 2001 21:34:47 +0000 (21:34 +0000)
ext/mailparse/rfc2045.h
ext/mailparse/rfc2045acprep.c

index 388620d40e70b0a49b7940dafe59a10dec53fb56..a9f445e8344ee14a9187723e0a2be56d0ebb3362 100755 (executable)
@@ -160,11 +160,11 @@ struct  rfc2045ac {
        int curlinepos;
        struct rfc2045 *currwp;
        enum {
-               raw,
-               quotedprint,
-               qpseeneq,
-               qpseeneqh,
-               base64
+               rfc2045ac_raw,
+               rfc2045ac_quotedprint,
+               rfc2045ac_qpseeneq,
+               rfc2045ac_qpseeneqh,
+               rfc2045ac_base64
        } curstate;
        int statechar;
 
index 7f625b57c8274b3f3e3b993c0d69c5437a956d7b..acbc5600921a0106d3b7ed59e68d34ac42333e89 100644 (file)
@@ -39,14 +39,14 @@ static void start_rwprep(struct rfc2045ac * this_ptr, struct rfc2045 *p)
 {
        this_ptr->currwp = p;
        this_ptr->curlinepos=0;
-       this_ptr->curstate=raw;
+       this_ptr->curstate=rfc2045ac_raw;
        if (p->content_transfer_encoding)
        {
                if (strcmp(p->content_transfer_encoding,
                        "quoted-printable") == 0)
-                       this_ptr->curstate = quotedprint;
+                       this_ptr->curstate = rfc2045ac_quotedprint;
                else if (strcmp(p->content_transfer_encoding, "base64") == 0)
-                       this_ptr->curstate = base64;
+                       this_ptr->curstate = rfc2045ac_base64;
        }
 }
 
@@ -56,14 +56,14 @@ static void do_rwprep(struct rfc2045ac * this_ptr, const char * p, size_t n)
                return;
        for ( ; n; --n, ++p)
                switch (this_ptr->curstate)     {
-               case quotedprint:
+               case rfc2045ac_quotedprint:
                        if (*p == '=')
                        {
-                               this_ptr->curstate = qpseeneq;
+                               this_ptr->curstate = rfc2045ac_qpseeneq;
                                continue;
                        }
                        /* FALLTHRU */
-               case raw:
+               case rfc2045ac_raw:
                        if (*p == '\r' || *p == '\n')
                                this_ptr->curlinepos = 0;
                        else if (++this_ptr->curlinepos > 500)
@@ -71,25 +71,25 @@ static void do_rwprep(struct rfc2045ac * this_ptr, const char * p, size_t n)
                        if ((unsigned char)*p >= 127)
                                this_ptr->currwp->has8bitchars = 1;
                        break;
-               case qpseeneq:
+               case rfc2045ac_qpseeneq:
                        if (*p == '\n')
                        {
-                               this_ptr->curstate = quotedprint;
+                               this_ptr->curstate = rfc2045ac_quotedprint;
                                continue;
                        }
                        if (isspace((int)(unsigned char)*p))    continue; /* Ignore WSP */
                        this_ptr->statechar = *p;
-                       this_ptr->curstate = qpseeneqh;
+                       this_ptr->curstate = rfc2045ac_qpseeneqh;
                        continue;
-               case qpseeneqh:
-                       this_ptr->curstate = quotedprint;
+               case rfc2045ac_qpseeneqh:
+                       this_ptr->curstate = rfc2045ac_quotedprint;
                        if ( (unsigned char)
                                ( (h2nyb(this_ptr->statechar) << 4) + h2nyb(*p) ) >= 127
                                ) this_ptr->currwp->has8bitchars=1;
                        if (++this_ptr->curlinepos > 500)
                                this_ptr->currwp->haslongline=1;
                        continue;
-               case base64:
+               case rfc2045ac_base64:
                        break;
                }
 }