Commit 0492e214 authored by Jeff Garzik's avatar Jeff Garzik
Browse files

Warning fixes, and a printf fix in ms-excel.c.

parent 743b71bf
1998-01-03 Jeff Garzik <jgarzik@pobox.com>
* src/number-match.c, src/plugin-manager.c, src/sheet.c:
Warning fixes.
1999-01-03 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/expr.c (do_expr_decode_tree): Add termination NULL to the OPER_NEG
......
1998-01-03 Jeff Garzik <jgarzik@pobox.com>
* src/number-match.c, src/plugin-manager.c, src/sheet.c:
Warning fixes.
1999-01-03 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/expr.c (do_expr_decode_tree): Add termination NULL to the OPER_NEG
......
1998-01-03 Jeff Garzik <jgarzik@pobox.com>
* src/number-match.c, src/plugin-manager.c, src/sheet.c:
Warning fixes.
1999-01-03 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/expr.c (do_expr_decode_tree): Add termination NULL to the OPER_NEG
......
1998-01-03 Jeff Garzik <jgarzik@pobox.com>
* src/number-match.c, src/plugin-manager.c, src/sheet.c:
Warning fixes.
1999-01-03 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/expr.c (do_expr_decode_tree): Add termination NULL to the OPER_NEG
......
1999-01-03 Jeff Garzik <jgarzik@Pobox.com>
* ms-excel.c, ms-formula.c:
A printf fix.
Warning fixes.
1998-12-28 Miguel de Icaza <miguel@nuclecu.unam.mx>
* boot.c (excel_init): New file, adds the excel booting
......
......@@ -265,7 +265,8 @@ biff_font_data_new (BIFF_QUERY * q)
/*
* dump (q->data, q->length) ;
*/
printf ("Insert fount '%s' size %5.2f\n", fd->fontname, fd->height);
printf ("Insert font '%s' size %d pts\n",
fd->fontname, fd->height * 20);
return fd;
}
......
......@@ -265,7 +265,8 @@ biff_font_data_new (BIFF_QUERY * q)
/*
* dump (q->data, q->length) ;
*/
printf ("Insert fount '%s' size %5.2f\n", fd->fontname, fd->height);
printf ("Insert font '%s' size %d pts\n",
fd->fontname, fd->height * 20);
return fd;
}
......
......@@ -420,7 +420,7 @@ void ms_excel_parse_formula (MS_EXCEL_SHEET *sheet, BIFF_QUERY *q,
{
int lp ;
printf ("Search %d records\n", FORMULA_OP_DATA_LEN) ;
printf ("Search %d records\n", (int)FORMULA_OP_DATA_LEN) ;
for (lp=0;lp<FORMULA_OP_DATA_LEN;lp++)
{
if (ptgbase == formula_op_data[lp].formula_ptg)
......
......@@ -420,7 +420,7 @@ void ms_excel_parse_formula (MS_EXCEL_SHEET *sheet, BIFF_QUERY *q,
{
int lp ;
printf ("Search %d records\n", FORMULA_OP_DATA_LEN) ;
printf ("Search %d records\n", (int)FORMULA_OP_DATA_LEN) ;
for (lp=0;lp<FORMULA_OP_DATA_LEN;lp++)
{
if (ptgbase == formula_op_data[lp].formula_ptg)
......
......@@ -22,6 +22,8 @@
#include "number-match.h"
#include "formats.h"
#include "dates.h"
#include "numbers.h"
#include "utils.h"
/*
* Takes a list of strings (optionally include an * at the beginning
......
......@@ -70,7 +70,7 @@ static void
remove_cb (GtkWidget *button, PluginManager *pm)
{
GList *selection = GTK_CLIST (pm->clist)->selection;
gint row = (gint) g_list_nth_data (selection, 0);
gint row = GPOINTER_TO_INT (g_list_nth_data (selection, 0));
PluginData *pd = gtk_clist_get_row_data (GTK_CLIST (pm->clist), row);
plugin_unload (pd);
......
......@@ -934,13 +934,13 @@ sheet_update_controls (Sheet *sheet)
workbook_feedback_set (
sheet->workbook,
WORKBOOK_FEEDBACK_BOLD,
(void *) bold_first);
GINT_TO_POINTER(bold_first));
if (italic_common)
workbook_feedback_set (
sheet->workbook,
WORKBOOK_FEEDBACK_ITALIC,
(void *) italic_first);
GINT_TO_POINTER(italic_first));
}
static void
......
Supports Markdown
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