diff options
author | Quentin Carbonneaux <quentin@c9x.me> | 2023-08-18 15:12:56 +0200 |
---|---|---|
committer | Quentin Carbonneaux <quentin@c9x.me> | 2023-08-18 15:12:56 +0200 |
commit | 36946a5142c40b733d25ea5ca469f7949ee03439 (patch) | |
tree | 3ee6583dc78c2f1c24264edc44953ca010d24b9f /parse.c | |
parent | baf11b7175c468d3d9408d332b1c0d529a4957ee (diff) | |
download | roux-36946a5142c40b733d25ea5ca469f7949ee03439.tar.gz |
file,loc become dbgfile,dbgloc
Diffstat (limited to 'parse.c')
-rw-r--r-- | parse.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/parse.c b/parse.c index 44c9e19..33ed6ec 100644 --- a/parse.c +++ b/parse.c @@ -53,7 +53,7 @@ enum Token { Tdata, Tsection, Talign, - Tfile, + Tdbgfile, Tl, Tw, Tsh, @@ -111,7 +111,7 @@ static char *kwmap[Ntok] = { [Tdata] = "data", [Tsection] = "section", [Talign] = "align", - [Tfile] = "file", + [Tdbgfile] = "dbgfile", [Tsb] = "sb", [Tub] = "ub", [Tsh] = "sh", @@ -132,7 +132,7 @@ enum { TMask = 16383, /* for temps hash */ BMask = 8191, /* for blocks hash */ - K = 10525445, /* found using tools/lexh.c */ + K = 9583425, /* found using tools/lexh.c */ M = 23, }; @@ -661,8 +661,8 @@ parseline(PState ps) expect(Tnl); closeblk(); return PLbl; - case Oloc: - op = Oloc; + case Odbgloc: + op = t; k = Kw; r = R; expect(Tint); @@ -1186,7 +1186,7 @@ parse(FILE *f, char *path, void dbgfile(char *), void data(Dat *), void func(Fn switch (parselnk(&lnk)) { default: err("top-level definition expected"); - case Tfile: + case Tdbgfile: expect(Tstr); dbgfile(tokval.str); break; |