tb Allow for only one consequent alias expansion
This commit is contained in:
@ -36,9 +36,8 @@ bool rt_mkalias(Token *tks) {
|
||||
while (tk) {
|
||||
if (i == 0) {
|
||||
usprintf(alias->namebuf, "%.*s", (int)tk->len, tk->ptr);
|
||||
} else {
|
||||
size_t off = string_len(alias->valbuf);
|
||||
usprintf(alias->valbuf + off, "%.*s", (int)tk->len, tk->ptr);
|
||||
} else if (i == 1) {
|
||||
usprintf(alias->valbuf, "%.*s", (int)tk->len, tk->ptr);
|
||||
}
|
||||
i++;
|
||||
tk = tk->next;
|
||||
|
Reference in New Issue
Block a user