Re: [CIL users] 回复: merge and convert declarations to static

2012-04-11 Thread Harald Gustafsson
Thanks for the help. For the record here is the complete code with typos fixed. I also switched to default not apply it and only enable it when doing the ar pass with cilly on the merged code. (* Convert all global definitions/declarations into static *) open Cil open Pretty class makeStaticVisi

[CIL users] merge and convert declarations to static

2012-04-10 Thread Harald Gustafsson
I'm using CIL to merge a c-project into one file scope, which works well. I'm doing this since I'm testing to convert libx264 video codec library into Android's Renderscript. Renderscript is C99 compliant, but requires one file scope for a complete program. Another requirement is that anything that