Ejemplo n.º 1
0
bool find_rundeps(const char* datafile, int pkgc, list_t* argv)
{
	int i=0;
	char* pkg = NULL;
	list_t* missing = find_and_report(datafile,'m',pkgc,argv);
	int size = size_list(missing);
	
	if ( size > 0 )
	{
		if (quiet == 0)
		{
			for (i=0; i<size; i++)
			{
				pkg = get_list(missing,i);
				printf("%s ",pkg);
			}
		}
		
		if ( quiet == 0 )
			printf("\n");
			
		destroy_list(missing);
		return(false);
	}
	
	return(true);
}
Ejemplo n.º 2
0
small_hash__node *small_hash__table__find(
    small_hash__table *table,
    small_hash__hash hash, const void *key)
{
    if(table->is_dynamic && 0 == table->prevent_resizes_count &&
       ++table->lookup_count >= BETWEEN_LOOKUP_REPORT_COUNT)
    {
        table->lookup_count = 0;
        return find_and_report(table, hash, key);
    }
    return find(table, hash, key);
}