Re: [sigc] bind.h.m4 CALL_SIZE dependency



On Tue, 2005-10-18 at 04:23 -0700, dasjotre (sent by Nabble.com) wrote:
> hi, 
> 
> struct count_void definition in bind.h.m4 does not use CALL_SIZE 

Yes, it would be good to fix that. But could you please try to create an
actual cvs patch and attach it to a bugzilla bug? Thanks.

> I don't have much experience in m4 by this works: 
> 
> define([deffone], 
> [ 
> // $1 specialization 
> template< ifelse( eval($1), eval(CALL_SIZE), [], LOOP( [class T_arg%
> 1], eval(CALL_SIZE-$1))) > 
> struct count_void ifelse( eval($1), eval(0), [ ], [ifelse( eval($1),
> eval(CALL_SIZE), [< LOOP([void], eval($1)) >], [< LOOP([T_arg%1],
> eval(CALL_SIZE-$1)), LOOP([void], eval($1)) >])]) 
> { 
>         enum { value = $1 }; 
> }; 
> ]) 
> 
> define([def_all_impl], [ifelse(eval($1), eval(CALL_SIZE+1), [],
> [deffone($1) def_all_impl(eval($1+1))])]) 
> define([def_all], [def_all_impl([0])]) 
> def_all() 
> 
> VVS 
> 
> ______________________________________________________________________
> Sent from the Gnome - Libsigc forum at Nabble.com. 
> _______________________________________________
> libsigc-list mailing list
> libsigc-list gnome org
> http://mail.gnome.org/mailman/listinfo/libsigc-list




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]