is there an easy way to add a new local variable ?   e.g.,

sprintf(dest,src)  will become

int temp;
temp = 5;
snprintf(dest,sizeof(dest),src)

I realize that this has several instructions instead of just one instruction
like before  -- that's fine however
the function mkLocalVar requiring a fundec -- does it mean I need to use a
different CilVisitor like  visitCilFunction.   Current I use
visitCilFileSameGlobal




Thanks


VN -


2009/12/22 Gabriel Kerneis <kern...@pps.jussieu.fr>

> On Tue, Dec 22, 2009 at 08:32:23AM -0700, ThanhVu (Vu) Nguyen wrote:
> > Did you mean "SizeOfE"?
>
> I meant the CIL constructor SizeOf, which you can build manually or
> using SizeOfE (which won't make any difference in the end).
>
> Regards,
> --
> Gabriel Kerneis
>
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
CIL-users mailing list
CIL-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cil-users

Reply via email to