ObjFW  Diff

Differences From Artifact [5cc47d2692]:

To Artifact [c563d173e3]:


13
14
15
16
17
18
19
20
21



22
23
24
25
26
27
28
13
14
15
16
17
18
19


20
21
22
23
24
25
26
27
28
29







-
-
+
+
+







 * file.
 */

#include "config.h"

#import "OFMutableTarArchiveEntry.h"
#import "OFTarArchiveEntry+Private.h"
#import "OFString.h"
#import "OFDate.h"
#import "OFDate.h"
#import "OFNumber.h"
#import "OFString.h"

@implementation OFMutableTarArchiveEntry
@dynamic fileName, mode, UID, GID, compressedSize, uncompressedSize;
@dynamic modificationDate, type, targetFileName, owner, group, deviceMajor;
@dynamic deviceMinor;

+ (instancetype)entryWithFileName: (OFString *)fileName
56
57
58
59
60
61
62
63

64

65


66
67
68

69

70


71
72
73

74

75


76
77
78
79
80
81
82
57
58
59
60
61
62
63

64
65
66

67
68
69
70

71
72
73

74
75
76
77

78
79
80

81
82
83
84
85
86
87
88
89







-
+

+
-
+
+


-
+

+
-
+
+


-
+

+
-
+
+







- (void)setFileName: (OFString *)fileName
{
	OFString *old = _fileName;
	_fileName = [fileName copy];
	[old release];
}

- (void)setMode: (unsigned long)mode
- (void)setMode: (OFNumber *)mode
{
	OFNumber *old = _mode;
	_mode = mode;
	_mode = [mode retain];
	[old release];
}

- (void)setUID: (unsigned long)UID
- (void)setUID: (OFNumber *)UID
{
	OFNumber *old = _UID;
	_UID = UID;
	_UID = [UID retain];
	[old release];
}

- (void)setGID: (unsigned long)GID
- (void)setGID: (OFNumber *)GID
{
	OFNumber *old = _GID;
	_GID = GID;
	_GID = [GID retain];
	[old release];
}

- (void)setCompressedSize: (unsigned long long)compressedSize
{
	_compressedSize = compressedSize;
}