Commit 10c2fb14 authored by Michael Meeks's avatar Michael Meeks

Fix warnings in fn-stat.c

Fix bug in cell_set_formula_tree_simple
parent 5eeddc8d
......@@ -9,13 +9,13 @@ And fixed these:
*
Morten:
*
* Found everyone else's bugs.
Miguel
*
Michael
*
*
Several translations updated: thanks to our translators
......
1999-05-19 Michael Meeks <michael@imaginator.com>
* src/fn-stat.c: Added 'static' to new non-global functions.
* src/cell.c (cell_set_formula_tree_simple): Added
missing sheet_cell_formula_unlink.
1999-05-19 Jukka-Pekka Iivonen <iivonen@iki.fi>
* src/fn-math.c: SERIESSUM(), SUBTOTAL() and SUMA() added.
......
1999-05-19 Michael Meeks <michael@imaginator.com>
* src/fn-stat.c: Added 'static' to new non-global functions.
* src/cell.c (cell_set_formula_tree_simple): Added
missing sheet_cell_formula_unlink.
1999-05-19 Jukka-Pekka Iivonen <iivonen@iki.fi>
* src/fn-math.c: SERIESSUM(), SUBTOTAL() and SUMA() added.
......
1999-05-19 Michael Meeks <michael@imaginator.com>
* src/fn-stat.c: Added 'static' to new non-global functions.
* src/cell.c (cell_set_formula_tree_simple): Added
missing sheet_cell_formula_unlink.
1999-05-19 Jukka-Pekka Iivonen <iivonen@iki.fi>
* src/fn-math.c: SERIESSUM(), SUBTOTAL() and SUMA() added.
......
1999-05-19 Michael Meeks <michael@imaginator.com>
* src/fn-stat.c: Added 'static' to new non-global functions.
* src/cell.c (cell_set_formula_tree_simple): Added
missing sheet_cell_formula_unlink.
1999-05-19 Jukka-Pekka Iivonen <iivonen@iki.fi>
* src/fn-math.c: SERIESSUM(), SUBTOTAL() and SUMA() added.
......
1999-05-19 Michael Meeks <michael@imaginator.com>
* ms-excel-read.c (ms_excel_set_cell_xf): Cleaned silly
debug.
1999-05-19 Jukka-Pekka Iivonen <iivonen@iki.fi>
* ms-formula-read.c (formula_func_data): LOGNORMDIST and NORMSDIST
......
......@@ -889,8 +889,10 @@ ms_excel_set_cell_xf (MS_EXCEL_SHEET * sheet, Cell * cell, guint16 xfidx)
if (p && p->len > idx)
xf = g_ptr_array_index (p, idx);
else {
printf ("No XF record for %d out of %d found :-(\n",
#if EXCEL_DEBUG > 0
printf ("FIXME: No XF record for %d out of %d found :-(\n",
xfidx, p?p->len:-666);
#endif
return;
}
if (xf->xftype != eBiffXCell)
......
......@@ -4052,7 +4052,7 @@ static char *help_averagea = {
"@SEEALSO=AVERAGE")
};
Value *
static Value *
gnumeric_averagea (Sheet *sheet, GList *expr_node_list,
int eval_col, int eval_row, char **error_string)
{
......@@ -4161,7 +4161,7 @@ callback_function_mina_maxa (Sheet *sheet, Value *value,
return TRUE;
}
Value *
static Value *
gnumeric_maxa (Sheet *sheet, GList *expr_node_list,
int eval_col, int eval_row, char **error_string)
{
......@@ -4194,7 +4194,7 @@ static char *help_mina = {
"@SEEALSO=MIN,MAXA")
};
Value *
static Value *
gnumeric_mina (Sheet *sheet, GList *expr_node_list,
int eval_col, int eval_row, char **error_string)
{
......@@ -4263,7 +4263,7 @@ static char *help_varpa = {
"@SEEALSO=VARP,VARP")
};
Value *
static Value *
gnumeric_varpa (Sheet *sheet, GList *expr_node_list, int eval_col,
int eval_row, char **error_string)
{
......@@ -4299,7 +4299,7 @@ static char *help_stdeva = {
"@SEEALSO=STDEV,STDEVPA")
};
Value *
static Value *
gnumeric_stdeva (Sheet *sheet, GList *expr_node_list, int eval_col,
int eval_row, char **error_string)
{
......@@ -4326,7 +4326,7 @@ static char *help_stdevpa = {
"@SEEALSO=STDEVA,STDEVP")
};
Value *
static Value *
gnumeric_stdevpa (Sheet *sheet, GList *expr_node_list, int eval_col,
int eval_row, char **error_string)
{
......
......@@ -732,8 +732,10 @@ cell_set_formula_tree_simple (Cell *cell, ExprTree *formula)
cell_modified (cell);
if (cell->parsed_node)
if (cell->parsed_node) {
sheet_cell_formula_unlink (cell);
expr_tree_unref (cell->parsed_node);
}
cell->parsed_node = formula;
expr_tree_ref (formula);
......
......@@ -4052,7 +4052,7 @@ static char *help_averagea = {
"@SEEALSO=AVERAGE")
};
Value *
static Value *
gnumeric_averagea (Sheet *sheet, GList *expr_node_list,
int eval_col, int eval_row, char **error_string)
{
......@@ -4161,7 +4161,7 @@ callback_function_mina_maxa (Sheet *sheet, Value *value,
return TRUE;
}
Value *
static Value *
gnumeric_maxa (Sheet *sheet, GList *expr_node_list,
int eval_col, int eval_row, char **error_string)
{
......@@ -4194,7 +4194,7 @@ static char *help_mina = {
"@SEEALSO=MIN,MAXA")
};
Value *
static Value *
gnumeric_mina (Sheet *sheet, GList *expr_node_list,
int eval_col, int eval_row, char **error_string)
{
......@@ -4263,7 +4263,7 @@ static char *help_varpa = {
"@SEEALSO=VARP,VARP")
};
Value *
static Value *
gnumeric_varpa (Sheet *sheet, GList *expr_node_list, int eval_col,
int eval_row, char **error_string)
{
......@@ -4299,7 +4299,7 @@ static char *help_stdeva = {
"@SEEALSO=STDEV,STDEVPA")
};
Value *
static Value *
gnumeric_stdeva (Sheet *sheet, GList *expr_node_list, int eval_col,
int eval_row, char **error_string)
{
......@@ -4326,7 +4326,7 @@ static char *help_stdevpa = {
"@SEEALSO=STDEVA,STDEVP")
};
Value *
static Value *
gnumeric_stdevpa (Sheet *sheet, GList *expr_node_list, int eval_col,
int eval_row, char **error_string)
{
......
......@@ -4052,7 +4052,7 @@ static char *help_averagea = {
"@SEEALSO=AVERAGE")
};
Value *
static Value *
gnumeric_averagea (Sheet *sheet, GList *expr_node_list,
int eval_col, int eval_row, char **error_string)
{
......@@ -4161,7 +4161,7 @@ callback_function_mina_maxa (Sheet *sheet, Value *value,
return TRUE;
}
Value *
static Value *
gnumeric_maxa (Sheet *sheet, GList *expr_node_list,
int eval_col, int eval_row, char **error_string)
{
......@@ -4194,7 +4194,7 @@ static char *help_mina = {
"@SEEALSO=MIN,MAXA")
};
Value *
static Value *
gnumeric_mina (Sheet *sheet, GList *expr_node_list,
int eval_col, int eval_row, char **error_string)
{
......@@ -4263,7 +4263,7 @@ static char *help_varpa = {
"@SEEALSO=VARP,VARP")
};
Value *
static Value *
gnumeric_varpa (Sheet *sheet, GList *expr_node_list, int eval_col,
int eval_row, char **error_string)
{
......@@ -4299,7 +4299,7 @@ static char *help_stdeva = {
"@SEEALSO=STDEV,STDEVPA")
};
Value *
static Value *
gnumeric_stdeva (Sheet *sheet, GList *expr_node_list, int eval_col,
int eval_row, char **error_string)
{
......@@ -4326,7 +4326,7 @@ static char *help_stdevpa = {
"@SEEALSO=STDEVA,STDEVP")
};
Value *
static Value *
gnumeric_stdevpa (Sheet *sheet, GList *expr_node_list, int eval_col,
int eval_row, char **error_string)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment