--------------------- PatchSet 1169 Date: 2005/01/06 13:54:31 Author: serassio Branch: nt Tag: (none) Log: Removed MS Visual Studio 6 fix no more needed Members: src/comm.cc:1.19.2.28->1.19.2.29 Index: squid3/src/comm.cc =================================================================== RCS file: /cvsroot/squid-sf//squid3/src/comm.cc,v retrieving revision 1.19.2.28 retrieving revision 1.19.2.29 diff -u -r1.19.2.28 -r1.19.2.29 --- squid3/src/comm.cc 7 Nov 2004 09:29:38 -0000 1.19.2.28 +++ squid3/src/comm.cc 6 Jan 2005 13:54:31 -0000 1.19.2.29 @@ -1,6 +1,6 @@ /* - * $Id: comm.cc,v 1.19.2.28 2004/11/07 09:29:38 serassio Exp $ + * $Id: comm.cc,v 1.19.2.29 2005/01/06 13:54:31 serassio Exp $ * * DEBUG: section 5 Socket Functions * AUTHOR: Harvest Derived @@ -697,6 +697,30 @@ return 0; } +template +bool +fdc_t::findCallback(P predicate) +{ + /* + * XXX I don't like having to walk the list! + * Instead, if this routine is called often enough, we should + * also maintain a linked list of _read_ events - we can just + * check if the list head a HEAD.. + * - adrian + */ + dlink_node *node = CommCallbackList.head; + + while (node != NULL) { + if (predicate((CommCallbackData *)node->data)) + return true; + + node = node->next; + } + + /* Not found */ + return false; +} + /* * return whether a file descriptor has a read handler * @@ -804,30 +828,6 @@ return write.handler != NULL; } -template -bool -fdc_t::findCallback(P predicate) -{ - /* - * XXX I don't like having to walk the list! - * Instead, if this routine is called often enough, we should - * also maintain a linked list of _read_ events - we can just - * check if the list head a HEAD.. - * - adrian - */ - dlink_node *node = CommCallbackList.head; - - while (node != NULL) { - if (predicate((CommCallbackData *)node->data)) - return true; - - node = node->next; - } - - /* Not found */ - return false; -} - /* * Attempt a write *