Thank you. that seems to be a great start.
On Thu, Jan 30, 2014 at 12:34 AM, John Myles White <[email protected] > wrote: > Have you tried Clang.jl? It won't nail the enums, but it's a really good > start. > > -- John > > On Jan 29, 2014, at 10:57 AM, Sharmila Gopirajan Sivakumar < > [email protected]> wrote: > > > Hi, > > I'm working on the MySQL library for Julia based on MySQL's C api. I > often run into enumerations to be passed as parameters. for example > > http://dev.mysql.com/doc/refman/5.0/en/mysql-stmt-attr-set.html > > > > The approach that I can come up with is to find the header file where > this enum is defined, infer the possible integer value it corresponds to > (as the integer value is not explicitly associated to the enum attribute in > C code ), define the corresponding value in Julia and pass it to the > function. I find this tedious and error prone at times (when the number of > enum values cross a dozen). Is there an alternative way that I'm missing? > > > > Regards, > > Sharmi > >
