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

Some 'const' position consistency

2006-07-25  Jody Goldberg <jody@gnome.org>

	* src/cell.c (cell_relocate) : merge into clipboard.
	* src/ranges.c (range_parse) : renamed from parse_range and the
	  original unused range_parse was deleted.

	* src/sheet.c (sheet_range_trim) : renamed from range_trim.  It makes
	  more sense here.
	(sheet_range_has_heading) : renamed from range_has_header.
parent ffb17c52
......@@ -94,8 +94,6 @@ Architecture Changes
1.2.1) Use GsfDocMetaData {Jody}
1.2.1.1) sax-in
1.2.1.2) sax-out (DONE)
1.2.1.3) dom-in
1.2.1.4) dom-out (DONE)
1.2.2) doc meta data dialog {Trelane and etrunko}
1.3) Insert hyperlink dialog
1.3.1) Integration with evo address book
......
2006-07-25 Jody Goldberg <jody@gnome.org>
* src/cell.c (cell_relocate) : merge into clipboard.
* src/ranges.c (range_parse) : renamed from parse_range and the
original unused range_parse was deleted.
* src/sheet.c (sheet_range_trim) : renamed from range_trim. It makes
more sense here.
(sheet_range_has_heading) : renamed from range_has_header.
2006-07-19 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* src/commands.c (cmd_paste_copy_impl): don't forget comments
......
......@@ -34,6 +34,7 @@ Jody:
* Remove ColRowInfo::pos to shrink col/row by an int
* Update schema a bit.
* Update GLPK to version 4.9.
* Make ODF merge cell import more flexible. [#347263]
Morten:
* Moved font metrics to goffice.
......
......@@ -68,7 +68,7 @@ static gnm_float opt_crit_val_chooser (gnm_float s,gnm_float xc,gnm_float xp,gnm
static OptionSide
option_side (const char *s)
option_side (char const *s)
{
if (s[0] == 'p' || s[0] == 'P')
return OS_Put;
......@@ -79,7 +79,7 @@ option_side (const char *s)
}
static OptionType
option_type (const char *s)
option_type (char const *s)
{
if (s[0] == 'a' || s[0] == 'A')
return OT_Amer;
......@@ -1676,7 +1676,7 @@ opt_crit_val_chooser (gnm_float s,gnm_float xc,gnm_float xp,gnm_float t,
static GnmValue *
opt_on_options (FunctionEvalInfo *ei, GnmValue const * const *argv)
{
const char *type_flag = value_peek_string (argv[0]);
char const *type_flag = value_peek_string (argv[0]);
gnm_float s = value_get_as_float (argv[1]);
gnm_float x1 = value_get_as_float (argv[2]);
gnm_float x2 = value_get_as_float (argv[3]);
......
......@@ -326,7 +326,7 @@ ms_escher_read_BSE (MSEscherState *state, MSEscherHeader *h)
guint8 const is_texture = GSF_LE_GET_GUINT8 (data + 32);
guint8 const name_len = GSF_LE_GET_GUINT8 (data + 33);
guint8 checksum[16]; /* RSA Data Security, Inc. MD4 Message-Digest Algorithm */
const char *name = "unknown";
char const *name = "unknown";
int i;
for (i = 16; i-- > 0;)
checksum[i] = GSF_LE_GET_GUINT8 (data + 2 + i);
......
......@@ -106,7 +106,7 @@ typedef struct {
typedef struct _BlipType BlipType;
struct _BlipType {
const char *type_name;
char const *type_name;
guint8 type;
guint8 blip_tag[2];
void (*handler) (ExcelWriteState *ewb,
......@@ -3783,7 +3783,7 @@ blipinf_new (SheetObjectImage *soi)
{
BlipInf *blip;
GByteArray *bytes;
const char *blip_type;
char const *blip_type;
blip = g_new0 (BlipInf, 1);
blip->uncomp_len = -1;
......@@ -5079,7 +5079,7 @@ static BlipType bliptypes[] =
};
static BlipType *
get_bliptype (const char *type)
get_bliptype (char const *type)
{
int n = sizeof bliptypes / sizeof bliptypes[0];
int i;
......
......@@ -489,9 +489,8 @@ attr_range (GsfXMLIn *xin, xmlChar const **attrs,
if (!gsf_xml_in_namecmp (xin, attrs[0], ns_id, target))
return FALSE;
if (!parse_range (attrs[1], res))
xlsx_warning (xin,
_("Invalid range '%s' for attribute %s"),
if (!range_parse (res, attrs[1]))
xlsx_warning (xin, _("Invalid range '%s' for attribute %s"),
attrs[1], target);
return TRUE;
}
......
......@@ -62,7 +62,7 @@ value_get_as_complex (GnmValue const *val, complex_t *res, char *imunit)
}
static GnmValue *
value_new_complex (const complex_t *c, char imunit)
value_new_complex (complex_t const *c, char imunit)
{
if (complex_real_p (c))
return value_new_float (c->re);
......@@ -1541,7 +1541,7 @@ callback_function_imoper (GnmEvalPos const *ep, GnmValue const *value, void *clo
}
static GnmValue *
gnumeric_improduct (FunctionEvalInfo *ei, int argc, const GnmExprConstPtr *argv)
gnumeric_improduct (FunctionEvalInfo *ei, int argc, GnmExprConstPtr const *argv)
{
GnmValue *v;
eng_imoper_t p;
......@@ -1582,7 +1582,7 @@ static GnmFuncHelp const help_imsum[] = {
};
static GnmValue *
gnumeric_imsum (FunctionEvalInfo *ei, int argc, const GnmExprConstPtr *argv)
gnumeric_imsum (FunctionEvalInfo *ei, int argc, GnmExprConstPtr const *argv)
{
GnmValue *v;
eng_imoper_t p;
......
......@@ -71,13 +71,13 @@
***********************************************************************/
static inline void
gsl_complex_mul_imag (const complex_t *a, gnm_float y, complex_t *res)
gsl_complex_mul_imag (complex_t const *a, gnm_float y, complex_t *res)
{ /* z=a*iy */
complex_init (res, -y * GSL_IMAG (a), y * GSL_REAL (a));
}
void
gsl_complex_inverse (const complex_t *a, complex_t *res)
gsl_complex_inverse (complex_t const *a, complex_t *res)
{ /* z=1/a */
gnm_float s = 1.0 / complex_mod (a);
......@@ -85,7 +85,7 @@ gsl_complex_inverse (const complex_t *a, complex_t *res)
}
void
gsl_complex_negative (const complex_t *a, complex_t *res)
gsl_complex_negative (complex_t const *a, complex_t *res)
{ /* z=1/a */
complex_init (res, -GSL_REAL (a), -GSL_IMAG (a));
}
......@@ -109,7 +109,7 @@ gsl_complex_arcsin_real (gnm_float a, complex_t *res)
}
void
gsl_complex_arcsin (const complex_t *a, complex_t *res)
gsl_complex_arcsin (complex_t const *a, complex_t *res)
{ /* z = arcsin(a) */
gnm_float R = GSL_REAL (a), I = GSL_IMAG (a);
......@@ -178,7 +178,7 @@ gsl_complex_arccos_real (gnm_float a, complex_t *res)
}
void
gsl_complex_arccos (const complex_t *a, complex_t *res)
gsl_complex_arccos (complex_t const *a, complex_t *res)
{ /* z = arccos(a) */
gnm_float R = GSL_REAL (a), I = GSL_IMAG (a);
......@@ -234,7 +234,7 @@ gsl_complex_arccos (const complex_t *a, complex_t *res)
}
void
gsl_complex_arctan (const complex_t *a, complex_t *res)
gsl_complex_arctan (complex_t const *a, complex_t *res)
{ /* z = arctan(a) */
gnm_float R = GSL_REAL (a), I = GSL_IMAG (a);
......@@ -278,21 +278,21 @@ gsl_complex_arctan (const complex_t *a, complex_t *res)
}
void
gsl_complex_arcsec (const complex_t *a, complex_t *res)
gsl_complex_arcsec (complex_t const *a, complex_t *res)
{ /* z = arcsec(a) */
gsl_complex_inverse (a, res);
gsl_complex_arccos (res, res);
}
void
gsl_complex_arccsc (const complex_t *a, complex_t *res)
gsl_complex_arccsc (complex_t const *a, complex_t *res)
{ /* z = arccsc(a) */
gsl_complex_inverse (a, res);
gsl_complex_arcsin (res, res);
}
void
gsl_complex_arccot (const complex_t *a, complex_t *res)
gsl_complex_arccot (complex_t const *a, complex_t *res)
{ /* z = arccot(a) */
if (GSL_REAL (a) == 0.0 && GSL_IMAG (a) == 0.0) {
complex_init (res, M_PI_2gnum, 0);
......@@ -307,7 +307,7 @@ gsl_complex_arccot (const complex_t *a, complex_t *res)
**********************************************************************/
void
gsl_complex_sinh (const complex_t *a, complex_t *res)
gsl_complex_sinh (complex_t const *a, complex_t *res)
{ /* z = sinh(a) */
gnm_float R = GSL_REAL (a), I = GSL_IMAG (a);
......@@ -315,7 +315,7 @@ gsl_complex_sinh (const complex_t *a, complex_t *res)
}
void
gsl_complex_cosh (const complex_t *a, complex_t *res)
gsl_complex_cosh (complex_t const *a, complex_t *res)
{ /* z = cosh(a) */
gnm_float R = GSL_REAL (a), I = GSL_IMAG (a);
......@@ -323,7 +323,7 @@ gsl_complex_cosh (const complex_t *a, complex_t *res)
}
void
gsl_complex_tanh (const complex_t *a, complex_t *res)
gsl_complex_tanh (complex_t const *a, complex_t *res)
{ /* z = tanh(a) */
gnm_float R = GSL_REAL (a), I = GSL_IMAG (a);
......@@ -346,21 +346,21 @@ gsl_complex_tanh (const complex_t *a, complex_t *res)
}
void
gsl_complex_sech (const complex_t *a, complex_t *res)
gsl_complex_sech (complex_t const *a, complex_t *res)
{ /* z = sech(a) */
gsl_complex_cosh (a, res);
gsl_complex_inverse (res, res);
}
void
gsl_complex_csch (const complex_t *a, complex_t *res)
gsl_complex_csch (complex_t const *a, complex_t *res)
{ /* z = csch(a) */
gsl_complex_sinh (a, res);
gsl_complex_inverse (res, res);
}
void
gsl_complex_coth (const complex_t *a, complex_t *res)
gsl_complex_coth (complex_t const *a, complex_t *res)
{ /* z = coth(a) */
gsl_complex_tanh (a, res);
gsl_complex_inverse (res, res);
......@@ -371,7 +371,7 @@ gsl_complex_coth (const complex_t *a, complex_t *res)
**********************************************************************/
void
gsl_complex_arcsinh (const complex_t *a, complex_t *res)
gsl_complex_arcsinh (complex_t const *a, complex_t *res)
{ /* z = arcsinh(a) */
gsl_complex_mul_imag (a, 1.0, res);
gsl_complex_arcsin (res, res);
......@@ -379,7 +379,7 @@ gsl_complex_arcsinh (const complex_t *a, complex_t *res)
}
void
gsl_complex_arccosh (const complex_t *a, complex_t *res)
gsl_complex_arccosh (complex_t const *a, complex_t *res)
{ /* z = arccosh(a) */
gsl_complex_arccos (a, res);
gsl_complex_mul_imag (res, GSL_IMAG (res) > 0 ? -1.0 : 1.0, res);
......@@ -397,7 +397,7 @@ gsl_complex_arctanh_real (gnm_float a, complex_t *res)
}
void
gsl_complex_arctanh (const complex_t *a, complex_t *res)
gsl_complex_arctanh (complex_t const *a, complex_t *res)
{ /* z = arctanh(a) */
if (GSL_IMAG (a) == 0.0) {
gsl_complex_arctanh_real (GSL_REAL (a), res);
......@@ -409,21 +409,21 @@ gsl_complex_arctanh (const complex_t *a, complex_t *res)
}
void
gsl_complex_arcsech (const complex_t *a, complex_t *res)
gsl_complex_arcsech (complex_t const *a, complex_t *res)
{ /* z = arcsech(a); */
gsl_complex_inverse (a, res);
gsl_complex_arccosh (res, res);
}
void
gsl_complex_arccsch (const complex_t *a, complex_t *res)
gsl_complex_arccsch (complex_t const *a, complex_t *res)
{ /* z = arccsch(a); */
gsl_complex_inverse (a, res);
gsl_complex_arcsinh (res, res);
}
void
gsl_complex_arccoth (const complex_t *a, complex_t *res)
gsl_complex_arccoth (complex_t const *a, complex_t *res)
{ /* z = arccoth(a); */
gsl_complex_inverse (a, res);
gsl_complex_arctanh (res, res);
......
#ifndef __GSL_COMPLEX_H__
#define __GSL_COMPLEX_H__
void gsl_complex_inverse (const complex_t *a, complex_t *res);
void gsl_complex_negative (const complex_t *a, complex_t *res);
void gsl_complex_arcsin (const complex_t *a, complex_t *res);
void gsl_complex_arccos (const complex_t *a, complex_t *res);
void gsl_complex_arctan (const complex_t *a, complex_t *res);
void gsl_complex_arcsec (const complex_t *a, complex_t *res);
void gsl_complex_arccsc (const complex_t *a, complex_t *res);
void gsl_complex_arccot (const complex_t *a, complex_t *res);
void gsl_complex_sinh (const complex_t *a, complex_t *res);
void gsl_complex_cosh (const complex_t *a, complex_t *res);
void gsl_complex_tanh (const complex_t *a, complex_t *res);
void gsl_complex_sech (const complex_t *a, complex_t *res);
void gsl_complex_csch (const complex_t *a, complex_t *res);
void gsl_complex_coth (const complex_t *a, complex_t *res);
void gsl_complex_arcsinh (const complex_t *a, complex_t *res);
void gsl_complex_arccosh (const complex_t *a, complex_t *res);
void gsl_complex_arctanh (const complex_t *a, complex_t *res);
void gsl_complex_arcsech (const complex_t *a, complex_t *res);
void gsl_complex_arccsch (const complex_t *a, complex_t *res);
void gsl_complex_arccoth (const complex_t *a, complex_t *res);
void gsl_complex_inverse (complex_t const *a, complex_t *res);
void gsl_complex_negative (complex_t const *a, complex_t *res);
void gsl_complex_arcsin (complex_t const *a, complex_t *res);
void gsl_complex_arccos (complex_t const *a, complex_t *res);
void gsl_complex_arctan (complex_t const *a, complex_t *res);
void gsl_complex_arcsec (complex_t const *a, complex_t *res);
void gsl_complex_arccsc (complex_t const *a, complex_t *res);
void gsl_complex_arccot (complex_t const *a, complex_t *res);
void gsl_complex_sinh (complex_t const *a, complex_t *res);
void gsl_complex_cosh (complex_t const *a, complex_t *res);
void gsl_complex_tanh (complex_t const *a, complex_t *res);
void gsl_complex_sech (complex_t const *a, complex_t *res);
void gsl_complex_csch (complex_t const *a, complex_t *res);
void gsl_complex_coth (complex_t const *a, complex_t *res);
void gsl_complex_arcsinh (complex_t const *a, complex_t *res);
void gsl_complex_arccosh (complex_t const *a, complex_t *res);
void gsl_complex_arctanh (complex_t const *a, complex_t *res);
void gsl_complex_arcsech (complex_t const *a, complex_t *res);
void gsl_complex_arccsch (complex_t const *a, complex_t *res);
void gsl_complex_arccoth (complex_t const *a, complex_t *res);
#endif
......@@ -1001,7 +1001,7 @@ static GnmFuncHelp const help_workday[] = {
};
static gint
float_compare (const gnm_float *a, const gnm_float *b)
float_compare (gnm_float const *a, gnm_float const *b)
{
if (*a < *b)
return -1;
......
......@@ -64,8 +64,8 @@ typedef enum {
**/
static GnmValue *
val_to_base (FunctionEvalInfo *ei,
const GnmValue *value,
const GnmValue *aplaces,
GnmValue const *value,
GnmValue const *aplaces,
int src_base, int dest_base,
gnm_float min_value, gnm_float max_value,
Val2BaseFlags flags)
......@@ -101,7 +101,7 @@ val_to_base (FunctionEvalInfo *ei,
return value_new_error_VALUE (ei->pos);
}
} else {
const char *str = value_peek_string (value);
char const *str = value_peek_string (value);
size_t len;
gboolean hsuffix = FALSE;
char *err;
......@@ -953,10 +953,10 @@ get_constant_of_unit(const eng_convert_unit_t units[],
/* See also http://physics.nist.gov/cuu/Units/prefixes.html */
static gboolean
convert (const eng_convert_unit_t units[],
const eng_convert_unit_t prefixes[],
convert (eng_convert_unit_t const units[],
eng_convert_unit_t const prefixes[],
char const *from_unit, char const *to_unit,
gnm_float n, GnmValue **v, const GnmEvalPos *ep)
gnm_float n, GnmValue **v, GnmEvalPos const *ep)
{
gnm_float from_c, from_prefix, to_c, to_prefix;
......@@ -1412,7 +1412,7 @@ range_invsuminv (gnm_float const *xs, int n, gnm_float *res)
}
static GnmValue *
gnumeric_invsuminv (FunctionEvalInfo *ei, int argc, const GnmExprConstPtr *argv)
gnumeric_invsuminv (FunctionEvalInfo *ei, int argc, GnmExprConstPtr const *argv)
{
return float_range_function (argc, argv, ei,
range_invsuminv,
......@@ -1424,7 +1424,7 @@ gnumeric_invsuminv (FunctionEvalInfo *ei, int argc, const GnmExprConstPtr *argv)
/***************************************************************************/
const GnmFuncDescriptor engineering_functions[] = {
GnmFuncDescriptor const engineering_functions[] = {
{ "base", "Sf|f", "text,base,length", help_base,
gnumeric_base, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_NO_TESTSUITE },
......
......@@ -53,7 +53,7 @@ GNM_PLUGIN_MODULE_HEADER;
#define is_valid_paytype(t) ((t) == 0 || (t) == 1)
static int
value_get_basis (const GnmValue *v, int defalt)
value_get_basis (GnmValue const *v, int defalt)
{
if (v) {
gnm_float b = value_get_as_float (v);
......@@ -66,7 +66,7 @@ value_get_basis (const GnmValue *v, int defalt)
}
static int
value_get_freq (const GnmValue *v)
value_get_freq (GnmValue const *v)
{
gnm_float f;
......@@ -82,7 +82,7 @@ value_get_freq (const GnmValue *v)
}
static int
value_get_paytype (const GnmValue *v)
value_get_paytype (GnmValue const *v)
{
if (v) {
gnm_float f = value_get_as_float (v);
......@@ -1815,7 +1815,7 @@ range_npv (gnm_float const *xs, int n, gnm_float *res)
}
static GnmValue *
gnumeric_npv (FunctionEvalInfo *ei, int argc, const GnmExprConstPtr *argv)
gnumeric_npv (FunctionEvalInfo *ei, int argc, GnmExprConstPtr const *argv)
{
return float_range_function (argc, argv, ei,
range_npv,
......@@ -2926,8 +2926,8 @@ static GnmFuncHelp const help_oddfprice[] = {
};
static gnm_float
date_ratio (const GDate *d1, const GDate *d2, const GDate *d3,
const GnmCouponConvention *conv)
date_ratio (GDate const *d1, const GDate *d2, const GDate *d3,
GnmCouponConvention const *conv)
{
GDate next_coupon, prev_coupon;
gnm_float res;
......@@ -2957,7 +2957,7 @@ static gnm_float
calc_oddfprice (const GDate *settlement, const GDate *maturity,
const GDate *issue, const GDate *first_coupon,
gnm_float rate, gnm_float yield, gnm_float redemption,
const GnmCouponConvention *conv)
GnmCouponConvention const *conv)
{
gnm_float a = days_between_basis (issue, settlement, conv->basis);
......@@ -3197,7 +3197,7 @@ static gnm_float
calc_oddlprice (const GDate *settlement, const GDate *maturity,
const GDate *last_interest,
gnm_float rate, gnm_float yield, gnm_float redemption,
const GnmCouponConvention *conv)
GnmCouponConvention *conv)
{
GDate d = *last_interest;
gnm_float x1, x2, x3;
......@@ -3289,10 +3289,10 @@ static GnmFuncHelp const help_oddlyield[] = {
static gnm_float
calc_oddlyield (const GDate *settlement, const GDate *maturity,
const GDate *last_interest,
calc_oddlyield (GDate const *settlement, GDate const *maturity,
GDate const *last_interest,
gnm_float rate, gnm_float price, gnm_float redemption,
const GnmCouponConvention *conv)
GnmCouponConvention const *conv)
{
GDate d = *last_interest;
gnm_float x1, x2, x3;
......@@ -3979,7 +3979,7 @@ gnumeric_vdb (FunctionEvalInfo *ei, GnmValue const * const *argv)
/***************************************************************************/
const GnmFuncDescriptor financial_functions[] = {
GnmFuncDescriptor const financial_functions[] = {
{ "accrint", "ffffff|f", "issue,first_interest,settlement,rate,par,frequency,basis",
help_accrint, gnumeric_accrint, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE + GNM_FUNC_AUTO_MONETARY,
......
......@@ -1723,7 +1723,7 @@ static GnmFuncHelp const help_isref[] = {
};
static GnmValue *
gnumeric_isref (FunctionEvalInfo *ei, int argc, const GnmExprConstPtr *argv)
gnumeric_isref (FunctionEvalInfo *ei, int argc, GnmExprConstPtr const *argv)
{
if (argc != 1)
return value_new_error (ei->pos,
......@@ -1825,7 +1825,7 @@ static GnmFuncHelp const help_type[] = {
static GnmValue *
gnumeric_type (FunctionEvalInfo *ei, GnmValue const * const *argv)
{
const GnmValue *v = argv[0];
GnmValue const *v = argv[0];
switch (v ? v->type : VALUE_EMPTY) {
case VALUE_BOOLEAN:
return value_new_int (4);
......@@ -1879,7 +1879,7 @@ gnumeric_getenv (FunctionEvalInfo *ei, GnmValue const * const *argv)
/***************************************************************************/
const GnmFuncDescriptor info_functions[] = {
GnmFuncDescriptor const info_functions[] = {
{ "cell", "sr", N_("info_type, cell"), help_cell,
gnumeric_cell, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_SUBSET_WITH_EXTENSIONS, GNM_FUNC_TEST_STATUS_BASIC },
......
......@@ -87,7 +87,7 @@ callback_function_and (GnmEvalPos const *ep, GnmValue const *value, void *closur
}
static GnmValue *
gnumeric_and (FunctionEvalInfo *ei, int argc, const GnmExprConstPtr *argv)
gnumeric_and (FunctionEvalInfo *ei, int argc, GnmExprConstPtr const *argv)
{
int result = -1;
......@@ -182,7 +182,7 @@ callback_function_or (GnmEvalPos const *ep, GnmValue const *value, void *closure
}
static GnmValue *
gnumeric_or (FunctionEvalInfo *ei, int argc, const GnmExprConstPtr *argv)
gnumeric_or (FunctionEvalInfo *ei, int argc, GnmExprConstPtr const *argv)
{
int result = -1;
......@@ -244,7 +244,7 @@ callback_function_xor (GnmEvalPos const *ep, GnmValue const *value, void *closur
}
static GnmValue *
gnumeric_xor (FunctionEvalInfo *ei, int argc, const GnmExprConstPtr *argv)
gnumeric_xor (FunctionEvalInfo *ei, int argc, GnmExprConstPtr const *argv)
{
int result = -1;
......@@ -355,7 +355,7 @@ gnumeric_false (FunctionEvalInfo *ei, GnmValue const * const *args)
/***************************************************************************/
const GnmFuncDescriptor logical_functions[] = {
GnmFuncDescriptor const logical_functions[] = {
{ "and", NULL, N_("number,number,"), help_and, NULL,
gnumeric_and, NULL, NULL, NULL,
GNM_FUNC_SIMPLE + GNM_FUNC_AUTO_UNITLESS,
......
......@@ -442,7 +442,7 @@ static GnmFuncHelp const help_areas[] = {
/* TODO : we need to rethink EXPR_SET as an operator vs a value type */
static GnmValue *
gnumeric_areas (FunctionEvalInfo *ei, int argc, const GnmExprConstPtr *argv)
gnumeric_areas (FunctionEvalInfo *ei, int argc, GnmExprConstPtr const *argv)
{
GnmExpr const *expr;
int res = -1;
......@@ -523,7 +523,7 @@ static GnmFuncHelp const help_choose[] = {
};
static GnmValue *
gnumeric_choose (FunctionEvalInfo *ei, int argc, const GnmExprConstPtr *argv)
gnumeric_choose (FunctionEvalInfo *ei, int argc, GnmExprConstPtr const *argv)
{
int index;
GnmValue *v;
......@@ -873,7 +873,7 @@ static GnmFuncHelp const help_index[] = {
};
static GnmValue *
gnumeric_index (FunctionEvalInfo *ei, int argc, const GnmExprConstPtr *argv)
gnumeric_index (FunctionEvalInfo *ei, int argc, GnmExprConstPtr const *argv)
{
GnmExpr const *source;
int elem[3] = { 0, 0, 0 };
......
......@@ -131,7 +131,7 @@ range_gcd (gnm_float const *xs, int n, gnm_float *res)
}
static GnmValue *
gnumeric_gcd (FunctionEvalInfo *ei, int argc, const GnmExprConstPtr *argv)
gnumeric_gcd (FunctionEvalInfo *ei, int argc, GnmExprConstPtr const *argv)
{
return float_range_function (argc, argv, ei,
range_gcd,
......@@ -200,7 +200,7 @@ range_lcm (gnm_float const *xs, int n, gnm_float *res)
}
static GnmValue *
gnumeric_lcm (FunctionEvalInfo *ei, int argc, const GnmExprConstPtr *argv)
gnumeric_lcm (FunctionEvalInfo *ei, int argc, GnmExprConstPtr const *argv)
{
return float_range_function (argc, argv, ei,
range_lcm,
......@@ -230,7 +230,7 @@ static GnmFuncHelp const help_hypot[] = {
};
static GnmValue *
gnumeric_hypot (FunctionEvalInfo *ei, int argc, const GnmExprConstPtr *argv)
gnumeric_hypot (FunctionEvalInfo *ei, int argc, GnmExprConstPtr const *argv)
{
return float_range_function (argc, argv, ei,
range_hypot,
......@@ -1503,7 +1503,7 @@ static GnmFuncHelp const help_suma[] = {
};
static GnmValue *
gnumeric_suma (FunctionEvalInfo *ei, int argc, const GnmExprConstPtr *argv)
gnumeric_suma (FunctionEvalInfo *ei, int argc, GnmExprConstPtr const *argv)
{
return float_range_function (argc, argv, ei,
range_sum,
......@@ -1537,7 +1537,7 @@ static GnmFuncHelp const help_sumsq[] = {
static GnmValue *
gnumeric_sumsq (FunctionEvalInfo *ei, int argc, const GnmExprConstPtr *argv)
gnumeric_sumsq (FunctionEvalInfo *ei, int argc, GnmExprConstPtr const *argv)
{
return float_range_function (argc, argv, ei,
range_sumsq,
......@@ -1569,7 +1569,7 @@ static GnmFuncHelp const help_multinomial[] = {
static GnmValue *
gnumeric_multinomial (FunctionEvalInfo *ei, int argc, const GnmExprConstPtr *argv)
gnumeric_multinomial (FunctionEvalInfo *ei, int argc, GnmExprConstPtr const *argv)
{
return float_range_function (argc, argv, ei,
range_multinomial,
......@@ -1600,7 +1600,7 @@ static GnmFuncHelp const help_g_product[] = {
};
static GnmValue *
gnumeric_g_product (FunctionEvalInfo *ei, int argc, const GnmExprConstPtr *argv)
gnumeric_g_product (FunctionEvalInfo *ei, int argc, GnmExprConstPtr const *argv)
{
return float_range_function (argc, argv, ei,
range_product,
......@@ -2893,7 +2893,7 @@ range_seriessum (gnm_float const *xs, int n, gnm_float *res)
static GnmValue *
gnumeric_seriessum (FunctionEvalInfo *ei, int argc, const GnmExprConstPtr *argv)
gnumeric_seriessum (FunctionEvalInfo *ei, int argc, GnmExprConstPtr const *argv)
{
return float_range_function (argc, argv, ei,
range_seriessum,
......@@ -3200,7 +3200,7 @@ static GnmFuncHelp const help_sumproduct[] = {
};
static GnmValue *
gnumeric_sumproduct (FunctionEvalInfo *ei, int argc, const GnmExprConstPtr *argv)
gnumeric_sumproduct (FunctionEvalInfo *ei, int argc, GnmExprConstPtr const *argv)