summaryrefslogtreecommitdiffstats
path: root/regex.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2018-10-26 07:25:51 -0700
committerKaz Kylheku <kaz@kylheku.com>2018-10-26 07:25:51 -0700
commit9733bb6dad3b0c430a82b2592d5519383479cb86 (patch)
treeb894ea6b0a6022e2f5700b1a3e362c721977d9b3 /regex.c
parentc4d91d0128dd998a73d216fe7bb0132c41d901bc (diff)
downloadtxr-9733bb6dad3b0c430a82b2592d5519383479cb86.tar.gz
txr-9733bb6dad3b0c430a82b2592d5519383479cb86.tar.bz2
txr-9733bb6dad3b0c430a82b2592d5519383479cb86.zip
compiler: use symtab caching for global lexicals.
* parser.c (read_file_common): Allow version three object files. * share/txr/stdlib/compiler.tl (compiler comp-var): If a global variable isn't special, then treat it via the getlx instruction. The symbol gets added to the symtab, and referenced by index number. (compiler comp-setq): Similarly, treat a non-special global variable using the setlx instruction. (%tlo-ver%): We bump the major version of .tlo files from 2 to 3, since old txr executables won't recognize these new instructions. However, we are backward compatible; hence read_file_common still allows version 2.
Diffstat (limited to 'regex.c')
0 files changed, 0 insertions, 0 deletions