ObjFW  Diff

Differences From Artifact [c81ffb2e26]:

To Artifact [b35f643373]:


1
2
3
4
5
6
7
8
9
/*
 * Copyright (c) 2008 - 2009
 *   Jonathan Schleifer <js@webkeks.org>
 *
 * All rights reserved.
 *
 * This file is part of ObjFW. It may be distributed under the terms of the
 * Q Public License 1.0, which can be found in the file LICENSE included in
 * the packaging of this file.

|







1
2
3
4
5
6
7
8
9
/*
 * Copyright (c) 2008 - 2010
 *   Jonathan Schleifer <js@webkeks.org>
 *
 * All rights reserved.
 *
 * This file is part of ObjFW. It may be distributed under the terms of the
 * Q Public License 1.0, which can be found in the file LICENSE included in
 * the packaging of this file.
581
582
583
584
585
586
587

588
589
590
591
592
593
594

	OF_HASH_FINALIZE(hash);

	return hash;
}
@end


@implementation OFDictionaryEnumerator
-     initWithData: (struct of_dictionary_bucket*)data_
	      size: (size_t)size_
  mutationsPointer: (unsigned long*)mutations_ptr_
{
	self = [super init];








>







581
582
583
584
585
586
587
588
589
590
591
592
593
594
595

	OF_HASH_FINALIZE(hash);

	return hash;
}
@end

/// \cond internal
@implementation OFDictionaryEnumerator
-     initWithData: (struct of_dictionary_bucket*)data_
	      size: (size_t)size_
  mutationsPointer: (unsigned long*)mutations_ptr_
{
	self = [super init];

636
637
638
639
640
641
642


	if (pos < size)
		return data[pos++].key;
	else
		return nil;
}
@end








>
637
638
639
640
641
642
643
644

	if (pos < size)
		return data[pos++].key;
	else
		return nil;
}
@end
/// \endcond