ObjFW  Check-in [54850dda81]

Overview
Comment:Minor cleanups.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 54850dda81d504c9642e481722309b423e7b8ed3c2a64bda6a6986b55b152e02
User & Date: js on 2009-04-19 18:13:18
Other Links: manifest | tags
Context
2009-04-19
18:38
Small documentation fix. check-in: 630a522f46 user: js tags: trunk
18:13
Minor cleanups. check-in: 54850dda81 user: js tags: trunk
17:37
Remove forwarding methods. See long commit message for details. check-in: 57fb5578cc user: js tags: trunk
Changes

Modified src/OFXMLFactory.h from [5c64021065] to [6869b6a153].

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
 * Copyright (c) 2008 - 2009
 *   Jonathan Schleifer <js@webkeks.org>
 *
 * All rights reserved.
 *
 * This file is part of libobjfw. 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.
 */

#include <stdio.h>
#include <stdarg.h>

#import "OFObject.h"

/**
 * The OFXMLFactory class provides an easy way to create XML stanzas.
 */











<







1
2
3
4
5
6
7
8
9
10
11

12
13
14
15
16
17
18
/*
 * Copyright (c) 2008 - 2009
 *   Jonathan Schleifer <js@webkeks.org>
 *
 * All rights reserved.
 *
 * This file is part of libobjfw. 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.
 */


#include <stdarg.h>

#import "OFObject.h"

/**
 * The OFXMLFactory class provides an easy way to create XML stanzas.
 */

Modified tests/OFAutoreleasePool/OFAutoreleasePool.m from [5d50ad0603] to [0365c95fa1].

32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
@end

@implementation TestObject
- init
{
	id ret;
       
	ret = init(self, @selector(init));
	printf("New %s with retain cnt " ZD "\n", [self name],
	    [ret retainCount]);

	return ret;
}

- retain
{
	id ret;

	ret = retain(self, @selector(retain));
	printf("Retaining %s to " ZD "\n", [self name], [ret retainCount]);

	return ret;
}

- (void)release
{
	printf("Releasing %s to " ZD "\n", [self name], [self retainCount] - 1);

	release(self, @selector(release));
}
@end

int
main()
{
	init    = [OFObject replaceMethod: @selector(init)







|










|









|







32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
@end

@implementation TestObject
- init
{
	id ret;
       
	ret = init(self, _cmd);
	printf("New %s with retain cnt " ZD "\n", [self name],
	    [ret retainCount]);

	return ret;
}

- retain
{
	id ret;

	ret = retain(self, _cmd);
	printf("Retaining %s to " ZD "\n", [self name], [ret retainCount]);

	return ret;
}

- (void)release
{
	printf("Releasing %s to " ZD "\n", [self name], [self retainCount] - 1);

	release(self, _cmd);
}
@end

int
main()
{
	init    = [OFObject replaceMethod: @selector(init)