ObjFW  Check-in [3f59d993a3]

Overview
Comment:OFEnumerator: Fix documentation confusing Clang
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 3f59d993a33f9c9d91b738abf6791924080e6e835f96e79d6a14fe893ac116fc
User & Date: js on 2014-02-19 11:27:23
Other Links: manifest | tags
Context
2014-02-19
13:05
lookup-asm-amd64-*: Remove useless mov check-in: 452bdb4a5f user: js tags: trunk
11:27
OFEnumerator: Fix documentation confusing Clang check-in: 3f59d993a3 user: js tags: trunk
11:18
Fix compilation on NetBSD check-in: a3a157e52d user: js tags: trunk
Changes

Modified src/OFEnumerator.h from [d37f2396c8] to [622ec0eddb].

63
64
65
66
67
68
69
70
71
72
73
74
75
76


77
78
79
80
81
82
83

/*
 * This needs to be exactly like this because it's hardcoded in the compiler.
 *
 * We need this bad check to see if we already imported Cocoa, which defines
 * this as well.
 */
#define of_fast_enumeration_state_t NSFastEnumerationState
#ifndef NSINTEGER_DEFINED
/*!
 * @struct of_fast_enumeration_state_t OFEnumerator.h ObjFW/OFEnumerator.h
 *
 * @brief State information for fast enumerations.
 */


typedef struct {
	/// Arbitrary state information for the enumeration
	unsigned long state;
	/// Pointer to a C array of objects to return
	__unsafe_unretained id *itemsPtr;
	/// Arbitrary state information to detect mutations
	unsigned long *mutationsPtr;







<
<





>
>







63
64
65
66
67
68
69


70
71
72
73
74
75
76
77
78
79
80
81
82
83

/*
 * This needs to be exactly like this because it's hardcoded in the compiler.
 *
 * We need this bad check to see if we already imported Cocoa, which defines
 * this as well.
 */


/*!
 * @struct of_fast_enumeration_state_t OFEnumerator.h ObjFW/OFEnumerator.h
 *
 * @brief State information for fast enumerations.
 */
#define of_fast_enumeration_state_t NSFastEnumerationState
#ifndef NSINTEGER_DEFINED
typedef struct {
	/// Arbitrary state information for the enumeration
	unsigned long state;
	/// Pointer to a C array of objects to return
	__unsafe_unretained id *itemsPtr;
	/// Arbitrary state information to detect mutations
	unsigned long *mutationsPtr;