Commit e870ac3f authored by Jukka-Pekka Iivonen's avatar Jukka-Pekka Iivonen Committed by jpekka

New file added for database functions. Implemented DAVERAGE(), DCOUNT(),

1999-05-03  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/fn-database.c: New file added for database
 	functions. Implemented DAVERAGE(), DCOUNT(), DGET(), DMAX(),
 	DMIN(), DPRODUCT(), DSTDEV(), DSTDEVP(), DSUM(), DVAR(), and
 	DVARP().

	* src/func.c: Added registeration of database functions.

	* src/fn-stat.c, src/func.h: callback_function_stat made public.
parent f945774c
1999-05-03 Jukka-Pekka Iivonen <iivonen@iki.fi>
* src/fn-database.c: New file added for database
functions. Implemented DAVERAGE(), DCOUNT(), DGET(), DMAX(),
DMIN(), DPRODUCT(), DSTDEV(), DSTDEVP(), DSUM(), DVAR(), and
DVARP().
* src/func.c: Added registeration of database functions.
* src/fn-stat.c, src/func.h: callback_function_stat made public.
1999-05-02 Michael Meeks <michael@imaginator.com>
* src/expr.h: Spelling fix 'substract' :-)
......
1999-05-03 Jukka-Pekka Iivonen <iivonen@iki.fi>
* src/fn-database.c: New file added for database
functions. Implemented DAVERAGE(), DCOUNT(), DGET(), DMAX(),
DMIN(), DPRODUCT(), DSTDEV(), DSTDEVP(), DSUM(), DVAR(), and
DVARP().
* src/func.c: Added registeration of database functions.
* src/fn-stat.c, src/func.h: callback_function_stat made public.
1999-05-02 Michael Meeks <michael@imaginator.com>
* src/expr.h: Spelling fix 'substract' :-)
......
1999-05-03 Jukka-Pekka Iivonen <iivonen@iki.fi>
* src/fn-database.c: New file added for database
functions. Implemented DAVERAGE(), DCOUNT(), DGET(), DMAX(),
DMIN(), DPRODUCT(), DSTDEV(), DSTDEVP(), DSUM(), DVAR(), and
DVARP().
* src/func.c: Added registeration of database functions.
* src/fn-stat.c, src/func.h: callback_function_stat made public.
1999-05-02 Michael Meeks <michael@imaginator.com>
* src/expr.h: Spelling fix 'substract' :-)
......
1999-05-03 Jukka-Pekka Iivonen <iivonen@iki.fi>
* src/fn-database.c: New file added for database
functions. Implemented DAVERAGE(), DCOUNT(), DGET(), DMAX(),
DMIN(), DPRODUCT(), DSTDEV(), DSTDEVP(), DSUM(), DVAR(), and
DVARP().
* src/func.c: Added registeration of database functions.
* src/fn-stat.c, src/func.h: callback_function_stat made public.
1999-05-02 Michael Meeks <michael@imaginator.com>
* src/expr.h: Spelling fix 'substract' :-)
......
This diff is collapsed.
......@@ -591,12 +591,7 @@ pf(float_t x, float_t n1, float_t n2)
typedef struct {
int N;
float_t M, Q;
} stat_closure_t;
static void
void
setup_stat_closure (stat_closure_t *cl)
{
cl->N = 0;
......@@ -604,7 +599,7 @@ setup_stat_closure (stat_closure_t *cl)
cl->Q = 0.0;
}
static int
int
callback_function_stat (Sheet *sheet, Value *value, char **error_string,
void *closure)
{
......
This diff is collapsed.
......@@ -591,12 +591,7 @@ pf(float_t x, float_t n1, float_t n2)
typedef struct {
int N;
float_t M, Q;
} stat_closure_t;
static void
void
setup_stat_closure (stat_closure_t *cl)
{
cl->N = 0;
......@@ -604,7 +599,7 @@ setup_stat_closure (stat_closure_t *cl)
cl->Q = 0.0;
}
static int
int
callback_function_stat (Sheet *sheet, Value *value, char **error_string,
void *closure)
{
......
......@@ -271,6 +271,7 @@ functions_init (void)
install_symbols (eng_functions, _("Engineering"));
install_symbols (lookup_functions, _("Data / Lookup"));
install_symbols (logical_functions, _("Logical"));
install_symbols (database_functions, _("Database"));
}
void
......
......@@ -14,6 +14,7 @@ extern FunctionDefinition finance_functions [];
extern FunctionDefinition eng_functions [];
extern FunctionDefinition lookup_functions [];
extern FunctionDefinition logical_functions [];
extern FunctionDefinition database_functions [];
typedef int (*FunctionIterateCallback)(Sheet *sheet, Value *value, char **error_string, void *);
......@@ -81,12 +82,20 @@ typedef struct {
FunctionDefinition *fd ;
} TokenizedHelp;
typedef struct {
int N;
float_t M, Q;
} stat_closure_t;
TokenizedHelp *tokenized_help_new (FunctionDefinition *fd) ;
char *tokenized_help_find (TokenizedHelp *tok, char *token) ;
void tokenized_help_destroy (TokenizedHelp *tok) ;
float_t combin (int n, int k);
float_t fact (int n);
void setup_stat_closure (stat_closure_t *cl);
int callback_function_stat (Sheet *sheet, Value *value, char **error_string,
void *closure);
Value *gnumeric_average (Sheet *sheet, GList *expr_node_list,
int eval_col, int eval_row,
......
This diff is collapsed.
......@@ -591,12 +591,7 @@ pf(float_t x, float_t n1, float_t n2)
typedef struct {
int N;
float_t M, Q;
} stat_closure_t;
static void
void
setup_stat_closure (stat_closure_t *cl)
{
cl->N = 0;
......@@ -604,7 +599,7 @@ setup_stat_closure (stat_closure_t *cl)
cl->Q = 0.0;
}
static int
int
callback_function_stat (Sheet *sheet, Value *value, char **error_string,
void *closure)
{
......
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