Re: [squid-dev] Dealing with RegisteredHeadersHash.gperf
On Wed, Jun 22, 2016 at 6:42 AM, Amos Jeffrieswrote: > On 22/06/2016 5:13 a.m., Eduard Bagdasaryan wrote: > > Hello, > > > > In my current task I need to change some of header definitions, but it is > > unclear how to do this correctly. My understanding is that I need to > > modify http/RegisteredHeadersHash.gperf, and then run > > "make gperf-files" to generate RegisteredHeadersHash.cci. Is this > correct? > > I believe so, though I've not done it myself yet. Kinkie knows more if > he replies. > Yes, that's it. Remember that - contrary to what we do in many other similar cases - the .cci file needs to be committed to the repository. > > > The http/RegisteredHeadersHash.gperf has a comment that it was > > auto-generated > > from RegisteredHeadersHash.gperf. How could it be generated from itself? > > Its not. That %{ ...}% is a block of data to be inserted verbatum into > the output file at the same (top) position. Bit unfortunate that we had > to do it that way. > Yes. -- Francesco ___ squid-dev mailing list squid-dev@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-dev
Re: [squid-dev] Dealing with RegisteredHeadersHash.gperf
On 22/06/2016 5:13 a.m., Eduard Bagdasaryan wrote: > Hello, > > In my current task I need to change some of header definitions, but it is > unclear how to do this correctly. My understanding is that I need to > modify http/RegisteredHeadersHash.gperf, and then run > "make gperf-files" to generate RegisteredHeadersHash.cci. Is this correct? I believe so, though I've not done it myself yet. Kinkie knows more if he replies. > The http/RegisteredHeadersHash.gperf has a comment that it was > auto-generated > from RegisteredHeadersHash.gperf. How could it be generated from itself? Its not. That %{ ...}% is a block of data to be inserted verbatum into the output file at the same (top) position. Bit unfortunate that we had to do it that way. Amos ___ squid-dev mailing list squid-dev@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-dev
[squid-dev] Dealing with RegisteredHeadersHash.gperf
Hello, In my current task I need to change some of header definitions, but it is unclear how to do this correctly. My understanding is that I need to modify http/RegisteredHeadersHash.gperf, and then run "make gperf-files" to generate RegisteredHeadersHash.cci. Is this correct? The http/RegisteredHeadersHash.gperf has a comment that it was auto-generated from RegisteredHeadersHash.gperf. How could it be generated from itself? Thank you, Eduard. ___ squid-dev mailing list squid-dev@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-dev