--------------------- PatchSet 10220 Date: 2007/12/12 11:43:49 Author: adri Branch: s27_adri Tag: (none) Log: strBuf() -> strBuf2(); put a note about this code. Members: ADRIAN_TODO:1.1.2.3->1.1.2.4 src/HttpHdrExtField.c:1.4->1.4.192.1 Index: squid/ADRIAN_TODO =================================================================== RCS file: /cvsroot/squid-sf//squid/Attic/ADRIAN_TODO,v retrieving revision 1.1.2.3 retrieving revision 1.1.2.4 diff -u -r1.1.2.3 -r1.1.2.4 --- squid/ADRIAN_TODO 12 Dec 2007 09:52:09 -0000 1.1.2.3 +++ squid/ADRIAN_TODO 12 Dec 2007 11:43:49 -0000 1.1.2.4 @@ -37,3 +37,7 @@ * Ideally a static-buffer-String initialiser will bypass the need for a backing buf_t completely.. + +* The code in src/HttpHdrExtField.c is probably a good candidate for + converting to referenced buffer regions. + Index: squid/src/HttpHdrExtField.c =================================================================== RCS file: /cvsroot/squid-sf//squid/src/HttpHdrExtField.c,v retrieving revision 1.4 retrieving revision 1.4.192.1 diff -u -r1.4 -r1.4.192.1 --- squid/src/HttpHdrExtField.c 12 Jan 2001 08:20:32 -0000 1.4 +++ squid/src/HttpHdrExtField.c 12 Dec 2007 11:43:50 -0000 1.4.192.1 @@ -1,6 +1,6 @@ /* - * $Id: HttpHdrExtField.c,v 1.4 2001/01/12 08:20:32 hno Exp $ + * $Id: HttpHdrExtField.c,v 1.4.192.1 2007/12/12 11:43:50 adri Exp $ * * DEBUG: section 69 HTTP Header: Extension Field * AUTHOR: Alex Rousskov @@ -95,6 +95,6 @@ { assert(f); return httpHdrExtFieldDoCreate( - strBuf(f->name), strLen(f->name), - strBuf(f->value), strLen(f->value)); + strBuf2(f->name), strLen2(f->name), + strBuf2(f->value), strLen2(f->value)); }