Re: [pygccxml-development] C type normalization utility function?
Brought to you by:
mbaas,
roman_yakovenko
From: Gustavo C. <gjc...@gm...> - 2008-06-11 09:45:21
|
2008/6/10 Roman Yakovenko <rom...@gm...>: > On Mon, Jun 9, 2008 at 1:36 PM, Gustavo Carneiro <gjc...@gm...> > wrote: > > As seen in > > > > https://bugs.launchpad.net/bugs/238455 > > > > I am getting problems in PyBindGen related to differences in types like > > "char*" vs "char *", also the position of the 'const' keyword may change, > > etc. > > > > I am looking for some robust, pure python code to parse C types and > extract > > features from it, or produce a canonical type string, so that I can use > it > > PyBindGen. Does something like this exist in pygccxml > > No, but we can discuss such addition to pygccxml. I think this is a > nice & useful feature. > > > or elsewhere that I can steal? :-) > > May be from here: http://code.google.com/p/cppclean/wiki/InternalDesign Thanks for the link! This code looks nice, if excessive for what I want. Using and adapting this code to parse C types is now on my medium priority TODO list. If I get something useful out of it, I'll post here the result. Thanks, -- Gustavo J. A. M. Carneiro INESC Porto, Telecommunications and Multimedia Unit "The universe is always one step beyond logic." -- Frank Herbert |