if ((new = (char *)calloc(1, (strlen(query) + 1))) == NULL) outofmem(__FILE__, "HTAddSearchQuery"); strcpy(new, query);
StrAllocCopy(new_query, query);
PUBLIC void HTAddSearchQuery ARGS1(	char *,		query){    char *new;    char *old;    HTList *cur;    if (!(query && *query))	return;    if ((new = (char *)calloc(1, (strlen(query) + 1))) == NULL)	outofmem(__FILE__, "HTAddSearchQuery");    strcpy(new, query);    if (!search_queries) {	search_queries = HTList_new();#ifdef LY_FIND_LEAKS	atexit(HTSearchQueries_free);#endif	HTList_addObject(search_queries, new);	return;    }    cur = search_queries;    while (NULL != (old = (char *)HTList_nextObject(cur))) {	if (!strcmp(old, new)) {	    HTList_removeObject(search_queries, old);	    FREE(old);	    break;	}    }    HTList_addObject(search_queries, new);    return;}