[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Hook change hook?
From: |
Neil Jerram |
Subject: |
Re: Hook change hook? |
Date: |
14 Mar 2002 20:48:56 +0000 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 |
>>>>> "Marius" == Marius Vollmer <address@hidden> writes:
Marius> Neil Jerram <address@hidden> writes:
>> For a clean solution I guess we should either add a new
>> scm_tc7_subr_3o type to the code (scary), or support genericization
>> of cclos (also scary).
Marius> We should do the latter. I'll look at this and let you know when I
Marius> have something.
Thanks.
>> PS. For future reference, here's the SCM_GDEFINE definition that I
>> added to snarf.h to try this out:
>>
>> #define SCM_GDEFINE(FNAME, PRIMNAME, REQ, OPT, VAR, ARGLIST, DOCSTRING) \
>> SCM_SNARF_HERE(\
>> static const char s_ ## FNAME [] = PRIMNAME; \
>> static SCM g_ ## FNAME; \
>> SCM FNAME ARGLIST\
>> )\
>> SCM_SNARF_INIT(\
>> scm_c_define_gsubr_with_generic (s_ ## FNAME, REQ, OPT, VAR, \
>> (SCM_FUNC_CAST_ARBITRARY_ARGS) FNAME, \
>> & g_ ## FNAME); \
Marius> Don't you need to initialize g_FNAME before calling
Marius> scm_c_define_gsubr_with_generic?
Yes, good spot. (I didn't get as far as hitting this, 'cos my
modified guile failed in initialization.)
Neil