Commit 23c3803d authored by Jody Goldberg's avatar Jody Goldberg

clean up the api to function categories

parent 54665134
......@@ -156,7 +156,7 @@ generic_marshaller (FunctionEvalInfo *ei, GList *nodes)
static void
register_vb_function (Workbook *opt_workbook,
const char *name,
FunctionCategory *cat,
GnmFuncGroup *cat,
GBWorkbookData *wd)
{
GnmFunc *fndef;
......@@ -204,9 +204,7 @@ read_gb (gpointer *jody_broke_the_context,
} else {
{ /* 1. Register GB functions with Excel */
GSList *fns, *f;
FunctionCategory *cat;
cat = function_get_category ("GnomeBasic");
GnmFuncGroup *group = gnm_func_group_fetch ("GnomeBasic");
fns = gbrun_project_fn_names (wd->proj);
......
......@@ -180,7 +180,7 @@ static SCM
scm_register_function (SCM scm_name, SCM scm_args, SCM scm_help, SCM scm_category, SCM scm_function)
{
GnmFunc *fndef;
FunctionCategory *cat;
GnmFuncGroup *cat;
GnmFuncDescriptor desc;
char *help;
......@@ -207,7 +207,7 @@ scm_register_function (SCM scm_name, SCM scm_args, SCM scm_help, SCM scm_categor
desc.impl_status = GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC;
desc.test_status = GNM_FUNC_TEST_STATUS_UNKNOWN;
cat = function_get_category (SCM_CHARS (scm_category));
cat = gnm_func_group_fetch (SCM_CHARS (scm_category));
fndef = gnm_func_add (cat, &desc);
gnm_func_set_user_data (fndef, GINT_TO_POINTER (scm_function));
......
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