Commit e712beb5 authored by Miguel de Icaza's avatar Miguel de Icaza Committed by Arturo Espinosa

1999-02-22 Tim Mooney <mooney@dogbert.cc.ndsu.nodak.edu>

1999-02-22  Miguel de Icaza  <miguel@nuclecu.unam.mx>


1999-02-22  Tim Mooney  <mooney@dogbert.cc.ndsu.nodak.edu>

	* plugins/guile/plugin.c (func_scm_apply): Initialization of
	structure is done in the function body, rather thatn when it is
	declared.  This is necessary because struct initializer must be
	determinable at compile time, and those aren't.

	* src/expr.c (eval_expr): Add at least one statement to the
	default: handler in the case.

	* src/fn-math.c: provide a break for default handlers.
	* src/item-edit.c (entry_event): ditto

	* src/dialog-cell-format.c (create_number_format_page): Initialize
	in the body, like above.

1999-02-22  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* plugins/guile/plugin.c (func_scm_apply): Initialize the
parent 00da09bd
1999-02-22 Miguel de Icaza <miguel@nuclecu.unam.mx>
1999-02-22 Tim Mooney <mooney@dogbert.cc.ndsu.nodak.edu>
* plugins/guile/plugin.c (func_scm_apply): Initialization of
structure is done in the function body, rather thatn when it is
declared. This is necessary because struct initializer must be
determinable at compile time, and those aren't.
* src/expr.c (eval_expr): Add at least one statement to the
default: handler in the case.
* src/fn-math.c: provide a break for default handlers.
* src/item-edit.c (entry_event): ditto
* src/dialog-cell-format.c (create_number_format_page): Initialize
in the body, like above.
1999-02-22 Miguel de Icaza <miguel@nuclecu.unam.mx>
* plugins/guile/plugin.c (func_scm_apply): Initialize the
cell_ref.sheet to NULL.
1999-02-22 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/sheet.c (sheet_cell_remove_internal): Queue recalcs for
cells that depend on cells that are being destroyed.
(clear_cell_content): Added a call to workbook_recalc
(sheet_clear_region_content): same.
1999-02-21 Michael Meeks <michael@imaginator.com>
......
1999-02-22 Miguel de Icaza <miguel@nuclecu.unam.mx>
1999-02-22 Tim Mooney <mooney@dogbert.cc.ndsu.nodak.edu>
* plugins/guile/plugin.c (func_scm_apply): Initialization of
structure is done in the function body, rather thatn when it is
declared. This is necessary because struct initializer must be
determinable at compile time, and those aren't.
* src/expr.c (eval_expr): Add at least one statement to the
default: handler in the case.
* src/fn-math.c: provide a break for default handlers.
* src/item-edit.c (entry_event): ditto
* src/dialog-cell-format.c (create_number_format_page): Initialize
in the body, like above.
1999-02-22 Miguel de Icaza <miguel@nuclecu.unam.mx>
* plugins/guile/plugin.c (func_scm_apply): Initialize the
cell_ref.sheet to NULL.
1999-02-22 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/sheet.c (sheet_cell_remove_internal): Queue recalcs for
cells that depend on cells that are being destroyed.
(clear_cell_content): Added a call to workbook_recalc
(sheet_clear_region_content): same.
1999-02-21 Michael Meeks <michael@imaginator.com>
......
1999-02-22 Miguel de Icaza <miguel@nuclecu.unam.mx>
1999-02-22 Tim Mooney <mooney@dogbert.cc.ndsu.nodak.edu>
* plugins/guile/plugin.c (func_scm_apply): Initialization of
structure is done in the function body, rather thatn when it is
declared. This is necessary because struct initializer must be
determinable at compile time, and those aren't.
* src/expr.c (eval_expr): Add at least one statement to the
default: handler in the case.
* src/fn-math.c: provide a break for default handlers.
* src/item-edit.c (entry_event): ditto
* src/dialog-cell-format.c (create_number_format_page): Initialize
in the body, like above.
1999-02-22 Miguel de Icaza <miguel@nuclecu.unam.mx>
* plugins/guile/plugin.c (func_scm_apply): Initialize the
cell_ref.sheet to NULL.
1999-02-22 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/sheet.c (sheet_cell_remove_internal): Queue recalcs for
cells that depend on cells that are being destroyed.
(clear_cell_content): Added a call to workbook_recalc
(sheet_clear_region_content): same.
1999-02-21 Michael Meeks <michael@imaginator.com>
......
1999-02-22 Miguel de Icaza <miguel@nuclecu.unam.mx>
1999-02-22 Tim Mooney <mooney@dogbert.cc.ndsu.nodak.edu>
* plugins/guile/plugin.c (func_scm_apply): Initialization of
structure is done in the function body, rather thatn when it is
declared. This is necessary because struct initializer must be
determinable at compile time, and those aren't.
* src/expr.c (eval_expr): Add at least one statement to the
default: handler in the case.
* src/fn-math.c: provide a break for default handlers.
* src/item-edit.c (entry_event): ditto
* src/dialog-cell-format.c (create_number_format_page): Initialize
in the body, like above.
1999-02-22 Miguel de Icaza <miguel@nuclecu.unam.mx>
* plugins/guile/plugin.c (func_scm_apply): Initialize the
cell_ref.sheet to NULL.
1999-02-22 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/sheet.c (sheet_cell_remove_internal): Queue recalcs for
cells that depend on cells that are being destroyed.
(clear_cell_content): Added a call to workbook_recalc
(sheet_clear_region_content): same.
1999-02-21 Michael Meeks <michael@imaginator.com>
......
......@@ -163,6 +163,7 @@ callback_function_and (Sheet *sheet, Value *value, char **error_string, void *cl
default:
/* ignore strings */
break;
}
return TRUE;
......@@ -812,6 +813,7 @@ callback_function_min_max (Sheet *sheet, Value *value, char **error_string, void
default:
/* ignore strings */
break;
}
return TRUE;
......@@ -915,6 +917,7 @@ callback_function_or (Sheet *sheet, Value *value, char **error_string, void *clo
default:
/* ignore strings */
break;
}
return TRUE;
......
......@@ -264,8 +264,14 @@ func_scm_apply (void *tsheet, GList *expr_node_list, int eval_col, int eval_row,
for (i = g_list_length(expr_node_list) - 1; i >= 1; --i)
{
CellRef eval_cell = { eval_col, eval_row, 0, 0 };
CellRef eval_cell;
eval_cell.col = eval_col;
eval_cell.row = eval_row;
eval_cell.col_relative = 0;
eval_cell.row_relative = 0;
eval_cell.sheet = NULL;
value = eval_expr(tsheet, (ExprTree*)g_list_nth(expr_node_list, i)->data, eval_col, eval_row, error_string);
if (value == NULL)
{
......
......@@ -270,7 +270,9 @@ create_number_format_page (GtkWidget *prop_win, CellList *cells)
/* 1.2 Fill the category list */
gtk_clist_freeze (GTK_CLIST (number_cat_list));
for (i = 0; cell_formats [i].name; i++){
gchar *text [1] = { _(cell_formats [i].name) };
gchar *text [1];
text [0] = _(cell_formats [i].name);
gtk_clist_append (GTK_CLIST (number_cat_list), text);
}
......
......@@ -270,7 +270,9 @@ create_number_format_page (GtkWidget *prop_win, CellList *cells)
/* 1.2 Fill the category list */
gtk_clist_freeze (GTK_CLIST (number_cat_list));
for (i = 0; cell_formats [i].name; i++){
gchar *text [1] = { _(cell_formats [i].name) };
gchar *text [1];
text [0] = _(cell_formats [i].name);
gtk_clist_append (GTK_CLIST (number_cat_list), text);
}
......
......@@ -827,6 +827,7 @@ eval_expr (void *asheet, ExprTree *tree, int eval_col, int eval_row, char **erro
res->v.v_int = pow (a->v.v_int, b->v.v_int);
break;
default:
break;
}
} else {
res->type = VALUE_FLOAT;
......@@ -863,6 +864,7 @@ eval_expr (void *asheet, ExprTree *tree, int eval_col, int eval_row, char **erro
res->v.v_float = pow (a->v.v_float, b->v.v_float);
break;
default:
break;
}
}
value_release (a);
......
......@@ -163,6 +163,7 @@ callback_function_and (Sheet *sheet, Value *value, char **error_string, void *cl
default:
/* ignore strings */
break;
}
return TRUE;
......@@ -812,6 +813,7 @@ callback_function_min_max (Sheet *sheet, Value *value, char **error_string, void
default:
/* ignore strings */
break;
}
return TRUE;
......@@ -915,6 +917,7 @@ callback_function_or (Sheet *sheet, Value *value, char **error_string, void *clo
default:
/* ignore strings */
break;
}
return TRUE;
......
......@@ -163,6 +163,7 @@ callback_function_and (Sheet *sheet, Value *value, char **error_string, void *cl
default:
/* ignore strings */
break;
}
return TRUE;
......@@ -812,6 +813,7 @@ callback_function_min_max (Sheet *sheet, Value *value, char **error_string, void
default:
/* ignore strings */
break;
}
return TRUE;
......@@ -915,6 +917,7 @@ callback_function_or (Sheet *sheet, Value *value, char **error_string, void *clo
default:
/* ignore strings */
break;
}
return TRUE;
......
......@@ -215,6 +215,7 @@ entry_event (GtkEntry *entry, GdkEvent *event, ItemEdit *item_edit)
queue_sync (item_edit);
default:
break;
}
return FALSE;
}
......
......@@ -196,6 +196,7 @@ fill_item_destroy (FillItem *fi)
break;
default:
break;
}
g_free (fi);
}
......
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