Commit 1d919dff authored by Morten Welinder's avatar Morten Welinder

Make a bunch of stuff static.

parent a4c835e7
1999-09-19 Morten Welinder <terra@diku.dk>
* src/functions/fn-stat.c (callback_function_make_list): Static.
(init_make_list_closure): Static.
* src/expr.c (eval_expr_real): Static.
* src/functions/fn-math.c (gnumeric_sum): Static.
(gnumeric_suma): Static.
* src/analysis-tools.c (covariance_tool): Plug leak.
(descriptive_stat_tool): Plug leak.
(correlation_tool): Plug leak.
......
1999-09-19 Morten Welinder <terra@diku.dk>
* src/functions/fn-stat.c (callback_function_make_list): Static.
(init_make_list_closure): Static.
* src/expr.c (eval_expr_real): Static.
* src/functions/fn-math.c (gnumeric_sum): Static.
(gnumeric_suma): Static.
* src/analysis-tools.c (covariance_tool): Plug leak.
(descriptive_stat_tool): Plug leak.
(correlation_tool): Plug leak.
......
1999-09-18 Morten Welinder <terra@diku.dk>
* ole.c (cur_dir, delim): static.
1999-09-18 Jody Goldberg <jgoldberg@home.com>
* gnumeric-chart.c (gnumeric_chart_destroy) : implement.
......
......@@ -20,7 +20,7 @@
#define BIFF_TYPES_FILE "biff-types.h"
#define ESCHER_TYPES_FILE "escher-types.h"
char delim[]=" \t\n";
static char delim[]=" \t\n";
typedef struct {
guint16 opcode;
......@@ -31,7 +31,7 @@ static GPtrArray *biff_types = NULL;
static GPtrArray *escher_types = NULL;
typedef enum { eBiff=0, eEscher=1 } typeType;
char *cur_dir = NULL;
static char *cur_dir = NULL;
static void dump_vba (MsOle *f);
......
......@@ -1356,7 +1356,7 @@ static char *help_sum = {
"@SEEALSO=AVERAGE, COUNT")
};
Value *
static Value *
gnumeric_sum (FunctionEvalInfo *ei, GList *nodes)
{
return float_range_function (nodes, ei,
......@@ -1387,7 +1387,7 @@ static char *help_suma = {
"@SEEALSO=AVERAGE, SUM, COUNT")
};
Value *
static Value *
gnumeric_suma (FunctionEvalInfo *ei, GList *nodes)
{
return float_range_function (nodes, ei,
......
......@@ -75,7 +75,13 @@ callback_function_stat (const EvalPosition *ep, Value *value, void *closure)
return NULL;
}
Value *
typedef struct {
GSList *entries;
int n;
} make_list_t;
static Value *
callback_function_make_list (const EvalPosition *ep, Value *value,
void *closure)
{
......@@ -96,7 +102,7 @@ callback_function_make_list (const EvalPosition *ep, Value *value,
return NULL;
}
void
static void
init_make_list_closure(make_list_t *p)
{
p->n = 0;
......
......@@ -16,6 +16,8 @@
#include "func.h"
#include "utils.h"
static Value *eval_expr_real (FunctionEvalInfo *s, ExprTree const *tree);
EvalPosition *
eval_pos_init (EvalPosition *eval_pos, Sheet *sheet, int col, int row)
{
......@@ -774,7 +776,7 @@ eval_range (FunctionEvalInfo *s, Value *v)
}
}
Value *
static Value *
eval_expr_real (FunctionEvalInfo *s, ExprTree const *tree)
{
Value *res = NULL, *a = NULL, *b = NULL;
......
......@@ -132,7 +132,6 @@ Value *callback_function_stat (const EvalPosition *ep, Value *value,
Value *gnumeric_average (FunctionEvalInfo *s, GList *nodes);
Value *gnumeric_count (FunctionEvalInfo *s, GList *nodes);
Value *gnumeric_sum (FunctionEvalInfo *s, GList *nodes);
Value *gnumeric_stdev (FunctionEvalInfo *s, GList *nodes);
Value *gnumeric_stdevp (FunctionEvalInfo *s, GList *nodes);
Value *gnumeric_var (FunctionEvalInfo *s, GList *nodes);
......@@ -140,7 +139,6 @@ Value *gnumeric_varp (FunctionEvalInfo *s, GList *nodes);
Value *gnumeric_counta (FunctionEvalInfo *s, GList *nodes);
Value *gnumeric_min (FunctionEvalInfo *s, GList *nodes);
Value *gnumeric_max (FunctionEvalInfo *s, GList *nodes);
Value *gnumeric_suma (FunctionEvalInfo *s, GList *nodes);
Value *gnumeric_return_current_time (void);
......@@ -166,15 +164,6 @@ void parse_criteria (const char *criteria,
criteria_test_fun_t *fun,
Value **test_value);
typedef struct {
GSList *entries;
int n;
} make_list_t;
Value *callback_function_make_list (const EvalPosition *ep,
Value *value, void *closure);
void init_make_list_closure(make_list_t *p);
float_t get_serial_date (const Value *v);
GDate *get_date (const Value *v);
......
......@@ -1356,7 +1356,7 @@ static char *help_sum = {
"@SEEALSO=AVERAGE, COUNT")
};
Value *
static Value *
gnumeric_sum (FunctionEvalInfo *ei, GList *nodes)
{
return float_range_function (nodes, ei,
......@@ -1387,7 +1387,7 @@ static char *help_suma = {
"@SEEALSO=AVERAGE, SUM, COUNT")
};
Value *
static Value *
gnumeric_suma (FunctionEvalInfo *ei, GList *nodes)
{
return float_range_function (nodes, ei,
......
......@@ -75,7 +75,13 @@ callback_function_stat (const EvalPosition *ep, Value *value, void *closure)
return NULL;
}
Value *
typedef struct {
GSList *entries;
int n;
} make_list_t;
static Value *
callback_function_make_list (const EvalPosition *ep, Value *value,
void *closure)
{
......@@ -96,7 +102,7 @@ callback_function_make_list (const EvalPosition *ep, Value *value,
return NULL;
}
void
static void
init_make_list_closure(make_list_t *p)
{
p->n = 0;
......
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