summaryrefslogtreecommitdiffstats
path: root/struct.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-10-06 21:13:45 -0700
committerKaz Kylheku <kaz@kylheku.com>2015-10-06 21:13:45 -0700
commit8beabcd33ac984ee454f0871ffd45b940e279732 (patch)
tree624c01ce0d390ef86975d88033249d44ab6c0417 /struct.h
parent829f02b346d4060e64ec5847cbd0f066edd4a144 (diff)
downloadtxr-8beabcd33ac984ee454f0871ffd45b940e279732.tar.gz
txr-8beabcd33ac984ee454f0871ffd45b940e279732.tar.bz2
txr-8beabcd33ac984ee454f0871ffd45b940e279732.zip
New function: replace-struct.
* struct.c (replace_struct): New function. (struct_init): Register replace_struct intrinsic. * struct.h (replace_struct): Declared. * txr.1: documented replace-struct.
Diffstat (limited to 'struct.h')
-rw-r--r--struct.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/struct.h b/struct.h
index 1b1543ba..dff375eb 100644
--- a/struct.h
+++ b/struct.h
@@ -33,6 +33,7 @@ val super(val type);
val make_struct(val type, val plist, struct args *);
val copy_struct(val strct);
val clear_struct(val strct, val value);
+val replace_struct(val target, val source);
val find_struct_type(val sym);
val slot(val strct, val sym);
val slotset(val strct, val sym, val newval);