summaryrefslogtreecommitdiffstats
path: root/struct.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-11-30 06:11:09 -0800
committerKaz Kylheku <kaz@kylheku.com>2015-11-30 06:11:09 -0800
commitd2e883cf32ea9fa82f33768104bc5993bfc60a04 (patch)
tree66a11ab2a82ffa84b1047c5d2485f53b50acbb4a /struct.h
parent72955500f8b3a5bc52585d3f24aa3d71bdca3b19 (diff)
downloadtxr-d2e883cf32ea9fa82f33768104bc5993bfc60a04.tar.gz
txr-d2e883cf32ea9fa82f33768104bc5993bfc60a04.tar.bz2
txr-d2e883cf32ea9fa82f33768104bc5993bfc60a04.zip
func-get-name calculates a name for methods.
* eval.c (func_get_name): Use try to use new method_name function, if unable to get name from the lexical or global environment for functions. * struct.c (meth_s): New symbol variable. (struct_init): Initialize meth_s variable. (method_name): New function. * struct.h (method_name): Declared. * txr.1: Re-documented func-get-name.
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 3d5b1942..f0dacaf7 100644
--- a/struct.h
+++ b/struct.h
@@ -50,4 +50,5 @@ val method(val strct, val slotsym);
val super_method(val strct, val slotsym);
val uslot(val slot);
val umethod(val slot);
+val method_name(val fun);
void struct_init(void);