* Re: Hook change hook? [not found] ` <m3u1s39b21.fsf@laruns.ossau.uklinux.net> @ 2002-03-14 19:50 ` Marius Vollmer 2002-03-14 20:48 ` Neil Jerram 0 siblings, 1 reply; 2+ messages in thread From: Marius Vollmer @ 2002-03-14 19:50 UTC (permalink / raw) Cc: Guile Development Neil Jerram <neil@ossau.uklinux.net> 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). We should do the latter. I'll look at this and let you know when I have something. > 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); \ Don't you need to initialize g_FNAME before calling scm_c_define_gsubr_with_generic? _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Hook change hook? 2002-03-14 19:50 ` Hook change hook? Marius Vollmer @ 2002-03-14 20:48 ` Neil Jerram 0 siblings, 0 replies; 2+ messages in thread From: Neil Jerram @ 2002-03-14 20:48 UTC (permalink / raw) Cc: Guile Development >>>>> "Marius" == Marius Vollmer <mvo@zagadka.ping.de> writes: Marius> Neil Jerram <neil@ossau.uklinux.net> 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 _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-03-14 20:48 UTC | newest] Thread overview: 2+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <m3lmdu7r01.fsf@laruns.ossau.uklinux.net> [not found] ` <87ofigytfl.fsf@zagadka.ping.de> [not found] ` <m3u1s39b21.fsf@laruns.ossau.uklinux.net> 2002-03-14 19:50 ` Hook change hook? Marius Vollmer 2002-03-14 20:48 ` Neil Jerram
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).