[prev in list] [next in list] [prev in thread] [next in thread] 

List:       libsigc-list
Subject:    Re: [sigc] bind.h.m4 CALL_SIZE dependency
From:       Murray Cumming <murrayc () murrayc ! com>
Date:       2005-10-19 6:46:45
Message-ID: 1129704405.26226.35.camel () localhost ! localdomain
[Download RAW message or body]

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

_______________________________________________
libsigc-list mailing list
libsigc-list@gnome.org
http://mail.gnome.org/mailman/listinfo/libsigc-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic