]> Shamusworld >> Repos - rmac/commitdiff
Fix ccdef
authorJames Jones <atari@theinnocuous.com>
Mon, 15 Aug 2022 05:54:18 +0000 (22:54 -0700)
committerShamus Hammons <jlhamm@acm.org>
Tue, 16 Aug 2022 17:24:36 +0000 (12:24 -0500)
ccdef was broken by the following commit:

  commit 7d748dc6e2259984c9093c48d84ae1ed280632ad
  Author: ggn <ggn@atari.org>
  Date:   Thu Mar 24 13:28:09 2022 +0200

      Fix for #159: Split register sets according to architecture into
      different tables so they don't clash with label/symbol names.
      Modified tokeniser to use different tables when scanning for
      registers

This change fixes it by moving the ccdef and .ccdef
tokens from the unary table to the keyword table.

kw.tab
unary.tab

diff --git a/kw.tab b/kw.tab
index 6e87cf64873a764e69cd31bbd492e21643da13a6..9c3a836882e798cb34099d888fe30b63a6280f20 100644 (file)
--- a/kw.tab
+++ b/kw.tab
@@ -4,6 +4,8 @@ equ     61
 reg     82
 .equr  85
 equr   85
+.ccdef   183
+ccdef 183
 .regequ  85
 regequ   85
 .equrundef  50
index b81a50cdcf5f6e52f5ebb342365c81f61fe3a600..9041fabccda48ee2bca0e247cebc55288a1a1d71 100644 (file)
--- a/unary.tab
+++ b/unary.tab
@@ -1,5 +1,3 @@
-.ccdef   183
-ccdef 183
 defined  112
 referenced  113