diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-08-13 06:18:32 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-08-13 06:18:32 -0700 |
commit | 48e0e179ca9579eca414804aa4f8e7ae8fb040bb (patch) | |
tree | bccbaf5cf1764989f394e866661c7ff114fa4318 /eval.c | |
parent | 0a2ef84a7a1c5e898c9fbf7c9e84a65d965212c6 (diff) | |
download | txr-48e0e179ca9579eca414804aa4f8e7ae8fb040bb.tar.gz txr-48e0e179ca9579eca414804aa4f8e7ae8fb040bb.tar.bz2 txr-48e0e179ca9579eca414804aa4f8e7ae8fb040bb.zip |
New display-width function.
* eval.c (eval_init): Register display-width intrinsic.
* lib.c (display_width): New function.
* lib.h (display_width): Declared.
* txr.1: Documented display-width.
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -4463,6 +4463,7 @@ void eval_init(void) reg_fun(intern(lit("prinl"), user_package), func_n2o(prinl, 1)); reg_fun(intern(lit("pprinl"), user_package), func_n2o(pprinl, 1)); reg_fun(intern(lit("tprint"), user_package), func_n2o(tprint, 1)); + reg_fun(intern(lit("display-width"), user_package), func_n1(display_width)); reg_varl(user_package_s = intern(lit("user-package"), user_package_var), user_package_var); |