Commit bfa95c6a authored by Morten Welinder's avatar Morten Welinder Committed by Morten Welinder

Constify.

2002-02-20  Morten Welinder  <terra@diku.dk>

        * src/func.c (fn_def_new, function_add_args, function_add_nodes):
        Constify.


2002-02-20  Morten Welinder  <terra@diku.dk>

        * fn-*.c: Constify all help texts.
parent 3743f057
2002-02-20 Morten Welinder <terra@diku.dk>
* src/func.c (fn_def_new, function_add_args, function_add_nodes):
Constify.
2002-02-20 Morten Welinder <terra@diku.dk>
* src/parser.y (yyerror): Constify.
......
......@@ -53,6 +53,7 @@ Morten:
* Improve random number generation using /dev/urandom device.
* Fix Oleo plugin's isdigit usage.
* Support for --with-long-double
* Constify C strings.
--------------------------------------------------------------------------
Gnumeric 1.0.3
......
2002-02-20 Morten Welinder <terra@diku.dk>
* src/func.c (fn_def_new, function_add_args, function_add_nodes):
Constify.
2002-02-20 Morten Welinder <terra@diku.dk>
* src/parser.y (yyerror): Constify.
......
2002-02-20 Morten Welinder <terra@diku.dk>
* src/func.c (fn_def_new, function_add_args, function_add_nodes):
Constify.
2002-02-20 Morten Welinder <terra@diku.dk>
* src/parser.y (yyerror): Constify.
......
......@@ -500,7 +500,7 @@ filter_row:
/***************************************************************************/
static char *help_daverage = {
static const char *help_daverage = {
N_("@FUNCTION=DAVERAGE\n"
"@SYNTAX=DAVERAGE(database,field,criteria)\n"
......@@ -570,7 +570,7 @@ gnumeric_daverage (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_dcount = {
static const char *help_dcount = {
N_("@FUNCTION=DCOUNT\n"
"@SYNTAX=DCOUNT(database,field,criteria)\n"
......@@ -632,7 +632,7 @@ gnumeric_dcount (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_dcounta = {
static const char *help_dcounta = {
N_("@FUNCTION=DCOUNTA\n"
"@SYNTAX=DCOUNTA(database,field,criteria)\n"
......@@ -691,7 +691,7 @@ gnumeric_dcounta (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_dget = {
static const char *help_dget = {
N_("@FUNCTION=DGET\n"
"@SYNTAX=DGET(database,field,criteria)\n"
......@@ -760,7 +760,7 @@ gnumeric_dget (FunctionEvalInfo *ei, Value **argv)
return value_duplicate (cell->value);
}
static char *help_dmax = {
static const char *help_dmax = {
N_("@FUNCTION=DMAX\n"
"@SYNTAX=DMAX(database,field,criteria)\n"
......@@ -832,7 +832,7 @@ gnumeric_dmax (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_dmin = {
static const char *help_dmin = {
N_("@FUNCTION=DMIN\n"
"@SYNTAX=DMIN(database,field,criteria)\n"
......@@ -903,7 +903,7 @@ gnumeric_dmin (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_dproduct = {
static const char *help_dproduct = {
N_("@FUNCTION=DPRODUCT\n"
"@SYNTAX=DPRODUCT(database,field,criteria)\n"
......@@ -971,7 +971,7 @@ gnumeric_dproduct (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_dstdev = {
static const char *help_dstdev = {
N_("@FUNCTION=DSTDEV\n"
"@SYNTAX=DSTDEV(database,field,criteria)\n"
......@@ -1038,7 +1038,7 @@ gnumeric_dstdev (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_dstdevp = {
static const char *help_dstdevp = {
N_("@FUNCTION=DSTDEVP\n"
"@SYNTAX=DSTDEVP(database,field,criteria)\n"
......@@ -1107,7 +1107,7 @@ gnumeric_dstdevp (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_dsum = {
static const char *help_dsum = {
N_("@FUNCTION=DSUM\n"
"@SYNTAX=DSUM(database,field,criteria)\n"
......@@ -1175,7 +1175,7 @@ gnumeric_dsum (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_dvar = {
static const char *help_dvar = {
N_("@FUNCTION=DVAR\n"
"@SYNTAX=DVAR(database,field,criteria)\n"
......@@ -1244,7 +1244,7 @@ gnumeric_dvar (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_dvarp = {
static const char *help_dvarp = {
N_("@FUNCTION=DVARP\n"
"@SYNTAX=DVARP(database,field,criteria)\n"
......@@ -1314,7 +1314,7 @@ gnumeric_dvarp (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_getpivotdata = {
static const char *help_getpivotdata = {
N_("@FUNCTION=GETPIVOTDATA\n"
"@SYNTAX=GETPIVOTDATA(pivot_table,field_name)\n"
......
......@@ -23,7 +23,7 @@
/***************************************************************************/
static char *help_date = {
static const char *help_date = {
N_("@FUNCTION=DATE\n"
"@SYNTAX=DATE (year,month,day)\n"
......@@ -93,7 +93,7 @@ gnumeric_date (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_unix2date = {
static const char *help_unix2date = {
N_("@FUNCTION=UNIX2DATE\n"
"@SYNTAX=UNIX2DATE(unixtime)\n"
......@@ -123,7 +123,7 @@ gnumeric_unix2date (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_date2unix = {
static const char *help_date2unix = {
N_("@FUNCTION=DATE2UNIX\n"
"@SYNTAX=DATE2UNIX(serial)\n"
......@@ -154,7 +154,7 @@ gnumeric_date2unix (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_datevalue = {
static const char *help_datevalue = {
N_("@FUNCTION=DATEVALUE\n"
"@SYNTAX=DATEVALUE(date_str)\n"
......@@ -179,7 +179,7 @@ gnumeric_datevalue (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_datedif = {
static const char *help_datedif = {
N_("@FUNCTION=DATEDIF\n"
"@SYNTAX=DATEDIF(date1,date2,interval)\n"
......@@ -346,7 +346,7 @@ gnumeric_datedif (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_edate = {
static const char *help_edate = {
N_("@FUNCTION=EDATE\n"
"@SYNTAX=EDATE(date,months)\n"
......@@ -400,7 +400,7 @@ gnumeric_edate (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_today = {
static const char *help_today = {
N_("@FUNCTION=TODAY\n"
"@SYNTAX=TODAY()\n"
......@@ -423,7 +423,7 @@ gnumeric_today (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_now = {
static const char *help_now = {
N_("@FUNCTION=NOW\n"
"@SYNTAX=NOW ()\n"
......@@ -454,7 +454,7 @@ gnumeric_now (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_time = {
static const char *help_time = {
N_("@FUNCTION=TIME\n"
"@SYNTAX=TIME (hours,minutes,seconds)\n"
......@@ -483,7 +483,7 @@ gnumeric_time (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_timevalue = {
static const char *help_timevalue = {
N_("@FUNCTION=TIMEVALUE\n"
"@SYNTAX=TIMEVALUE (timetext)\n"
......@@ -512,7 +512,7 @@ gnumeric_timevalue (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_hour = {
static const char *help_hour = {
N_("@FUNCTION=HOUR\n"
"@SYNTAX=HOUR (serial_number)\n"
......@@ -541,7 +541,7 @@ gnumeric_hour (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_minute = {
static const char *help_minute = {
N_("@FUNCTION=MINUTE\n"
"@SYNTAX=MINUTE (serial_number)\n"
......@@ -571,7 +571,7 @@ gnumeric_minute (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_second = {
static const char *help_second = {
N_("@FUNCTION=SECOND\n"
"@SYNTAX=SECOND (serial_number)\n"
......@@ -601,7 +601,7 @@ gnumeric_second (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_year = {
static const char *help_year = {
N_("@FUNCTION=YEAR\n"
"@SYNTAX=YEAR (serial_number)\n"
......@@ -638,7 +638,7 @@ gnumeric_year (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_month = {
static const char *help_month = {
N_("@FUNCTION=MONTH\n"
"@SYNTAX=MONTH (serial_number)\n"
......@@ -675,7 +675,7 @@ gnumeric_month (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_day = {
static const char *help_day = {
N_("@FUNCTION=DAY\n"
"@SYNTAX=DAY (serial_number)\n"
......@@ -712,7 +712,7 @@ gnumeric_day (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_weekday = {
static const char *help_weekday = {
N_("@FUNCTION=WEEKDAY\n"
"@SYNTAX=WEEKDAY (serial_number[, method])\n"
......@@ -765,7 +765,7 @@ gnumeric_weekday (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_days360 = {
static const char *help_days360 = {
N_("@FUNCTION=DAYS360 \n"
"@SYNTAX=DAYS360 (date1,date2,method)\n"
......@@ -868,7 +868,7 @@ gnumeric_days360 (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_eomonth = {
static const char *help_eomonth = {
N_("@FUNCTION=EOMONTH\n"
"@SYNTAX=EOMONTH (start_date,months)\n"
......@@ -918,7 +918,7 @@ gnumeric_eomonth (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_workday = {
static const char *help_workday = {
N_("@FUNCTION=WORKDAY\n"
"@SYNTAX=WORKDAY (start_date,days,holidays)\n"
......@@ -989,7 +989,7 @@ gnumeric_workday (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char * help_networkdays = {
static const char *help_networkdays = {
N_("@FUNCTION=NETWORKDAYS\n"
"@SYNTAX=NETWORKDAYS (start_date,end_date,holidays)\n"
......@@ -1112,7 +1112,7 @@ gnumeric_networkdays (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_isoweeknum = {
static const char *help_isoweeknum = {
N_("@FUNCTION=ISOWEEKNUM\n"
"@SYNTAX=ISOWEEKNUM (date)\n"
......@@ -1156,7 +1156,7 @@ gnumeric_isoweeknum (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_weeknum = {
static const char *help_weeknum = {
N_("@FUNCTION=WEEKNUM\n"
"@SYNTAX=WEEKNUM (date, method)\n"
......
......@@ -87,7 +87,7 @@ val_to_base (FunctionEvalInfo *ei, Value **argv, int num_argv,
/***************************************************************************/
static char *help_bin2dec = {
static const char *help_bin2dec = {
N_("@FUNCTION=BIN2DEC\n"
"@SYNTAX=BIN2DEC(x)\n"
......@@ -110,7 +110,7 @@ gnumeric_bin2dec (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_bin2oct = {
static const char *help_bin2oct = {
N_("@FUNCTION=BIN2OCT\n"
"@SYNTAX=BIN2OCT(number[,places])\n"
......@@ -136,7 +136,7 @@ gnumeric_bin2oct (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_bin2hex = {
static const char *help_bin2hex = {
N_("@FUNCTION=BIN2HEX\n"
"@SYNTAX=BIN2HEX(number[,places])\n"
......@@ -162,7 +162,7 @@ gnumeric_bin2hex (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_dec2bin = {
static const char *help_dec2bin = {
N_("@FUNCTION=DEC2BIN\n"
"@SYNTAX=DEC2BIN(number[,places])\n"
......@@ -188,7 +188,7 @@ gnumeric_dec2bin (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_dec2oct = {
static const char *help_dec2oct = {
N_("@FUNCTION=DEC2OCT\n"
"@SYNTAX=DEC2OCT(number[,places])\n"
......@@ -214,7 +214,7 @@ gnumeric_dec2oct (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_dec2hex = {
static const char *help_dec2hex = {
N_("@FUNCTION=DEC2HEX\n"
"@SYNTAX=DEC2HEX(number[,places])\n"
......@@ -240,7 +240,7 @@ gnumeric_dec2hex (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_oct2dec = {
static const char *help_oct2dec = {
N_("@FUNCTION=OCT2DEC\n"
"@SYNTAX=OCT2DEC(x)\n"
......@@ -263,7 +263,7 @@ gnumeric_oct2dec (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_oct2bin = {
static const char *help_oct2bin = {
N_("@FUNCTION=OCT2BIN\n"
"@SYNTAX=OCT2BIN(number[,places])\n"
......@@ -289,7 +289,7 @@ gnumeric_oct2bin (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_oct2hex = {
static const char *help_oct2hex = {
N_("@FUNCTION=OCT2HEX\n"
"@SYNTAX=OCT2HEX(number[,places])\n"
......@@ -315,7 +315,7 @@ gnumeric_oct2hex (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_hex2bin = {
static const char *help_hex2bin = {
N_("@FUNCTION=HEX2BIN\n"
"@SYNTAX=HEX2BIN(number[,places])\n"
......@@ -341,7 +341,7 @@ gnumeric_hex2bin (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_hex2oct = {
static const char *help_hex2oct = {
N_("@FUNCTION=HEX2OCT\n"
"@SYNTAX=HEX2OCT(number[,places])\n"
......@@ -367,7 +367,7 @@ gnumeric_hex2oct (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_hex2dec = {
static const char *help_hex2dec = {
N_("@FUNCTION=HEX2DEC\n"
"@SYNTAX=HEX2DEC(x)\n"
......@@ -390,7 +390,7 @@ gnumeric_hex2dec (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_besseli = {
static const char *help_besseli = {
N_("@FUNCTION=BESSELI\n"
"@SYNTAX=BESSELI(x,y)\n"
......@@ -428,7 +428,7 @@ gnumeric_besseli (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_besselk = {
static const char *help_besselk = {
N_("@FUNCTION=BESSELK\n"
"@SYNTAX=BESSELK(x,y)\n"
......@@ -465,7 +465,7 @@ gnumeric_besselk (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_besselj = {
static const char *help_besselj = {
N_("@FUNCTION=BESSELJ\n"
"@SYNTAX=BESSELJ(x,y)\n"
......@@ -501,7 +501,7 @@ gnumeric_besselj (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_bessely = {
static const char *help_bessely = {
N_("@FUNCTION=BESSELY\n"
"@SYNTAX=BESSELY(x,y)\n"
......@@ -573,7 +573,7 @@ value_new_complex (const complex_t *c, char imunit)
/***************************************************************************/
static char *help_complex = {
static const char *help_complex = {
N_("@FUNCTION=COMPLEX\n"
"@SYNTAX=COMPLEX(real,im[,suffix])\n"
......@@ -612,7 +612,7 @@ gnumeric_complex (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_imaginary = {
static const char *help_imaginary = {
N_("@FUNCTION=IMAGINARY\n"
"@SYNTAX=IMAGINARY(inumber)\n"
"@DESCRIPTION="
......@@ -643,7 +643,7 @@ gnumeric_imaginary (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_imreal = {
static const char *help_imreal = {
N_("@FUNCTION=IMREAL\n"
"@SYNTAX=IMREAL(inumber)\n"
"@DESCRIPTION="
......@@ -674,7 +674,7 @@ gnumeric_imreal (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_imabs = {
static const char *help_imabs = {
N_("@FUNCTION=IMABS\n"
"@SYNTAX=IMABS(inumber)\n"
"@DESCRIPTION="
......@@ -705,7 +705,7 @@ gnumeric_imabs (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_imconjugate = {
static const char *help_imconjugate = {
N_("@FUNCTION=IMCONJUGATE\n"
"@SYNTAX=IMCONJUGATE(inumber)\n"
"@DESCRIPTION="
......@@ -736,7 +736,7 @@ gnumeric_imconjugate (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_imcos = {
static const char *help_imcos = {
N_("@FUNCTION=IMCOS\n"
"@SYNTAX=IMCOS(inumber)\n"
"@DESCRIPTION="
......@@ -764,7 +764,7 @@ gnumeric_imcos (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_imtan = {
static const char *help_imtan = {
N_("@FUNCTION=IMTAN\n"
"@SYNTAX=IMTAN(inumber)\n"
"@DESCRIPTION="
......@@ -791,7 +791,7 @@ gnumeric_imtan (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_imexp = {
static const char *help_imexp = {
N_("@FUNCTION=IMEXP\n"
"@SYNTAX=IMEXP(inumber)\n"
"@DESCRIPTION="
......@@ -819,7 +819,7 @@ gnumeric_imexp (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_imargument = {
static const char *help_imargument = {
N_("@FUNCTION=IMARGUMENT\n"
"@SYNTAX=IMARGUMENT(inumber)\n"
"@DESCRIPTION="
......@@ -846,7 +846,7 @@ gnumeric_imargument (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_imln = {
static const char *help_imln = {
N_("@FUNCTION=IMLN\n"
"@SYNTAX=IMLN(inumber)\n"
"@DESCRIPTION="
......@@ -878,7 +878,7 @@ gnumeric_imln (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_imlog2 = {
static const char *help_imlog2 = {
N_("@FUNCTION=IMLOG2\n"
"@SYNTAX=IMLOG2(inumber)\n"
"@DESCRIPTION="
......@@ -908,7 +908,7 @@ gnumeric_imlog2 (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_imlog10 = {
static const char *help_imlog10 = {
N_("@FUNCTION=IMLOG10\n"
"@SYNTAX=IMLOG10(inumber)\n"
"@DESCRIPTION="
......@@ -938,7 +938,7 @@ gnumeric_imlog10 (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_impower = {
static const char *help_impower = {
N_("@FUNCTION=IMPOWER\n"
"@SYNTAX=IMPOWER(inumber,number)\n"
"@DESCRIPTION="
......@@ -974,7 +974,7 @@ gnumeric_impower (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_imdiv = {
static const char *help_imdiv = {
N_("@FUNCTION=IMDIV\n"
"@SYNTAX=IMDIV(inumber,inumber)\n"
"@DESCRIPTION="
......@@ -1008,7 +1008,7 @@ gnumeric_imdiv (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_imsin = {
static const char *help_imsin = {
N_("@FUNCTION=IMSIN\n"
"@SYNTAX=IMSIN(inumber)\n"
"@DESCRIPTION="
......@@ -1036,7 +1036,7 @@ gnumeric_imsin (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_imsqrt = {
static const char *help_imsqrt = {
N_("@FUNCTION=IMSQRT\n"
"@SYNTAX=IMSQRT(inumber)\n"
"@DESCRIPTION="
......@@ -1064,7 +1064,7 @@ gnumeric_imsqrt (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_imsub = {
static const char *help_imsub = {
N_("@FUNCTION=IMSUB\n"
"@SYNTAX=IMSUB(inumber,inumber)\n"
"@DESCRIPTION="
......@@ -1095,7 +1095,7 @@ gnumeric_imsub (FunctionEvalInfo *ei, Value **argv)
/***************************************************************************/
static char *help_improduct = {
static const char *help_improduct = {
N_("@FUNCTION=IMPRODUCT\n"
"@SYNTAX=IMPRODUCT(inumber1[,inumber2,...])\n"
"@DESCRIPTION="
......@@ -1165,7 +1165,7 @@ gnumeric_improduct (FunctionEvalInfo *ei, ExprList *expr_node_list)
/***************************************************************************/
static char *help_imsum = {
static const char *help_imsum = {
N_("@FUNCTION=IMSUM\n"
"@SYNTAX=IMSUM(inumber,inumber)\n"
"@DESCRIPTION="
......@@ -1199,7 +1199,7 @@ gnumeric_imsum (FunctionEvalInfo *ei, ExprList *expr_node_list)
/***************************************************************************/