--------------------- PatchSet 10284 Date: 2007/12/20 10:32:04 Author: adri Branch: s27_adri Tag: (none) Log: A simple way to check a single character against a map. Members: libbuf/StringMap.h:1.1.2.1->1.1.2.2 Index: squid/libbuf/StringMap.h =================================================================== RCS file: /cvsroot/squid-sf//squid/libbuf/Attic/StringMap.h,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -u -r1.1.2.1 -r1.1.2.2 --- squid/libbuf/StringMap.h 13 Dec 2007 12:18:23 -0000 1.1.2.1 +++ squid/libbuf/StringMap.h 20 Dec 2007 10:32:04 -0000 1.1.2.2 @@ -10,6 +10,8 @@ typedef struct _string_map string_map_t; +#define StringMapCheckChar(t, c) ((t)->map[c]) + extern void StringMapInit(string_map_t *m); extern void StringMapSet(string_map_t *m, unsigned char c); extern void StringMapClear(string_map_t *m, unsigned char c);