Move rules pointer on add_rule
This commit is contained in:
parent
3f6e2b9624
commit
b0663fc236
|
@ -5,7 +5,7 @@ typedef struct {
|
|||
} Rule;
|
||||
|
||||
static int rules_len, direction;
|
||||
static Rule rules[0x100], *rules_;
|
||||
static Rule rules[0x1000], *rules_ = rules;
|
||||
static char dict[0x8000], *dict_ = dict;
|
||||
static char bank_a[0x4000], *prog_ = bank_a;
|
||||
static char bank_b[0x4000], *outp_ = bank_b;
|
||||
|
@ -137,8 +137,8 @@ static int
|
|||
add_rule(char *p)
|
||||
{
|
||||
char c;
|
||||
Rule *r = &rules[rules_len++];
|
||||
rules_++;
|
||||
Rule *r = rules_++;
|
||||
rules_len++;
|
||||
p += 2;
|
||||
while((c = *p) && c <= ' ') p++;
|
||||
r->a = parse_rule(p), p = walk(p);
|
||||
|
|
Loading…
Reference in New Issue