Convert more files to pure Objective-C
FossilOrigin-Name: 46c577957085f072871cb93b46340fd8349c1e20503a448cc8e6d33ddaea1552
This commit is contained in:
parent
b4d52ea3ec
commit
61bf59bbfc
14 changed files with 176 additions and 162 deletions
|
@ -29,15 +29,15 @@ OF_CONSTRUCTOR()
|
|||
int selh = 0;
|
||||
bool selset = false;
|
||||
|
||||
#define loopselxy(b) \
|
||||
{ \
|
||||
makeundo(); \
|
||||
loop(x, sel->xs) loop(y, sel->ys) \
|
||||
{ \
|
||||
#define loopselxy(b) \
|
||||
{ \
|
||||
makeundo(); \
|
||||
loop(x, sel->xs) loop(y, sel->ys) \
|
||||
{ \
|
||||
struct sqr *s = S(sel->x + x, sel->y + y); \
|
||||
b; \
|
||||
} \
|
||||
remip(sel, 0); \
|
||||
b; \
|
||||
} \
|
||||
remip(sel, 0); \
|
||||
}
|
||||
|
||||
int cx, cy, ch;
|
||||
|
@ -261,8 +261,8 @@ void
|
|||
makeundo()
|
||||
{
|
||||
if (undos == nil)
|
||||
undos =
|
||||
[[OFMutableData alloc] initWithItemSize:sizeof(struct block *)];
|
||||
undos = [[OFMutableData alloc]
|
||||
initWithItemSize:sizeof(struct block *)];
|
||||
|
||||
struct block *copy = blockcopy(&sel);
|
||||
[undos addItem:©];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue