ObjFW  Check-in [c5e95e98ca]

Overview
Comment:Fix missing cast.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | 0.5
Files: files | file ages | folders
SHA3-256: c5e95e98caca8f27f25e5b3620096221ce650cea2614f23754373917856ad855
User & Date: js on 2011-07-12 23:13:40
Other Links: branch diff | manifest | tags
Context
2011-07-14
21:18
Allow passing NULL to _Block_object_assign() / _Block_object_dispose(). check-in: 7025192253 user: js tags: 0.5
2011-07-12
23:13
Fix missing cast. check-in: c5e95e98ca user: js tags: 0.5
2011-07-10
18:44
Include sys/types.h in objc_sync.m. check-in: 0f4a81649d user: js tags: 0.5
Changes

Modified src/OFString.h from [3da081c65e] to [373d429e50].

413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
 */
- (BOOL)hasSuffix: (OFString*)suffix;

/**
 * Splits an OFString into an OFArray of OFStrings.
 *
 * \param delimiter The delimiter for splitting
 * \return An autoreleased OFArray with the splitted string
 */
- (OFArray*)componentsSeparatedByString: (OFString*)delimiter;

/**
 * \return The components of the path
 */
- (OFArray*)pathComponents;







|







413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
 */
- (BOOL)hasSuffix: (OFString*)suffix;

/**
 * Splits an OFString into an OFArray of OFStrings.
 *
 * \param delimiter The delimiter for splitting
 * \return An autoreleased OFArray with the split string
 */
- (OFArray*)componentsSeparatedByString: (OFString*)delimiter;

/**
 * \return The components of the path
 */
- (OFArray*)pathComponents;

Modified src/objc_properties.m from [8ff7710d2c] to [5c790a53c4].

19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#include <assert.h>

#import "OFObject.h"

#ifdef OF_THREADS
# import "threading.h"
# define NUM_SPINLOCKS 8	/* needs to be a power of 2 */
# define SPINLOCK_HASH(p) ((uintptr_t)p >> 4) & (NUM_SPINLOCKS - 1)
static of_spinlock_t spinlocks[NUM_SPINLOCKS];
#endif

BOOL
objc_properties_init()
{
#ifdef OF_THREADS







|







19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#include <assert.h>

#import "OFObject.h"

#ifdef OF_THREADS
# import "threading.h"
# define NUM_SPINLOCKS 8	/* needs to be a power of 2 */
# define SPINLOCK_HASH(p) ((unsigned)((uintptr_t)p >> 4) & (NUM_SPINLOCKS - 1))
static of_spinlock_t spinlocks[NUM_SPINLOCKS];
#endif

BOOL
objc_properties_init()
{
#ifdef OF_THREADS