From: Willy Tarreau Date: Wed, 21 Jan 2015 14:51:47 +0000 (+0100) Subject: MINOR: args: add type-specific flags for each arg in a list X-Git-Tag: v1.6-dev1~174 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=085dafac5f399c970c1490d71be2a9dfa20b4366;p=thirdparty%2Fhaproxy.git MINOR: args: add type-specific flags for each arg in a list These flags are meant to be used by arg checkers to pass out-of-band information related to some args. A typical use is to indicate how a regex is expected to be compiled/matched based on other arguments. These flags are initialized to zero by default and it is up to the args checkers to set them if needed. --- diff --git a/include/types/arg.h b/include/types/arg.h index 8e089bad39..f429b8296d 100644 --- a/include/types/arg.h +++ b/include/types/arg.h @@ -92,6 +92,7 @@ union arg_data { struct arg { unsigned char type; /* argument type, ARGT_* */ unsigned char unresolved; /* argument contains a string in that must be resolved and freed */ + unsigned char type_flags; /* type-specific extra flags (eg: case sensitivity for regex), ARGF_* */ union arg_data data; /* argument data */ };