From: Alan T. DeKok Date: Fri, 19 Nov 2021 20:33:09 +0000 (-0500) Subject: move T_OP_PREPEND X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c02735800d48ef850f22dd25ce937336a95b8ee;p=thirdparty%2Ffreeradius-server.git move T_OP_PREPEND so that it's with the other assignment operators --- diff --git a/src/lib/util/token.h b/src/lib/util/token.h index ec7cf3be785..cc883c2c211 100644 --- a/src/lib/util/token.h +++ b/src/lib/util/token.h @@ -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` */