[Ecls-list] Re: Bunch of fixes
Juan Jose Garcia Ripoll
worm at arrakis.es
Tue Mar 18 02:17:16 UTC 2003
On Tuesday 18 March 2003 03:25, Paul F. Dietz wrote:
> I wrote:
> > It looks like you're trying to put a local variable declaration after
> > a statement, which is illegal in C (but not in C++).
>
> The macro should have been defined as:
> #define saveTEST \
> cl_object old_test_function = test_function; \
> cl_object old_item_compared = item_compared; \
> bool (*old_tf)(cl_object) = tf; \
> cl_object old_key_function = key_function; \
> cl_object (*old_kf)(cl_object) = kf /* <==== note absence of semicolon
Thanks Paul! I am testing this in the computers of SourceForge, and now it
works. It is funny that my GCC 3.2 did not detect this syntax error. Is it
really an error? :-/ I will have to revise my copy of ISO-C '99.
Regards
Juanjo
More information about the ecl-devel
mailing list