=================================================================== RCS file: /cvs/cvs/blind/parse.y,v retrieving revision 1.20 retrieving revision 1.21 diff -u -p -r1.20 -r1.21 --- blind/parse.y 2022/04/19 02:16:17 1.20 +++ blind/parse.y 2022/04/19 02:48:43 1.21 @@ -70,7 +70,7 @@ static struct file *f = NULL; %} -%token ACTION ARROW DISABLE ENABLE EXPIRE ERROR SET +%token ACTION ARROW COMPRESSION DISABLE ENABLE EXPIRE ERROR SET %token NUMBER %token STRING @@ -103,12 +103,18 @@ varset : STRING '=' STRING { set : SET EXPIRE NUMBER { env->bl_ttl = $3; } -| SET ACTION ENABLE { + | SET ACTION ENABLE { env->bl_opt |= BL_OPT_ACTION; - } -| SET ACTION DISABLE { +} + | SET ACTION DISABLE { env->bl_opt |= !BL_OPT_ACTION; - } +} + | SET COMPRESSION ENABLE { + env->bl_opt |= BL_OPT_COMPRESS; +} + | SET COMPRESSION DISABLE { + env->bl_opt |= !BL_OPT_COMPRESS; +} ; %% @@ -144,11 +150,12 @@ int lookup(char *s) { static const struct keywords keywords[] = { - { "action", ACTION }, - { "disable", DISABLE }, - { "enable", ENABLE }, - { "expire", EXPIRE }, - { "set", SET }, + { "action", ACTION }, + { "compression", COMPRESSION }, + { "disable", DISABLE }, + { "enable", ENABLE }, + { "expire", EXPIRE }, + { "set", SET }, }; const struct keywords *p;