Commit da3a10ef authored by Jody Goldberg's avatar Jody Goldberg

stupid CVS

parent 9eaf277a
......@@ -2288,7 +2288,7 @@ write_value (BiffPut *bp, Value *v, MsBiffVersion ver,
}
case VALUE_INTEGER:
{
int_t vint = v->v_int.val;
gnum_int vint = v->v_int.val;
guint8 *data;
#ifndef NO_DEBUG_EXCEL
......@@ -2313,7 +2313,7 @@ write_value (BiffPut *bp, Value *v, MsBiffVersion ver,
}
case VALUE_FLOAT:
{
float_t val = v->v_float.val;
gnum_float val = v->v_float.val;
gboolean is_int = ((val - (int)val) == 0.0) &&
(((((int)val)<<2)>>2) == ((int)val));
......
......@@ -181,7 +181,7 @@ parse_criteria(const char *criteria, criteria_test_fun_t *fun,
Value **test_value)
{
char *p;
float_t tmp;
gnum_float tmp;
int len;
if (strncmp(criteria, "<=", 2) == 0) {
......@@ -514,7 +514,7 @@ gnumeric_daverage (FunctionEvalInfo *ei, Value **argv)
GSList *criterias;
GSList *cells, *current;
int field;
float_t sum;
gnum_float sum;
int count;
database = argv[0];
......@@ -772,7 +772,7 @@ gnumeric_dmax (FunctionEvalInfo *ei, Value **argv)
GSList *cells, *current;
Cell *cell;
int field;
float_t max;
gnum_float max;
database = argv[0];
criteria = argv[2];
......@@ -796,7 +796,7 @@ gnumeric_dmax (FunctionEvalInfo *ei, Value **argv)
max = value_get_as_float (cell->value);
while (current != NULL) {
float_t v;
gnum_float v;
cell = current->data;
if (VALUE_IS_NUMBER(cell->value)) {
......@@ -840,7 +840,7 @@ gnumeric_dmin (FunctionEvalInfo *ei, Value **argv)
GSList *cells, *current;
Cell *cell;
int field;
float_t min;
gnum_float min;
database = argv[0];
criteria = argv[2];
......@@ -866,7 +866,7 @@ gnumeric_dmin (FunctionEvalInfo *ei, Value **argv)
min = value_get_as_float (cell->value);
while (current != NULL) {
float_t v;
gnum_float v;
cell = current->data;
if (VALUE_IS_NUMBER(cell->value)) {
......@@ -909,7 +909,7 @@ gnumeric_dproduct (FunctionEvalInfo *ei, Value **argv)
GSList *cells, *current;
Cell *cell;
int field;
float_t product;
gnum_float product;
database = argv[0];
criteria = argv[2];
......@@ -936,7 +936,7 @@ gnumeric_dproduct (FunctionEvalInfo *ei, Value **argv)
cell = current->data;
while (current != NULL) {
float_t v;
gnum_float v;
cell = current->data;
v = value_get_as_float (cell->value);
......@@ -1111,7 +1111,7 @@ gnumeric_dsum (FunctionEvalInfo *ei, Value **argv)
GSList *cells, *current;
Cell *cell;
int field;
float_t sum;
gnum_float sum;
database = argv[0];
criteria = argv[2];
......@@ -1137,7 +1137,7 @@ gnumeric_dsum (FunctionEvalInfo *ei, Value **argv)
cell = current->data;
while (current != NULL) {
float_t v;
gnum_float v;
cell = current->data;
v = value_get_as_float (cell->value);
......
......@@ -375,7 +375,7 @@ static char *help_time = {
static Value *
gnumeric_time (FunctionEvalInfo *ei, Value **argv)
{
float_t hours, minutes, seconds;
gnum_float hours, minutes, seconds;
hours = value_get_as_float (argv [0]);
minutes = value_get_as_float (argv [1]);
......@@ -403,7 +403,7 @@ static char *help_timevalue = {
static Value *
gnumeric_timevalue (FunctionEvalInfo *ei, Value **argv)
{
float_t raw;
gnum_float raw;
if (argv[0]->type == VALUE_ERROR)
return value_duplicate (argv[0]);
......@@ -671,7 +671,7 @@ gnumeric_days360 (FunctionEvalInfo *ei, Value **argv)
GDate *date1, *date2;
int day1, day2, month1, month2, year1, year2, result;
gboolean flipped;
float_t serial1, serial2;
gnum_float serial1, serial2;
if (argv[2]) {
gboolean err;
......@@ -689,7 +689,7 @@ gnumeric_days360 (FunctionEvalInfo *ei, Value **argv)
serial1 = datetime_value_to_serial (argv[0]);
serial2 = datetime_value_to_serial (argv[1]);
if ((flipped = (serial1 > serial2))) {
float_t tmp = serial1;
gnum_float tmp = serial1;
serial1 = serial2;
serial2 = tmp;
}
......
......@@ -1361,14 +1361,14 @@ static char *help_convert = {
typedef struct {
char *str;
float_t c;
gnum_float c;
} eng_convert_unit_t;
static float_t
static gnum_float
get_constant_of_unit(eng_convert_unit_t units[],
eng_convert_unit_t prefixes[],
char *unit_name, float_t *c, float_t *prefix)
char *unit_name, gnum_float *c, gnum_float *prefix)
{
int i;
......@@ -1400,9 +1400,9 @@ static Value *
convert (eng_convert_unit_t units[],
eng_convert_unit_t prefixes[],
char *from_unit, char *to_unit,
float_t n, Value **v, const EvalPos *ep)
gnum_float n, Value **v, const EvalPos *ep)
{
float_t from_c, from_prefix, to_c, to_prefix;
gnum_float from_c, from_prefix, to_c, to_prefix;
if (get_constant_of_unit (units, prefixes, from_unit, &from_c,
&from_prefix)) {
......@@ -1601,7 +1601,7 @@ gnumeric_convert (FunctionEvalInfo *ei, Value **argv)
{ NULL,0.0 }
};
float_t n;
gnum_float n;
char *from_unit, *to_unit;
Value *v;
......@@ -1691,7 +1691,7 @@ static char *help_erf = {
static Value *
gnumeric_erf (FunctionEvalInfo *ei, Value **argv)
{
float_t ans, lower, upper=0.0;
gnum_float ans, lower, upper=0.0;
lower = value_get_as_float (argv [0]);
ans = erf(lower);
......@@ -1728,7 +1728,7 @@ static char *help_erfc = {
static Value *
gnumeric_erfc (FunctionEvalInfo *ei, Value **argv)
{
float_t x;
gnum_float x;
x=value_get_as_float (argv [0]);
......
......@@ -51,28 +51,28 @@ Future value interest factor of annuities
*/
static float_t
calculate_pvif (float_t rate, float_t nper)
static gnum_float
calculate_pvif (gnum_float rate, gnum_float nper)
{
return (pow (1 + rate, nper));
}
#if 0
static float_t
calculate_fvif (float_t rate, float_t nper)
static gnum_float
calculate_fvif (gnum_float rate, gnum_float nper)
{
return (1.0 / calculate_pvif (rate,nper));
}
static float_t
calculate_pvifa (float_t rate, float_t nper)
static gnum_float
calculate_pvifa (gnum_float rate, gnum_float nper)
{
return ((1.0 / rate) - (1.0 / (rate * pow (1 + rate, nper))));
}
#endif
static float_t
calculate_fvifa (float_t rate, float_t nper)
static gnum_float
calculate_fvifa (gnum_float rate, gnum_float nper)
{
return ((pow (1 + rate, nper) - 1) / rate);
}
......@@ -85,18 +85,18 @@ PR(x) = PR(0) * ( 1 + rate ) ^ x + PMT * ( ( 1 + rate ) ^ x - 1 ) / rate )
*/
static float_t
calculate_principal (float_t starting_principal, float_t payment,
float_t rate, float_t period)
static gnum_float
calculate_principal (gnum_float starting_principal, gnum_float payment,
gnum_float rate, gnum_float period)
{
return (starting_principal * pow (1.0 + rate, period) + payment *
((pow (1 + rate, period) - 1) / rate));
}
static float_t
calculate_pmt (float_t rate, float_t nper, float_t pv, float_t fv, int type)
static gnum_float
calculate_pmt (gnum_float rate, gnum_float nper, gnum_float pv, gnum_float fv, int type)
{
float_t pvif, fvifa;
gnum_float pvif, fvifa;
/* Calculate the PVIF and FVIFA */
......@@ -196,7 +196,7 @@ days_monthly_basis (Value *issue_date, Value *maturity_date, int basis)
* Returns the number of days in the coupon period of the settlement date.
* Currently, returns negative numbers if the branch is not implemented.
*/
static float_t
static gnum_float
coupdays (GDate *settlement, GDate *maturity, int freq, int basis)
{
GDateYear sy, my;
......@@ -589,7 +589,7 @@ static char *help_accrint = {
static Value *
gnumeric_accrint (FunctionEvalInfo *ei, Value **argv)
{
float_t rate, a, d, par, freq, coefficient, x;
gnum_float rate, a, d, par, freq, coefficient, x;
int basis;
rate = value_get_as_float (argv[3]);
......@@ -647,7 +647,7 @@ static char *help_accrintm = {
static Value *
gnumeric_accrintm (FunctionEvalInfo *ei, Value **argv)
{
float_t rate, a, d, par;
gnum_float rate, a, d, par;
int basis;
rate = value_get_as_float (argv[2]);
......@@ -706,7 +706,7 @@ static char *help_intrate = {
static Value *
gnumeric_intrate (FunctionEvalInfo *ei, Value **argv)
{
float_t investment, redemption, a, d;
gnum_float investment, redemption, a, d;
int basis;
investment = value_get_as_float (argv[2]);
......@@ -755,7 +755,7 @@ static char *help_received = {
static Value *
gnumeric_received (FunctionEvalInfo *ei, Value **argv)
{
float_t investment, discount, a, d, n;
gnum_float investment, discount, a, d, n;
int basis;
investment = value_get_as_float (argv[2]);
......@@ -809,7 +809,7 @@ static char *help_pricedisc = {
static Value *
gnumeric_pricedisc (FunctionEvalInfo *ei, Value **argv)
{
float_t discount, redemption, a, d;
gnum_float discount, redemption, a, d;
int basis;
discount = value_get_as_float (argv[2]);
......@@ -856,7 +856,7 @@ static char *help_pricemat = {
static Value *
gnumeric_pricemat (FunctionEvalInfo *ei, Value **argv)
{
float_t discount, yield, a, b, dsm, dim, n;
gnum_float discount, yield, a, b, dsm, dim, n;
int basis;
discount = value_get_as_float (argv[3]);
......@@ -910,7 +910,7 @@ static char *help_disc = {
static Value *
gnumeric_disc (FunctionEvalInfo *ei, Value **argv)
{
float_t par, redemption, dsm, b;
gnum_float par, redemption, dsm, b;
int basis;
par = value_get_as_float (argv[2]);
......@@ -962,7 +962,7 @@ static char *help_effect = {
static Value *
gnumeric_effect (FunctionEvalInfo *ei, Value **argv)
{
float_t rate;
gnum_float rate;
int nper;
rate = value_get_as_float (argv[0]);
......@@ -1000,7 +1000,7 @@ static char *help_nominal = {
static Value *
gnumeric_nominal (FunctionEvalInfo *ei, Value **argv)
{
float_t rate;
gnum_float rate;
int nper;
rate = value_get_as_float (argv[0]);
......@@ -1032,7 +1032,7 @@ static char *help_ispmt = {
static Value *
gnumeric_ispmt (FunctionEvalInfo *ei, Value **argv)
{
float_t rate, pv, tmp;
gnum_float rate, pv, tmp;
int nper, per;
rate = value_get_as_float (argv[0]);
......@@ -1070,9 +1070,9 @@ static char *help_db = {
static Value *
gnumeric_db (FunctionEvalInfo *ei, Value **argv)
{
float_t rate;
float_t cost, salvage, life, period, month;
float_t total;
gnum_float rate;
gnum_float cost, salvage, life, period, month;
gnum_float total;
int i;
cost = value_get_as_float (argv[0]);
......@@ -1125,8 +1125,8 @@ static char *help_ddb = {
static Value *
gnumeric_ddb (FunctionEvalInfo *ei, Value **argv)
{
float_t cost, salvage, life, period, factor;
float_t total;
gnum_float cost, salvage, life, period, factor;
gnum_float total;
int i;
cost = value_get_as_float (argv[0]);
......@@ -1140,7 +1140,7 @@ gnumeric_ddb (FunctionEvalInfo *ei, Value **argv)
total = 0;
for (i = 0; i < life - 1; i++) {
float_t period_dep = (cost - total) * (factor / life);
gnum_float period_dep = (cost - total) * (factor / life);
if (period - 1 == i)
return value_new_float (period_dep);
else
......@@ -1189,7 +1189,7 @@ static char *help_sln = {
static Value *
gnumeric_sln (FunctionEvalInfo *ei, Value **argv)
{
float_t cost,salvage_value,life;
gnum_float cost,salvage_value,life;
cost = value_get_as_float (argv[0]);
salvage_value = value_get_as_float (argv[1]);
......@@ -1242,7 +1242,7 @@ static char *help_syd = {
static Value *
gnumeric_syd (FunctionEvalInfo *ei, Value **argv)
{
float_t cost, salvage_value, life, period;
gnum_float cost, salvage_value, life, period;
cost = value_get_as_float (argv[0]);
salvage_value = value_get_as_float (argv[1]);
......@@ -1278,9 +1278,9 @@ static char *help_dollarde = {
static Value *
gnumeric_dollarde (FunctionEvalInfo *ei, Value **argv)
{
float_t fractional_dollar;
gnum_float fractional_dollar;
int fraction, n, tmp;
float_t floored, rest;
gnum_float floored, rest;
fractional_dollar = value_get_as_float (argv[0]);
fraction = value_get_as_int (argv[1]);
......@@ -1296,7 +1296,7 @@ gnumeric_dollarde (FunctionEvalInfo *ei, Value **argv)
floored = floor (fractional_dollar);
rest = fractional_dollar - floored;
return value_new_float (floored + ((float_t) rest * pow (10,n) /
return value_new_float (floored + ((gnum_float) rest * pow (10,n) /
fraction));
}
......@@ -1320,9 +1320,9 @@ static char *help_dollarfr = {
static Value *
gnumeric_dollarfr (FunctionEvalInfo *ei, Value **argv)
{
float_t fractional_dollar;
gnum_float fractional_dollar;
int fraction, n, tmp;
float_t floored, rest;
gnum_float floored, rest;
fractional_dollar = value_get_as_float (argv[0]);
fraction = value_get_as_int (argv[1]);
......@@ -1338,7 +1338,7 @@ gnumeric_dollarfr (FunctionEvalInfo *ei, Value **argv)
floored = floor (fractional_dollar);
rest = fractional_dollar - floored;
return value_new_float (floored + ((float_t) (rest*fraction) /
return value_new_float (floored + ((gnum_float) (rest*fraction) /
pow (10, n)));
}
......@@ -1359,8 +1359,8 @@ static char *help_mirr = {
static Value *
gnumeric_mirr (FunctionEvalInfo *ei, Value **argv)
{
float_t frate, rrate, npv_neg, npv_pos;
float_t *values = NULL, res;
gnum_float frate, rrate, npv_neg, npv_pos;
gnum_float *values = NULL, res;
Value *result = NULL;
int i, n;
......@@ -1375,7 +1375,7 @@ gnumeric_mirr (FunctionEvalInfo *ei, Value **argv)
goto out;
for (i = 0, npv_pos = npv_neg = 0; i < n; i++) {
float_t v = values[i];
gnum_float v = values[i];
if (v >= 0)
npv_pos += v / pow (1 + rrate, i);
else
......@@ -1426,8 +1426,8 @@ static char *help_tbilleq = {
static Value *
gnumeric_tbilleq (FunctionEvalInfo *ei, Value **argv)
{
float_t settlement, maturity, discount;
float_t dsm, divisor;
gnum_float settlement, maturity, discount;
gnum_float dsm, divisor;
settlement = datetime_value_to_serial (argv[0]);
maturity = datetime_value_to_serial (argv[1]);
......@@ -1471,8 +1471,8 @@ static char *help_tbillprice = {
static Value *
gnumeric_tbillprice (FunctionEvalInfo *ei, Value **argv)
{
float_t settlement, maturity, discount;
float_t res, dsm;
gnum_float settlement, maturity, discount;
gnum_float res, dsm;
settlement = datetime_value_to_serial (argv[0]);
maturity = datetime_value_to_serial (argv[1]);
......@@ -1512,8 +1512,8 @@ static char *help_tbillyield = {
static Value *
gnumeric_tbillyield (FunctionEvalInfo *ei, Value **argv)
{
float_t settlement, maturity, pr;
float_t res, dsm;
gnum_float settlement, maturity, pr;
gnum_float res, dsm;
settlement = datetime_value_to_serial (argv[0]);
maturity = datetime_value_to_serial (argv[1]);
......@@ -1544,11 +1544,11 @@ static char *help_rate = {
typedef struct {
int nper, type;
float_t pv, fv, pmt;
gnum_float pv, fv, pmt;
} gnumeric_rate_t;
static GoalSeekStatus
gnumeric_rate_f (float_t rate, float_t *y, void *user_data)
gnumeric_rate_f (gnum_float rate, gnum_float *y, void *user_data)
{
if (rate > -1.0 && rate != 0) {
gnumeric_rate_t *data = user_data;
......@@ -1563,7 +1563,7 @@ gnumeric_rate_f (float_t rate, float_t *y, void *user_data)
/* The derivative of the above function with respect to rate. */
static GoalSeekStatus
gnumeric_rate_df (float_t rate, float_t *y, void *user_data)
gnumeric_rate_df (gnum_float rate, gnum_float *y, void *user_data)
{
if (rate > -1.0 && rate != 0.0) {
gnumeric_rate_t *data = user_data;
......@@ -1583,7 +1583,7 @@ gnumeric_rate (FunctionEvalInfo *ei, Value **argv)
GoalSeekData data;
GoalSeekStatus status;
gnumeric_rate_t udata;
float_t rate0;
gnum_float rate0;
udata.nper = value_get_as_int (argv[0]);
udata.pmt = value_get_as_float (argv[1]);
......@@ -1668,14 +1668,14 @@ static char *help_irr = {
typedef struct {
int n;
float_t *values;
gnum_float *values;
} gnumeric_irr_t;
static GoalSeekStatus
irr_npv (float_t rate, float_t *y, void *user_data)
irr_npv (gnum_float rate, gnum_float *y, void *user_data)
{
gnumeric_irr_t *p = user_data;
float_t *values, sum;
gnum_float *values, sum;
int i, n;
values = p->values;
......@@ -1696,10 +1696,10 @@ irr_npv (float_t rate, float_t *y, void *user_data)
}
static GoalSeekStatus
irr_npv_df (float_t rate, float_t *y, void *user_data)
irr_npv_df (gnum_float rate, gnum_float *y, void *user_data)
{
gnumeric_irr_t *p = user_data;
float_t *values, sum;
gnum_float *values, sum;
int i, n;
values = p->values;
......@@ -1720,7 +1720,7 @@ gnumeric_irr (FunctionEvalInfo *ei, Value **argv)
GoalSeekStatus status;
Value *result = NULL;
gnumeric_irr_t p;
float_t rate0;
gnum_float rate0;
rate0 = argv[1] ? value_get_as_float (argv[1]) : 0.1;
......@@ -1788,8 +1788,8 @@ static char *help_pv = {
static Value *
gnumeric_pv (FunctionEvalInfo *ei, Value **argv)
{
float_t rate, nper, pmt, fv;
float_t pvif, fvifa;
gnum_float rate, nper, pmt, fv;
gnum_float pvif, fvifa;
int type;
rate = value_get_as_float (argv[0]);
......@@ -1830,8 +1830,8 @@ static char *help_npv = {
};
typedef struct {
float_t rate;
float_t sum;
gnum_float rate;
gnum_float sum;
int num;
} financial_npv_t;
......@@ -1888,8 +1888,8 @@ static char *help_xnpv = {
static Value *
gnumeric_xnpv (FunctionEvalInfo *ei, Value **argv)
{
float_t rate, *payments = NULL, *dates = NULL;
float_t sum;
gnum_float rate, *payments = NULL, *dates = NULL;
gnum_float sum;
int p_n, d_n, i;
Value *result = NULL;
......@@ -1959,15 +1959,15 @@ static char *help_xirr = {
typedef struct {
int n;
float_t *values;
float_t *dates;
gnum_float *values;
gnum_float *dates;
} gnumeric_xirr_t;
static GoalSeekStatus
xirr_npv (float_t rate, float_t *y, void *user_data)
xirr_npv (gnum_float rate, gnum_float *y, void *user_data)
{
gnumeric_xirr_t *p = user_data;
float_t *values, *dates, sum;
gnum_float *values, *dates, sum;
int i, n;
values = p->values;
......@@ -1976,7 +1976,7 @@ xirr_npv (float_t rate, float_t *y, void *user_data)
sum = 0;
for (i = 0; i < n; i++) {
float_t d = dates[i] - dates[0];
gnum_float d = dates[i] - dates[0];
if (d < 0)
return GOAL_SEEK_ERROR;
......@@ -1994,7 +1994,7 @@ gnumeric_xirr (FunctionEvalInfo *ei, Value **argv)
GoalSeekStatus status;
Value *result = NULL;
gnumeric_xirr_t p;
float_t rate0;
gnum_float rate0;
int n, d_n;
goal_seek_initialise (&data);
......@@ -2051,8 +2051,8 @@ static char *help_fv = {
static Value *
gnumeric_fv (FunctionEvalInfo *ei, Value **argv)
{
float_t rate, nper, pv, pmt;
float_t pvif, fvifa;
gnum_float rate, nper, pv, pmt;
gnum_float pvif, fvifa;
int type;
rate = value_get_as_float (argv[0]);
......@@ -2085,7 +2085,7 @@ static char *help_pmt = {
static Value *
gnumeric_pmt (FunctionEvalInfo *ei, Value **argv)
{
float_t rate, pv, fv, nper;
gnum_float rate, pv, fv, nper;
int type;
rate = value_get_as_float (argv[0]);
......@@ -2123,8 +2123,8 @@ static char *help_ipmt = {
static Value *
gnumeric_ipmt (FunctionEvalInfo *ei, Value **argv)
{
float_t rate, nper, per, pv, fv;
float_t pmt;
gnum_float rate, nper, per, pv, fv;
gnum_float pmt;
int type;
rate = value_get_as_float (argv[0]);
......@@ -2170,8 +2170,8 @@ static char *help_ppmt = {
static Value *
gnumeric_ppmt (FunctionEvalInfo *ei, Value **argv)
{
float_t rate, nper, per, pv, fv;
float_t ipmt, pmt;
gnum_float rate, nper, per, pv, fv;
gnum_float ipmt, pmt;
int type;
rate = value_get_as_float (argv[0]);
......@@ -2222,7 +2222,7 @@ static char *help_nper = {
static Value *
gnumeric_nper (FunctionEvalInfo *ei, Value **argv)
{
float_t rate, pmt, pv, fv, tmp;
gnum_float rate, pmt, pv, fv, tmp;
int type;
rate = value_get_as_float (argv[0]);
......@@ -2262,7 +2262,7 @@ static char *help_duration = {
static Value *
gnumeric_duration (FunctionEvalInfo *ei, Value **argv)
{
float_t rate,pv,fv;
gnum_float rate,pv,fv;
rate = value_get_as_float (argv[0]);
pv = value_get_as_float (argv[1]);
......@@ -2302,7 +2302,7 @@ static char *help_fvschedule = {
static Value *
gnumeric_fvschedule (FunctionEvalInfo *ei, Value **argv)
{
float_t pv, *schedule = NULL;
gnum_float pv, *schedule = NULL;
Value *result = NULL;
int i, n;
......@@ -2663,7 +2663,7 @@ gnumeric_coupdays (FunctionEvalInfo *ei, Value **argv)
GDate *settlement;
GDate *maturity;
int freq, basis;
float_t days;
gnum_float days;
if (argv[0]->type == VALUE_ERROR)
return value_duplicate (argv[0]);
......@@ -2800,7 +2800,7 @@ gnumeric_coupnum (FunctionEvalInfo *ei, Value **argv)
GDate *settlement;
GDate *maturity;
int freq, basis;
float_t n;
gnum_float n;
if (argv[0]->type == VALUE_ERROR)
return value_duplicate (argv[0]);
......
......@@ -27,7 +27,7 @@ callback_function_sumxy (Sheet *sheet, int col, int row,
Cell *cell, void *user_data)
{
math_sums_t *mm = user_data;
float_t x;
gnum_float x;
gpointer p;
if (cell == NULL || cell->value == NULL)
......@@ -51,8 +51,8 @@ callback_function_sumxy (Sheet *sheet, int col, int row,
return NULL;
}
p = g_new(float_t, 1);
*((float_t *) p) = x;
p = g_new(gnum_float, 1);
*((gnum_float *) p) = x;
mm->list = g_slist_append(mm->list, p);
mm->num++;
......@@ -66,7 +66,7 @@ typedef struct {
int num;
int total_num;