50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
b.persist = true;
idents[b.name] = b;
} else {
if (b.type == ID_ALIAS)
b.action = action;
else
conoutf(@"cannot redefine builtin %s with an alias",
name.UTF8String);
}
}
COMMAND(alias, ARG_2STR)
int
variable(OFString *name, int min, int cur, int max, int *storage, void (*fun)(),
bool persist)
|
>
|
<
|
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
b.persist = true;
idents[b.name] = b;
} else {
if (b.type == ID_ALIAS)
b.action = action;
else
conoutf(
@"cannot redefine builtin %@ with an alias", name);
}
}
COMMAND(alias, ARG_2STR)
int
variable(OFString *name, int min, int cur, int max, int *storage, void (*fun)(),
bool persist)
|
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
|
}
void
exec(OFString *cfgfile)
{
if (!execfile(cfgfile)) {
@autoreleasepool {
conoutf(@"could not read \"%s\"", cfgfile.UTF8String);
}
}
}
void
writecfg()
{
|
|
|
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
|
}
void
exec(OFString *cfgfile)
{
if (!execfile(cfgfile)) {
@autoreleasepool {
conoutf(@"could not read \"%@\"", cfgfile);
}
}
}
void
writecfg()
{
|