linamh/dev-embedded/cc65/files/cc65-mrustc.patch

35 lines
1007 B
Diff
Raw Permalink Normal View History

2022-11-19 21:49:12 +01:00
From 4799c47cc89913d7a17ad36ffd6dd4a0ded7f0d6 Mon Sep 17 00:00:00 2001
From: Tibor Nagy <xnagytibor@gmail.com>
Date: Fri, 8 Feb 2019 16:33:07 +0100
Subject: [PATCH] Patches for mrustc
---
src/ca65/scanner.c | 2 +-
src/cc65/ident.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/ca65/scanner.c b/src/ca65/scanner.c
index f80fe2bca9..5822421daf 100644
--- a/src/ca65/scanner.c
+++ b/src/ca65/scanner.c
@@ -647,7 +647,7 @@ int IsIdChar (int C)
return IsAlNum (C) ||
(C == '_') ||
(C == '@' && AtInIdents) ||
- (C == '$' && DollarInIdents);
+ (C == '$');
}
diff --git a/src/cc65/ident.c b/src/cc65/ident.c
index 7748095c7f..6836482257 100644
--- a/src/cc65/ident.c
+++ b/src/cc65/ident.c
@@ -50,5 +50,5 @@
int IsIdent (char c)
/* Return true if the given char may start an identifier */
{
- return (IsAlpha (c) || c == '_');
+ return (IsAlpha (c) || c == '_' || c == '$');
}