]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
move T_OP_PREPEND
authorAlan T. DeKok <aland@freeradius.org>
Fri, 19 Nov 2021 20:33:09 +0000 (15:33 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 19 Nov 2021 20:37:02 +0000 (15:37 -0500)
so that it's with the other assignment operators

src/lib/util/token.h

index ec7cf3be785239141254f28a5206749225e4703d..cc883c2c21126218c3de5e40b1463f4fea4f4bf8 100644 (file)
@@ -41,28 +41,42 @@ typedef enum fr_token {
        T_LCBRACE,                      /* { */
        T_RCBRACE,                      /* } */
        T_LBRACE,                       /* ( */
-       T_RBRACE,                       /* )             5 */
+       T_RBRACE,                       /* ) */
        T_COMMA,                        /* , */
        T_SEMICOLON,                    /* ; */
 
        T_OP_INCRM,                     /* ++ */
+
+       /*
+        *      Assignment operators.
+        */
        T_OP_ADD_EQ,                    /* += */
-       T_OP_SUB_EQ,                    /* -=           10 */
+       T_OP_SUB_EQ,                    /* -= */
        T_OP_SET,                       /* := */
+       T_OP_PREPEND,                   /* ^= */
+
        T_OP_EQ,                        /* = */
+
+       /*
+        *      Comparison operators.
+        */
        T_OP_NE,                        /* != */
        T_OP_GE,                        /* >= */
-       T_OP_GT,                        /* >            15 */
+       T_OP_GT,                        /* >  */
        T_OP_LE,                        /* <= */
        T_OP_LT,                        /* < */
        T_OP_REG_EQ,                    /* =~ */
        T_OP_REG_NE,                    /* !~ */
-       T_OP_CMP_TRUE,                  /* =*           20 */
+       T_OP_CMP_TRUE,                  /* =* */
        T_OP_CMP_FALSE,                 /* !* */
        T_OP_CMP_EQ,                    /* == */
-       T_OP_PREPEND,                   /* ^= */
+
+       /*
+        *      T_HASH MUST be after all of various assignment
+        *      operators.  See fr_token_quote[].
+        */
        T_HASH,                         /* # */
-       T_BARE_WORD,                    /* bare word    25 */
+       T_BARE_WORD,                    /* bare word */
        T_DOUBLE_QUOTED_STRING,         /* "foo" */
        T_SINGLE_QUOTED_STRING,         /* 'foo' */
        T_BACK_QUOTED_STRING,           /* `foo` */