summaryrefslogtreecommitdiffstats
path: root/stdlib/termios.tl
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2023-03-22 18:18:43 -0700
committerKaz Kylheku <kaz@kylheku.com>2023-03-22 18:18:43 -0700
commit28d34640e615912960aea678af060f3e444c2cc8 (patch)
tree26340c33aa437ff88084f38ccfa3bca706b084db /stdlib/termios.tl
parent5ee2cd3b2304287c010237e03be4d181412e066f (diff)
downloadtxr-28d34640e615912960aea678af060f3e444c2cc8.tar.gz
txr-28d34640e615912960aea678af060f3e444c2cc8.tar.bz2
txr-28d34640e615912960aea678af060f3e444c2cc8.zip
compiler: forward source location for defun and defmacro
* stdlib/compiler.tl (expand-defun): Sprinkling of rlcp to pass source location info to the generated lambda, and to the sys:define-method call. (expand-defmacro): bugfix here: in with-gensyms we shadowed the form parameter, and then passed that as both form arguments to expand-bind-mac-params. We rename the gensym to mform, and then for the error-form, we pass the original form, quoted as necessary and with source location info. Thus, now source location info flows from the original defmacro form to the generated let* which binds the destructured parameters.
Diffstat (limited to 'stdlib/termios.tl')
0 files changed, 0 insertions, 0 deletions