From: Joel VanderWerf Date: 2009-06-13T05:17:57+09:00 Subject: Re: wrapping a C struct[] constant Martin DeMello wrote: > Using it (or want to use it!) from the ruby side to generate a hash of > constant => name and use that to unpack and display flag settings. If all you want is this data structure in ruby, you could parse the source (gccxml?), and then you have a pure ruby library that defines this hash. Define the parse->xml>rb part as a rake task if you need to keep up to date with the source files. -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407