Commit a9a20284 authored by Jody Goldberg's avatar Jody Goldberg Committed by Jody Goldberg

Suppress some warnings and make non-bonobo build clean.

2000-09-24  Jody Goldberg <jgoldberg@home.com>

	* src/normal-args.c : Suppress warning.

	* src/functions/fn*.c : Add a prototype of the _init routine to
	  suppress warning.

	* src/eval.c (cell_recalc_dependencies ) : Comment out until it is
	  implemented.

	* src/sheet-object-widget.c (sheet_object_widget_new) : delete.
parent 8f89ad4e
2000-09-24 Jody Goldberg <jgoldberg@home.com>
* src/normal-args.c : Suppress warning.
* src/functions/fn*.c : Add a prototype of the _init routine to
suppress warning.
* src/eval.c (cell_recalc_dependencies ) : Comment out until it is
implemented.
* src/sheet-object-widget.c (sheet_object_widget_new) : delete.
2000-09-23 Jody Goldberg <jgoldberg@home.com>
* src/workbook.c (workbook_create_standard_toobar) : Attempt to inject
......
2000-09-24 Jody Goldberg <jgoldberg@home.com>
* src/normal-args.c : Suppress warning.
* src/functions/fn*.c : Add a prototype of the _init routine to
suppress warning.
* src/eval.c (cell_recalc_dependencies ) : Comment out until it is
implemented.
* src/sheet-object-widget.c (sheet_object_widget_new) : delete.
2000-09-23 Jody Goldberg <jgoldberg@home.com>
* src/workbook.c (workbook_create_standard_toobar) : Attempt to inject
......
2000-09-24 Jody Goldberg <jgoldberg@home.com>
* src/normal-args.c : Suppress warning.
* src/functions/fn*.c : Add a prototype of the _init routine to
suppress warning.
* src/eval.c (cell_recalc_dependencies ) : Comment out until it is
implemented.
* src/sheet-object-widget.c (sheet_object_widget_new) : delete.
2000-09-23 Jody Goldberg <jgoldberg@home.com>
* src/workbook.c (workbook_create_standard_toobar) : Attempt to inject
......
2000-09-24 Jody Goldberg <jgoldberg@home.com>
* src/normal-args.c : Suppress warning.
* src/functions/fn*.c : Add a prototype of the _init routine to
suppress warning.
* src/eval.c (cell_recalc_dependencies ) : Comment out until it is
implemented.
* src/sheet-object-widget.c (sheet_object_widget_new) : delete.
2000-09-23 Jody Goldberg <jgoldberg@home.com>
* src/workbook.c (workbook_create_standard_toobar) : Attempt to inject
......
2000-09-24 Jody Goldberg <jgoldberg@home.com>
* src/normal-args.c : Suppress warning.
* src/functions/fn*.c : Add a prototype of the _init routine to
suppress warning.
* src/eval.c (cell_recalc_dependencies ) : Comment out until it is
implemented.
* src/sheet-object-widget.c (sheet_object_widget_new) : delete.
2000-09-23 Jody Goldberg <jgoldberg@home.com>
* src/workbook.c (workbook_create_standard_toobar) : Attempt to inject
......
2000-09-24 Jody Goldberg <jgoldberg@home.com>
* src/normal-args.c : Suppress warning.
* src/functions/fn*.c : Add a prototype of the _init routine to
suppress warning.
* src/eval.c (cell_recalc_dependencies ) : Comment out until it is
implemented.
* src/sheet-object-widget.c (sheet_object_widget_new) : delete.
2000-09-23 Jody Goldberg <jgoldberg@home.com>
* src/workbook.c (workbook_create_standard_toobar) : Attempt to inject
......
2000-09-24 Jody Goldberg <jgoldberg@home.com>
* src/normal-args.c : Suppress warning.
* src/functions/fn*.c : Add a prototype of the _init routine to
suppress warning.
* src/eval.c (cell_recalc_dependencies ) : Comment out until it is
implemented.
* src/sheet-object-widget.c (sheet_object_widget_new) : delete.
2000-09-23 Jody Goldberg <jgoldberg@home.com>
* src/workbook.c (workbook_create_standard_toobar) : Attempt to inject
......
......@@ -1330,6 +1330,7 @@ gnumeric_getpivotdata (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
void database_functions_init(void);
void
database_functions_init(void)
{
......
......@@ -120,7 +120,7 @@ static char *help_datedif = {
"@SEEALSO=DATE")
};
int
static int
datedif_opt_ym (GDate *gdate1, GDate *gdate2)
{
g_assert (g_date_valid (gdate1));
......@@ -129,7 +129,7 @@ datedif_opt_ym (GDate *gdate1, GDate *gdate2)
return datetime_g_months_between (gdate1, gdate2) % 12;
}
int
static int
datedif_opt_yd (GDate *gdate1, GDate *gdate2, int excel_compat)
{
int day;
......@@ -160,7 +160,7 @@ datedif_opt_yd (GDate *gdate1, GDate *gdate2, int excel_compat)
return datetime_g_days_between (gdate1, gdate2);
}
int
static int
datedif_opt_md (GDate *gdate1, GDate *gdate2, int excel_compat)
{
int day;
......@@ -968,6 +968,7 @@ gnumeric_networkdays (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
void date_functions_init(void);
void
date_functions_init(void)
{
......
......@@ -1847,6 +1847,7 @@ gnumeric_gestep (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
void eng_functions_init (void);
void
eng_functions_init (void)
{
......
......@@ -2908,6 +2908,7 @@ gnumeric_vdb (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
void finance_functions_init (void);
void
finance_functions_init (void)
{
......
......@@ -851,6 +851,7 @@ gnumeric_type (FunctionEvalInfo *ei, GList *expr_node_list)
/***************************************************************************/
void information_functions_init (void);
void
information_functions_init (void)
{
......@@ -894,6 +895,4 @@ information_functions_init (void)
&help_na, gnumeric_na);
function_add_nodes (cat, "type", NULL, "value",
&help_type, gnumeric_type);
};
}
......@@ -270,6 +270,7 @@ gnumeric_false (FunctionEvalInfo *ei, Value **args)
/***************************************************************************/
void logical_functions_init (void);
void
logical_functions_init (void)
{
......
......@@ -1126,6 +1126,7 @@ gnumeric_transpose (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
void lookup_functions_init (void);
void
lookup_functions_init (void)
{
......
......@@ -3348,6 +3348,7 @@ gnumeric_sumproduct (FunctionEvalInfo *ei, GList *args)
/***************************************************************************/
void math_functions_init (void);
void
math_functions_init (void)
{
......
......@@ -4700,6 +4700,7 @@ gnumeric_slope (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
void stat_functions_init (void);
void
stat_functions_init (void)
{
......
......@@ -1329,6 +1329,7 @@ match_again:
/***************************************************************************/
void string_functions_init (void);
void
string_functions_init (void)
{
......
......@@ -877,11 +877,13 @@ cell_get_dependencies (const Cell *cell)
return deps;
}
#if 0
void
cell_recalc_dependencies (const Cell *cell)
{
/* FIXME is there a way to write this without replicating alot of code ? */
}
#endif
static Dependent *
pick_next_dependent_from_queue (Workbook *wb)
......
......@@ -877,11 +877,13 @@ cell_get_dependencies (const Cell *cell)
return deps;
}
#if 0
void
cell_recalc_dependencies (const Cell *cell)
{
/* FIXME is there a way to write this without replicating alot of code ? */
}
#endif
static Dependent *
pick_next_dependent_from_queue (Workbook *wb)
......
......@@ -1330,6 +1330,7 @@ gnumeric_getpivotdata (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
void database_functions_init(void);
void
database_functions_init(void)
{
......
......@@ -120,7 +120,7 @@ static char *help_datedif = {
"@SEEALSO=DATE")
};
int
static int
datedif_opt_ym (GDate *gdate1, GDate *gdate2)
{
g_assert (g_date_valid (gdate1));
......@@ -129,7 +129,7 @@ datedif_opt_ym (GDate *gdate1, GDate *gdate2)
return datetime_g_months_between (gdate1, gdate2) % 12;
}
int
static int
datedif_opt_yd (GDate *gdate1, GDate *gdate2, int excel_compat)
{
int day;
......@@ -160,7 +160,7 @@ datedif_opt_yd (GDate *gdate1, GDate *gdate2, int excel_compat)
return datetime_g_days_between (gdate1, gdate2);
}
int
static int
datedif_opt_md (GDate *gdate1, GDate *gdate2, int excel_compat)
{
int day;
......@@ -968,6 +968,7 @@ gnumeric_networkdays (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
void date_functions_init(void);
void
date_functions_init(void)
{
......
......@@ -1847,6 +1847,7 @@ gnumeric_gestep (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
void eng_functions_init (void);
void
eng_functions_init (void)
{
......
......@@ -2908,6 +2908,7 @@ gnumeric_vdb (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
void finance_functions_init (void);
void
finance_functions_init (void)
{
......
......@@ -851,6 +851,7 @@ gnumeric_type (FunctionEvalInfo *ei, GList *expr_node_list)
/***************************************************************************/
void information_functions_init (void);
void
information_functions_init (void)
{
......@@ -894,6 +895,4 @@ information_functions_init (void)
&help_na, gnumeric_na);
function_add_nodes (cat, "type", NULL, "value",
&help_type, gnumeric_type);
};
}
......@@ -270,6 +270,7 @@ gnumeric_false (FunctionEvalInfo *ei, Value **args)
/***************************************************************************/
void logical_functions_init (void);
void
logical_functions_init (void)
{
......
......@@ -1126,6 +1126,7 @@ gnumeric_transpose (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
void lookup_functions_init (void);
void
lookup_functions_init (void)
{
......
......@@ -3348,6 +3348,7 @@ gnumeric_sumproduct (FunctionEvalInfo *ei, GList *args)
/***************************************************************************/
void math_functions_init (void);
void
math_functions_init (void)
{
......
......@@ -131,6 +131,7 @@ gnumeric_version (FunctionEvalInfo *ei, Value *argv [])
*
* WARNING * WARNING * WARNING
*/
void sheet_functions_init (void);
void
sheet_functions_init (void)
{
......
......@@ -4700,6 +4700,7 @@ gnumeric_slope (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
void stat_functions_init (void);
void
stat_functions_init (void)
{
......
......@@ -1329,6 +1329,7 @@ match_again:
/***************************************************************************/
void string_functions_init (void);
void
string_functions_init (void)
{
......
......@@ -13,7 +13,6 @@
#include "gnumeric.h"
#include "gnumeric-sheet.h"
#include "gnumeric-util.h"
#include "sheet-object-container.h"
#include "color.h"
#include "selection.h"
#include "parse-util.h"
......@@ -23,6 +22,10 @@
#include "workbook-edit.h"
#include "workbook.h"
#include "commands.h"
#ifdef ENABLE_BONOBO
# include "sheet-object-container.h"
#endif
#include <gal/widgets/e-cursors.h>
static GnomeCanvasClass *sheet_parent_class;
......
......@@ -13,7 +13,6 @@
#include "gnumeric.h"
#include "gnumeric-sheet.h"
#include "gnumeric-util.h"
#include "sheet-object-container.h"
#include "color.h"
#include "selection.h"
#include "parse-util.h"
......@@ -23,6 +22,10 @@
#include "workbook-edit.h"
#include "workbook.h"
#include "commands.h"
#ifdef ENABLE_BONOBO
# include "sheet-object-container.h"
#endif
#include <gal/widgets/e-cursors.h>
static GnomeCanvasClass *sheet_parent_class;
......
......@@ -10,6 +10,7 @@
#include <config.h>
#include <gnome.h>
#include "gnumeric.h"
#include "sheet.h"
#include "workbook.h"
#include "main.h"
......@@ -29,5 +30,3 @@ void
sheet_corba_setup (Sheet *sheet)
{
}
......@@ -175,21 +175,6 @@ sheet_object_widget_construct (SheetObjectWidget *sow, Sheet *sheet)
sheet_object_set_bounds (so, 0, 0, 30, 30);
}
SheetObject *
sheet_object_widget_new (Sheet *sheet)
{
SheetObjectWidget *sow;
g_return_val_if_fail (sheet != NULL, NULL);
g_return_val_if_fail (IS_SHEET (sheet), NULL);
sow = gtk_type_new (sheet_object_widget_get_type ());
sheet_object_widget_construct (sow, sheet);
return SHEET_OBJECT (sow);
}
static GNUMERIC_MAKE_TYPE (sheet_object_widget,
"SheetObjectWidget", SheetObjectWidget,
&sheet_object_widget_class_init, NULL,
......
......@@ -111,7 +111,7 @@ struct _WorkbookPrivate {
#endif
};
WorkbookPrivate * workbook_private_new ();
void workbook_private_delete (WorkbookPrivate *wbp);
WorkbookPrivate *workbook_private_new (void);
void workbook_private_delete (WorkbookPrivate *wbp);
#endif /* GNUMERIC_WORKBOOK_PRIVATE_H */
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