Commit 798daec8 authored by Morten Welinder's avatar Morten Welinder Committed by Morten Welinder

Remove.

2002-04-19  Morten Welinder  <terra@diku.dk>

	* src/expr.c (gnm_expr_new_error): Remove.

2002-04-19  Morten Welinder <terra@diku.dk>

	* lotus-formula.c (make_function): Use error constant as
	expression.  (I.e., don't call "ERROR".)
parent 311bf977
2002-04-19 Morten Welinder <terra@diku.dk>
* src/expr.c (gnm_expr_new_error): Use error constant for all the
regular errors. (Thus, don't refer to the NA function.)
* src/expr.c (gnm_expr_new_error): Remove.
* src/func-builtin.c (gnumeric_selection, gnumeric_version): Moved
from fn-sheet.
......
2002-04-19 Morten Welinder <terra@diku.dk>
* src/expr.c (gnm_expr_new_error): Use error constant for all the
regular errors. (Thus, don't refer to the NA function.)
* src/expr.c (gnm_expr_new_error): Remove.
* src/func-builtin.c (gnumeric_selection, gnumeric_version): Moved
from fn-sheet.
......
2002-04-19 Morten Welinder <terra@diku.dk>
* src/expr.c (gnm_expr_new_error): Use error constant for all the
regular errors. (Thus, don't refer to the NA function.)
* src/expr.c (gnm_expr_new_error): Remove.
* src/func-builtin.c (gnumeric_selection, gnumeric_version): Moved
from fn-sheet.
......
2002-04-19 Morten Welinder <terra@diku.dk>
* lotus-formula.c (make_function): Use error constant as
expression. (I.e., don't call "ERROR".)
2002-03-25 Jody Goldberg <jody@gnome.org>
* Release 1.1.2
......
......@@ -260,7 +260,7 @@ make_function (GnmExprList **stack, guint16 idx, guint8 *data)
txt = g_strdup_printf ("[Function '%s']",
f->name ? f->name : "?");
printf ("Unknown %s\n", txt);
parse_list_push_expr (stack, gnm_expr_new_error (txt));
parse_list_push_expr (stack, gnm_expr_new_constant (value_new_error (NULL, txt)));
g_free (txt);
parse_list_free (&args);
......
......@@ -63,28 +63,6 @@ gnm_expr_new_constant (Value *v)
return (GnmExpr *)ans;
}
GnmExpr const *
gnm_expr_new_error (char const *txt)
{
FunctionDefinition *func;
GnmExprList *args = NULL;
if (strcmp (txt, gnumeric_err_NA) == 0 ||
strcmp (txt, gnumeric_err_DIV0) == 0 ||
strcmp (txt, gnumeric_err_VALUE) == 0 ||
strcmp (txt, gnumeric_err_REF) == 0 ||
strcmp (txt, gnumeric_err_NAME) == 0 ||
strcmp (txt, gnumeric_err_NUM) == 0 ||
strcmp (txt, gnumeric_err_NA) == 0)
return gnm_expr_new_constant (value_new_error (NULL, txt));
func = func_lookup_by_name ("ERROR", NULL);
args = gnm_expr_list_prepend (NULL,
gnm_expr_new_constant (value_new_string (txt)));
func_ref (func);
return gnm_expr_new_funcall (func, args);
}
GnmExpr const *
gnm_expr_new_funcall (FunctionDefinition *func, GnmExprList *args)
{
......
......@@ -52,7 +52,6 @@ GnmExpr const *gnm_expr_new_cellref (CellRef const *cr);
GnmExpr const *gnm_expr_new_array (int x, int y, int cols, int rows);
GnmExpr const *gnm_expr_new_set (GnmExprList *args);
GnmExpr const *gnm_expr_new_error (char const *txt);
GnmExpr const *gnm_expr_first_func (GnmExpr const *expr);
Value *gnm_expr_get_range (GnmExpr const *expr) ;
FunctionDefinition *gnm_expr_get_func_def (GnmExpr const *expr);
......
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