Differences From Artifact [bebf07d610]:
- File
src/OFSet.m
— part of check-in
[27d8eb922d]
at
2023-07-15 23:44:25
on branch trunk
— Never set mutationsPtr to self
The Apple runtime can store the retain count in isa, so
retaining/releasing an object would suddenly make it seem like it was
mutated. (user: js, size: 7177) [annotate] [blame] [check-ins using] [more...]
To Artifact [4cf2dc29e8]:
- File src/OFSet.m — part of check-in [a6f520157a] at 2023-08-08 15:32:43 on branch trunk — A few minor cleanups (user: js, size: 7325) [annotate] [blame] [check-ins using]
︙ | |||
15 16 17 18 19 20 21 22 23 24 25 26 27 28 | 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | + | #include "config.h" #include <stdlib.h> #import "OFSet.h" #import "OFArray.h" #import "OFCountedSet.h" #import "OFMapTableSet.h" #import "OFNull.h" #import "OFString.h" static struct { Class isa; } placeholder; |
︙ | |||
91 92 93 94 95 96 97 | 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 | - + | } @end @implementation OFSet + (void)initialize { if (self == [OFSet class]) |
︙ | |||
138 139 140 141 142 143 144 | 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 | - + + + | { return [[[self alloc] initWithObjects: objects count: count] autorelease]; } - (instancetype)init { |
︙ |