>
> >>>The first proposal is IMHO enough for everyday use, the second is for
> >>>architectures which didn't allow lossless transportation of information
> >>>between a void* and an integer type (in case you use ti_data to contain
> >>>the information instead of a pointer to the information).
> >> Only "problem" I can see immediately with void* is that all values needs to
> >> be casted, which wasn't strictly necessary with unsigned long, and float/
> >> double still needs to be temporarily stored. :P
> >I'm waiting for your solution which didn't need casts (and remember the
> >mail which talked about casts in lame).
>
> Eheh, well, we'll see what I can cook up. ;)
>
>
> - CISC
>
Why not something like:
lame_set_float(char *variable_name, float val);
lame_set_int(char *variable_name, int val);
But this brings up another question: The code is going to do a lot of
parsing, and it looks like each variable will require several lines of
code? If that is the case, then we dont actually save anything and we
might as well just creating a short function for every variable? This
way there are no type casting problems.
Mark
--
MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )