summaryrefslogtreecommitdiffstats
path: root/parser.h
diff options
context:
space:
mode:
Diffstat (limited to 'parser.h')
-rw-r--r--parser.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/parser.h b/parser.h
index 754282d5..101acba7 100644
--- a/parser.h
+++ b/parser.h
@@ -41,3 +41,8 @@ void end_of_char(void);
int yylex(void);
void parse_init(void);
val source_loc(val form);
+val rl(val form, val lineno);
+INLINE val rlcp(val to, val from)
+{
+ return rl(to, source_loc(from));
+}