aboutsummaryrefslogtreecommitdiff
path: root/module/c/cpp-types.scm
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-07-11 20:31:58 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2022-07-11 20:31:58 +0200
commitad0440b16d7e2694ae01df08710f24936b57ec99 (patch)
treee21b066e4b7d6dca9efe57ac01d6e083a87b7737 /module/c/cpp-types.scm
parentCleanup + fix __LINE__. (diff)
downloadcalp-ad0440b16d7e2694ae01df08710f24936b57ec99.tar.gz
calp-ad0440b16d7e2694ae01df08710f24936b57ec99.tar.xz
work
Diffstat (limited to 'module/c/cpp-types.scm')
-rw-r--r--module/c/cpp-types.scm13
1 files changed, 13 insertions, 0 deletions
diff --git a/module/c/cpp-types.scm b/module/c/cpp-types.scm
index 1a7387f5..e5e73d32 100644
--- a/module/c/cpp-types.scm
+++ b/module/c/cpp-types.scm
@@ -52,3 +52,16 @@
(match (lexeme-body token)
(`(string-literal ,x) x)
(_ #f))))
+
+
+(define (h-string-token? token)
+ (and (preprocessing-token? token)
+ (match (lexeme-body token)
+ (`(h-string ,x) x)
+ (_ #f))))
+
+(define (q-string-token? token)
+ (and (preprocessing-token? token)
+ (match (lexeme-body token)
+ (`(q-string ,x) x)
+ (_ #f))))