summaryrefslogtreecommitdiffstats
path: root/utf8.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-01-16 06:20:12 -0800
committerKaz Kylheku <kaz@kylheku.com>2019-01-16 06:20:12 -0800
commit2143d29cf5ae78fc3ab31fb9079cafa89ab42d7f (patch)
tree718b44f3053dfaeb9feb60b3828790fed0f5647f /utf8.c
parent05b1383fae022cea0548ed9c587c4a1289c6b1e6 (diff)
downloadtxr-2143d29cf5ae78fc3ab31fb9079cafa89ab42d7f.tar.gz
txr-2143d29cf5ae78fc3ab31fb9079cafa89ab42d7f.tar.bz2
txr-2143d29cf5ae78fc3ab31fb9079cafa89ab42d7f.zip
ffi: diagnose missing with-dyn-lib.
If the programmer writes a deffi, deffi-sym or deffi-var that makes simple references, and that macro is not wrapped in with-dyn-lib, an unhelpful error message results about sys:ffi-lib being unbound. We can detect this situation and provide a warning. * share/txr/stdlib/ffi.tl (sys:with-dyn-lib-check, sys:expand-sym-ref): New functions. (deffi, deffi-sym, deffi-var): Capture environment parameter. Common code replaced by call to sys:expand-sym-ref, where the missing sys:ffi-lib situation is diagnosed. This is only done in cases when the simple reference syntax occurs.
Diffstat (limited to 'utf8.c')
0 files changed, 0 insertions, 0 deletions