Thanks to Kabyl and cparm, I got FixFSB correctly implemented. But, too good to be true, am now stack at making the same happen to busratio. The whole problem here is the
float type (and more specifically declaring
getFloatForKey into stringTable.c).
This is what I 've done so far:
Inside of saio_internal.h, I added the following line:
extern bool getFloatForKey(const char *key, float *val, config_file_t *configBuff);
then I declared it into stringTable. This is where I get blocked
bool getFloatForKey( const char *key, float *value, config_file_t *config )
{
const char *val;
int size;
float sum;
if (getValueForKey(key, &val, &size, config))
{
if ( size )
{
if (*val == '-')
{
return false;
}
for (sum = 0; size > 0; size--)
{
if (*val < '2.5' || *val > '19.5')
return false;
sum = strtof(*val++ - '0'); // Here I was already playing with atof, strtod...
}
*value = sum;
return true;
}
}
return false;
}
I also added strtod.c inside of i386/libsa/
I used to "float" on the net, and found out some harsh issues related to this file on 10.5/10.6.
So my question is: how to go from here ? I know am wrongly editing stringTable. But could someone please give me a hand on this? Thanks.
Also if u have any alternative to strtod, atol or strtof, please tell me.