Commit 7375da4f authored by Miguel de Icaza's avatar Miguel de Icaza Committed by Arturo Espinosa

Changed prototype of int_compare to eliminate a warning.

1999-07-09  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/analysis-tools.c: Changed prototype of int_compare to
	eliminate a warning.

	Removed unused variables.

	* src/cell.c: #inlcude gnumeric-util to eliminate warning.

	* src/fn-financial.c: Fixed all the help strings to get the
	SEELASO correctly done

	* src/style.c: Zoom factor 1.0 is a reminder to me, not a warning.
parent ed1b5b53
1999-07-09 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/analysis-tools.c: Changed prototype of int_compare to
eliminate a warning.
Removed unused variables.
* src/cell.c: #inlcude gnumeric-util to eliminate warning.
* src/fn-financial.c: Fixed all the help strings to get the
SEELASO correctly done
* src/style.c: Zoom factor 1.0 is a reminder to me, not a warning.
1999-07-09 Miguel de Icaza <miguel@gnu.org>
* src/sheet-view.c (sheet_view_construct): Reverted last plan. We
......
1999-07-09 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/analysis-tools.c: Changed prototype of int_compare to
eliminate a warning.
Removed unused variables.
* src/cell.c: #inlcude gnumeric-util to eliminate warning.
* src/fn-financial.c: Fixed all the help strings to get the
SEELASO correctly done
* src/style.c: Zoom factor 1.0 is a reminder to me, not a warning.
1999-07-09 Miguel de Icaza <miguel@gnu.org>
* src/sheet-view.c (sheet_view_construct): Reverted last plan. We
......
1999-07-09 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/analysis-tools.c: Changed prototype of int_compare to
eliminate a warning.
Removed unused variables.
* src/cell.c: #inlcude gnumeric-util to eliminate warning.
* src/fn-financial.c: Fixed all the help strings to get the
SEELASO correctly done
* src/style.c: Zoom factor 1.0 is a reminder to me, not a warning.
1999-07-09 Miguel de Icaza <miguel@gnu.org>
* src/sheet-view.c (sheet_view_construct): Reverted last plan. We
......
1999-07-09 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/analysis-tools.c: Changed prototype of int_compare to
eliminate a warning.
Removed unused variables.
* src/cell.c: #inlcude gnumeric-util to eliminate warning.
* src/fn-financial.c: Fixed all the help strings to get the
SEELASO correctly done
* src/style.c: Zoom factor 1.0 is a reminder to me, not a warning.
1999-07-09 Miguel de Icaza <miguel@gnu.org>
* src/sheet-view.c (sheet_view_construct): Reverted last plan. We
......
......@@ -199,6 +199,7 @@ static char *help_sln = {
"\tcost = cost of an asset when acquired (market value)"
"\tsalvage_value = amount you get when asset sold at the end of life"
"\tlife = anticipated life of an asset"
"\n"
"@SEEALSO=SYD")
};
......@@ -235,6 +236,7 @@ static char *help_syd = {
"\tsalvage_value = amount you get when asset sold at the end of life"
"\tlife = anticipated life of an asset"
"\tperiod = period for which we need the expense"
"\n"
"@SEEALSO=SLN")
};
......@@ -263,6 +265,7 @@ static char *help_dollarde = {
"\n"
"If fraction is non-integer it is truncated. "
"If fraction<=0 DOLLARDE returns #NUM! error. "
"\n"
"@SEEALSO=DOLLARFR")
};
......@@ -300,6 +303,7 @@ static char *help_dollarfr = {
"\n"
"If fraction is non-integer it is truncated. "
"If fraction<=0 DOLLARDE returns #NUM! error. "
"\n"
"@SEEALSO=DOLLARDE")
};
......@@ -334,6 +338,7 @@ static char *help_rate = {
N_("@FUNCTION=RATE\n"
"@SYNTAX=RATE(nper,pmt,pv[,fv,type,guess])\n"
"@DESCRIPTION=Calculates rate of an investment."
"\n"
"@SEEALSO=PV,FV")
};
......@@ -429,6 +434,7 @@ static char *help_pv = {
N_("@FUNCTION=PV\n"
"@SYNTAX=PV(rate,nper,pmt,fv,type)\n"
"@DESCRIPTION=Calculates the present value of an investment."
"\n"
"@SEEALSO=FV")
};
......@@ -460,6 +466,7 @@ static char *help_npv = {
N_("@FUNCTION=NPV\n"
"@SYNTAX=NPV(rate,v1,v2,...)\n"
"@DESCRIPTION=Calculates the net present value of an investment."
"\n"
"@SEEALSO=PV")
};
......@@ -504,6 +511,7 @@ static char *help_fv = {
N_("@FUNCTION=FV\n"
"@SYNTAX=FV(rate,nper,pmt,pv,type)\n"
"@DESCRIPTION=Calculates the future value of an investment."
"\n"
"@SEEALSO=PV,PMT,PPMT")
};
......@@ -533,6 +541,7 @@ static char *help_pmt = {
N_("@FUNCTION=PMT\n"
"@SYNTAX=PMT(rate,nper,pv,fv,type)\n"
"@DESCRIPTION=Calculates the present value of an investment."
"\n"
"@SEEALSO=PPMT,PV,FV")
};
......@@ -642,6 +651,7 @@ static char *help_nper = {
N_("@FUNCTION=NPER\n"
"@SYNTAX=NPER(rate,pmt,pv,fv,type)\n"
"@DESCRIPTION=Calculates number of periods of an investment."
"\n"
"@SEEALSO=PPMT,PV,FV")
};
......
......@@ -33,8 +33,11 @@ typedef struct {
/***** Some general routines ***********************************************/
static int
int_compare (const int *x, const int *y)
int_compare (const void *px, const void *py)
{
const int *x = px;
const int *y = py;
if (*x < *y)
return -1;
else if (*x == *y)
......@@ -1820,10 +1823,8 @@ int average_tool (Workbook *wb, Sheet *sheet, Range *range, int interval,
data_set_t data_set;
GSList *current;
char buf[256];
Cell *cell;
float_t *prev, sum;
int cols, rows, row, i, add_cursor, del_cursor, count;
int error;
int cols, rows, row, add_cursor, del_cursor, count;
/* TODO: Standard error output */
cols = range->end_col - range->start_col + 1;
......@@ -1895,9 +1896,7 @@ int ranking_tool (Workbook *wb, Sheet *sheet, Range *input_range,
data_set_t *data_sets;
GSList *current;
char buf[256];
Cell *cell;
int vars, cols, rows, col, row, i, n;
int error;
int vars, cols, rows, col, i, n;
if (dao->type == NewSheetOutput) {
dao->sheet = sheet_new(wb, "Ranks and Percentiles");
......
......@@ -14,6 +14,7 @@
#include "color.h"
#include "cursors.h"
#include "utils.h"
#include "gnumeric-util.h"
#include <ctype.h>
static int redraws_frozen = 0;
......
......@@ -199,6 +199,7 @@ static char *help_sln = {
"\tcost = cost of an asset when acquired (market value)"
"\tsalvage_value = amount you get when asset sold at the end of life"
"\tlife = anticipated life of an asset"
"\n"
"@SEEALSO=SYD")
};
......@@ -235,6 +236,7 @@ static char *help_syd = {
"\tsalvage_value = amount you get when asset sold at the end of life"
"\tlife = anticipated life of an asset"
"\tperiod = period for which we need the expense"
"\n"
"@SEEALSO=SLN")
};
......@@ -263,6 +265,7 @@ static char *help_dollarde = {
"\n"
"If fraction is non-integer it is truncated. "
"If fraction<=0 DOLLARDE returns #NUM! error. "
"\n"
"@SEEALSO=DOLLARFR")
};
......@@ -300,6 +303,7 @@ static char *help_dollarfr = {
"\n"
"If fraction is non-integer it is truncated. "
"If fraction<=0 DOLLARDE returns #NUM! error. "
"\n"
"@SEEALSO=DOLLARDE")
};
......@@ -334,6 +338,7 @@ static char *help_rate = {
N_("@FUNCTION=RATE\n"
"@SYNTAX=RATE(nper,pmt,pv[,fv,type,guess])\n"
"@DESCRIPTION=Calculates rate of an investment."
"\n"
"@SEEALSO=PV,FV")
};
......@@ -429,6 +434,7 @@ static char *help_pv = {
N_("@FUNCTION=PV\n"
"@SYNTAX=PV(rate,nper,pmt,fv,type)\n"
"@DESCRIPTION=Calculates the present value of an investment."
"\n"
"@SEEALSO=FV")
};
......@@ -460,6 +466,7 @@ static char *help_npv = {
N_("@FUNCTION=NPV\n"
"@SYNTAX=NPV(rate,v1,v2,...)\n"
"@DESCRIPTION=Calculates the net present value of an investment."
"\n"
"@SEEALSO=PV")
};
......@@ -504,6 +511,7 @@ static char *help_fv = {
N_("@FUNCTION=FV\n"
"@SYNTAX=FV(rate,nper,pmt,pv,type)\n"
"@DESCRIPTION=Calculates the future value of an investment."
"\n"
"@SEEALSO=PV,PMT,PPMT")
};
......@@ -533,6 +541,7 @@ static char *help_pmt = {
N_("@FUNCTION=PMT\n"
"@SYNTAX=PMT(rate,nper,pv,fv,type)\n"
"@DESCRIPTION=Calculates the present value of an investment."
"\n"
"@SEEALSO=PPMT,PV,FV")
};
......@@ -642,6 +651,7 @@ static char *help_nper = {
N_("@FUNCTION=NPER\n"
"@SYNTAX=NPER(rate,pmt,pv,fv,type)\n"
"@DESCRIPTION=Calculates number of periods of an investment."
"\n"
"@SEEALSO=PPMT,PV,FV")
};
......
......@@ -199,6 +199,7 @@ static char *help_sln = {
"\tcost = cost of an asset when acquired (market value)"
"\tsalvage_value = amount you get when asset sold at the end of life"
"\tlife = anticipated life of an asset"
"\n"
"@SEEALSO=SYD")
};
......@@ -235,6 +236,7 @@ static char *help_syd = {
"\tsalvage_value = amount you get when asset sold at the end of life"
"\tlife = anticipated life of an asset"
"\tperiod = period for which we need the expense"
"\n"
"@SEEALSO=SLN")
};
......@@ -263,6 +265,7 @@ static char *help_dollarde = {
"\n"
"If fraction is non-integer it is truncated. "
"If fraction<=0 DOLLARDE returns #NUM! error. "
"\n"
"@SEEALSO=DOLLARFR")
};
......@@ -300,6 +303,7 @@ static char *help_dollarfr = {
"\n"
"If fraction is non-integer it is truncated. "
"If fraction<=0 DOLLARDE returns #NUM! error. "
"\n"
"@SEEALSO=DOLLARDE")
};
......@@ -334,6 +338,7 @@ static char *help_rate = {
N_("@FUNCTION=RATE\n"
"@SYNTAX=RATE(nper,pmt,pv[,fv,type,guess])\n"
"@DESCRIPTION=Calculates rate of an investment."
"\n"
"@SEEALSO=PV,FV")
};
......@@ -429,6 +434,7 @@ static char *help_pv = {
N_("@FUNCTION=PV\n"
"@SYNTAX=PV(rate,nper,pmt,fv,type)\n"
"@DESCRIPTION=Calculates the present value of an investment."
"\n"
"@SEEALSO=FV")
};
......@@ -460,6 +466,7 @@ static char *help_npv = {
N_("@FUNCTION=NPV\n"
"@SYNTAX=NPV(rate,v1,v2,...)\n"
"@DESCRIPTION=Calculates the net present value of an investment."
"\n"
"@SEEALSO=PV")
};
......@@ -504,6 +511,7 @@ static char *help_fv = {
N_("@FUNCTION=FV\n"
"@SYNTAX=FV(rate,nper,pmt,pv,type)\n"
"@DESCRIPTION=Calculates the future value of an investment."
"\n"
"@SEEALSO=PV,PMT,PPMT")
};
......@@ -533,6 +541,7 @@ static char *help_pmt = {
N_("@FUNCTION=PMT\n"
"@SYNTAX=PMT(rate,nper,pv,fv,type)\n"
"@DESCRIPTION=Calculates the present value of an investment."
"\n"
"@SEEALSO=PPMT,PV,FV")
};
......@@ -642,6 +651,7 @@ static char *help_nper = {
N_("@FUNCTION=NPER\n"
"@SYNTAX=NPER(rate,pmt,pv,fv,type)\n"
"@DESCRIPTION=Calculates number of periods of an investment."
"\n"
"@SEEALSO=PPMT,PV,FV")
};
......
......@@ -395,7 +395,7 @@ style_new (void)
static int warning_shown;
if (!warning_shown){
g_warning ("Font style created at zoom factor 1.0");
g_message ("Font style created at zoom factor 1.0");
warning_shown = TRUE;
}
}
......
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