From: Francesco Chemolli Date: Fri, 31 Jul 2015 15:05:22 +0000 (+0200) Subject: Updated TODO X-Git-Tag: merge-candidate-3-v1~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=07697384fd5d778a6517cdaa07d25f2a4267e738;p=thirdparty%2Fsquid.git Updated TODO --- diff --git a/src/HttpHeader.cc b/src/HttpHeader.cc index bfe08d59f3..18e00c1ece 100644 --- a/src/HttpHeader.cc +++ b/src/HttpHeader.cc @@ -62,12 +62,12 @@ /* TODO: * DONE 1. shift HDR_BAD_HDR to end of enum - * 2. shift headers data array to http/RegistredHeaders.cc + * DONE 2. shift headers data array to http/RegistredHeaders.cc * DONE 3. creatign LookupTable object from teh enum and array * (with HDR_BAD_HDR as invalid value) * DONE 4. replacing httpHeaderIdByName() uses with the lookup table * 5. merge HDR_BAD_HDR and HDR_ENUM_END into one thing - * 6. replacing httpHeaderNameById with direct array lookups + * DONE 6. replacing httpHeaderNameById with direct array lookups * 7. being looking at the other arrays removal */ diff --git a/src/http/RegisteredHeaders.h b/src/http/RegisteredHeaders.h index 0ca367f30b..b44c37be51 100644 --- a/src/http/RegisteredHeaders.h +++ b/src/http/RegisteredHeaders.h @@ -120,6 +120,7 @@ typedef enum { } http_hdr_type; /** possible types for http header fields */ +//TODO: move to strongly-typed enums? (enum class) typedef enum { ftInvalid = HDR_ENUM_END, /**< to catch nasty errors with hdr_id<->fld_type clashes */ ftInt,