summaryrefslogtreecommitdiffstats
path: root/match.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-12-26 20:30:22 -0800
committerKaz Kylheku <kaz@kylheku.com>2021-12-26 20:30:22 -0800
commit4500f9d53feea9205c4c30743bb99e3a5f15703d (patch)
treeba0e308452e3bb8f3375a93ab23957e17421487e /match.h
parentd1caae1ac6f393d0bc8cbcf62804dbac0033d133 (diff)
downloadtxr-4500f9d53feea9205c4c30743bb99e3a5f15703d.tar.gz
txr-4500f9d53feea9205c4c30743bb99e3a5f15703d.tar.bz2
txr-4500f9d53feea9205c4c30743bb99e3a5f15703d.zip
txr: allow variable to span vertical function.
* match.c (v_var_compat, v_var): New static functions. (match_files): No longer recognize v_var specially; it is now handled via vertical table. (dir_tables_init): Register a vertical sys:var directive also via v_var function. (match_compat_fixup): New function. * txr.c (compat): Call match_compat_fixup. * tests/010/span-var.txr: New file. * txr.1: Documented.
Diffstat (limited to 'match.h')
-rw-r--r--match.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/match.h b/match.h
index 95667158..3314345b 100644
--- a/match.h
+++ b/match.h
@@ -40,3 +40,4 @@ void match_reg_var(val sym);
void match_reg_params(val params);
void match_reg_elem(val elem);
void match_init(void);
+void match_compat_fixup(int compat_ver);