diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-12-26 20:30:22 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-12-26 20:30:22 -0800 |
commit | 4500f9d53feea9205c4c30743bb99e3a5f15703d (patch) | |
tree | ba0e308452e3bb8f3375a93ab23957e17421487e /match.h | |
parent | d1caae1ac6f393d0bc8cbcf62804dbac0033d133 (diff) | |
download | txr-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |