<br>I don't see how your patch solves the problem you are faced with. What do you do the next time the name of an ecl_ function changes? You need to query the version of the API as you say, and your patch does not provide a way to do that.
<br><br>Alexander<br><br><div><span class="gmail_quote">On 7/23/07, <b class="gmail_sendername">Erik Huelsmann</b> <<a href="mailto:ehuels@gmail.com">ehuels@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Some months ago, the full (?) ecl api has received an ecl_ prefix<br>(apart from all functions which were already cl_ prefixed).<br><br>When writing FFI code with c-lines and c-inline, a developer may need<br>these ecl_ functions. Currently, there's no way to query which API a
<br>file is being compiled on.<br><br>I propose to resolve this issue by pushing a new feature into<br>*FEATURES* at ECL startup: :PREFIXED-API. The patch below does this.<br><br>At first I thought I'd try to resolve this with a version number
<br>increase, but then I realised I'd be pushing a feature myself, while<br>others can benefit from the solution when implemented this way.<br><br>bye,<br><br>Erik.<br><br><br>Here's a patch to implement my idea:<br>
<br>Index: src/c/main.d<br>===================================================================<br>RCS file: /project/ecl/cvsroot/ecl/src/c/main.d,v<br>retrieving revision 1.103<br>diff -u -r1.103 main.d<br>--- src/c/main.d 3 Jun 2007 13:56:11 -0000
1.103<br>+++ src/c/main.d 23 Jul 2007 06:49:28 -0000<br>@@ -424,11 +424,12 @@<br> cl_list(8, @'&optional', @'&rest', @'&key',<br>@'&allow-other-keys',<br>
@'&aux', @'&whole', @'&environment', @'&body'));<br><br>- features = cl_list(4,<br>+ features = cl_list(5,<br> ecl_make_keyword("ECL"),
<br> ecl_make_keyword("COMMON"),<br> ecl_make_keyword(ECL_ARCHITECTURE),<br>- ecl_make_keyword("FFI"));<br>+ ecl_make_keyword("FFI"),
<br>+ ecl_make_keyword("PREFIXED-API"));<br><br> #define ADD_FEATURE(name) features = CONS(ecl_make_keyword(name),features)<br><br>-------------------------------------------------------------------------
<br>This SF.net email is sponsored by: Splunk Inc.<br>Still grepping through log files to find problems? Stop.<br>Now Search log events and configuration files using AJAX and a browser.<br>Download your FREE copy of Splunk now >>
<a href="http://get.splunk.com/">http://get.splunk.com/</a><br>_______________________________________________<br>Ecls-list mailing list<br><a href="mailto:Ecls-list@lists.sourceforge.net">Ecls-list@lists.sourceforge.net</a>
<br><a href="https://lists.sourceforge.net/lists/listinfo/ecls-list">https://lists.sourceforge.net/lists/listinfo/ecls-list</a><br></blockquote></div><br>