/* PUBLIC HTAAMethod_inList() * IS A METHOD IN A LIST OF METHOD NAMES * ON ENTRY: * method is the method to look for. * list is a list of method names. * * ON EXIT: * returns YES, if method was found. * NO, if not found. */ BOOL HTAAMethod_inList(HTAAMethod method, HTList *list) { HTList *cur = list; char *item; while (NULL != (item = (char *) HTList_nextObject(cur))) { CTRACE((tfp, " %s", item)); if (method == HTAAMethod_enum(item)) return YES; } return NO; /* Not found */ }
/* PUBLIC HTAAMethod_inList() ** IS A METHOD IN A LIST OF METHOD NAMES ** ON ENTRY: ** method is the method to look for. ** list is a list of method names. ** ** ON EXIT: ** returns YES, if method was found. ** NO, if not found. */ PUBLIC BOOL HTAAMethod_inList ARGS2(HTAAMethod, method, HTList *, list) { HTList *cur = list; char *item; while (NULL != (item = (char*)HTList_nextObject(cur))) { if (TRACE) fprintf(stderr, " %s", item); if (method == HTAAMethod_enum(item)) return YES; } return NO; /* Not found */ }
/* PUBLIC HTAAMethod_inList() ** IS A METHOD IN A LIST OF METHOD NAMES ** ON ENTRY: ** method is the method to look for. ** list is a list of method names. ** ** ON EXIT: ** returns YES, if method was found. ** NO, if not found. */ PUBLIC BOOL HTAAMethod_inList ARGS2(HTAAMethod, method, HTList *, list) { HTList *cur = list; char *item; while (NULL != (item = (char*)HTList_nextObject(cur))) { #ifndef DISABLE_TRACE if (www2Trace) fprintf(stderr, " %s", item); #endif if (method == HTAAMethod_enum(item)) return YES; } return NO; /* Not found */ }