ObjFW  Check-in [fa64faf81e]

Overview
Comment:Use @defs in preallocated OFAllocFailedException struct.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: fa64faf81e7bb7144e41461fb27f402b9ee73629018ff057cda161aea1dc089b
User & Date: js on 2009-05-16 11:47:11
Other Links: manifest | tags
Context
2009-05-16
13:23
Add objfw-config script. check-in: 4e4c1c0eca user: js tags: trunk
11:47
Use @defs in preallocated OFAllocFailedException struct. check-in: fa64faf81e user: js tags: trunk
2009-05-15
22:59
As we memset our ivars to 0, get rid of some useless ivar inits. check-in: 4c6d6c56ac user: js tags: trunk
Changes

Modified src/OFHashes.h from [1c2aa1b471] to [6aec6298e0].

50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
@end

/**
 * The OFSHA1Hash class provides functions to create an SHA1 hash.
 */
@interface OFSHA1Hash: OFObject
{
	uint32_t    state[5];
	uint64_t    count;
	char	    buffer[64];
	char	    digest[SHA1_DIGEST_SIZE];

	BOOL	 calculated;
}

/**
 * \return A new autoreleased SHA1 Hash
 */







|
|
|
|







50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
@end

/**
 * The OFSHA1Hash class provides functions to create an SHA1 hash.
 */
@interface OFSHA1Hash: OFObject
{
	uint32_t state[5];
	uint64_t count;
	char	 buffer[64];
	char	 digest[SHA1_DIGEST_SIZE];

	BOOL	 calculated;
}

/**
 * \return A new autoreleased SHA1 Hash
 */

Modified src/OFObject.m from [6b8000ea51] to [74f9d21734].

33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
};

/* Hopefully no arch needs more than 16 bytes padding */
#define PRE_IVAR_ALIGN ((sizeof(struct pre_ivar) + 15) & ~15)
#define PRE_IVAR ((struct pre_ivar*)((char*)self - PRE_IVAR_ALIGN))

static struct {
	Class isa;
} alloc_failed_exception;

@implementation OFObject
+ (void)initialize
{
}








|







33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
};

/* Hopefully no arch needs more than 16 bytes padding */
#define PRE_IVAR_ALIGN ((sizeof(struct pre_ivar) + 15) & ~15)
#define PRE_IVAR ((struct pre_ivar*)((char*)self - PRE_IVAR_ALIGN))

static struct {
	@defs(OFAllocFailedException)
} alloc_failed_exception;

@implementation OFObject
+ (void)initialize
{
}