summaryrefslogtreecommitdiffstats
path: root/tests/017/glob-carray.expected
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2020-01-06 11:17:53 -0800
committerKaz Kylheku <kaz@kylheku.com>2020-01-06 11:17:53 -0800
commita2182d79eac73edfab614b6c1b3881938c46e058 (patch)
tree16a557afb2c75ae9ff6b5e679ef673c58da5966e /tests/017/glob-carray.expected
parent8bfa4b48a39376ac056a7811f23efcd5f9144009 (diff)
downloadtxr-a2182d79eac73edfab614b6c1b3881938c46e058.tar.gz
txr-a2182d79eac73edfab614b6c1b3881938c46e058.tar.bz2
txr-a2182d79eac73edfab614b6c1b3881938c46e058.zip
builtin redefinition: better diagnostic message.
The motivation here is that if we define, say, a macro whose name is the same as a built-in function, we get a warning which misleadingly uses the word "redefining". * eval.c (builtin_reject_test): Add a new parameter which indicates what kind of binding is being defined. This has the same values as the builtin hash. If the builtin hash reports that the symbol is a builtin, we can issue one of two diagnostic messages based on whether the one being defined is of the same kind or noto. (expand_macrolet): Pass the defmacro symbol to builtin_reject_test, since macros are being defined. (expand_fbind_vars): Pass the defun symbol symbol to builtin_reject_test. (do_expand): In the defun/defmacro case, pass the operator in question to builtin_reject_test.
Diffstat (limited to 'tests/017/glob-carray.expected')
0 files changed, 0 insertions, 0 deletions