Commit 17053d26 authored by Morten Welinder's avatar Morten Welinder

White-space policing.

parent e3dc3dae
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
/*
* Gnumeric GOffice component
* gnumeric.c
*
......@@ -7,8 +7,8 @@
*
* Developed by Jean Bréfort <jean.brefort@normalesup.org>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
......
/* vim: set sw=8 ts=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
/*
Unix SMB/CIFS implementation.
a implementation of MD4 designed for use in the SMB authentication protocol
Copyright (C) Andrew Tridgell 1997-1998.
$Id$
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
......
/* vim: set sw=8: */
/*
* excel-xml-read.c : Read MS Excel 2003 SpreadsheetML
* excel-xml-read.c : Read MS Excel 2003 SpreadsheetML
*
* Copyright (C) 2003-2008 Jody Goldberg (jody@gnome.org)
*
......
......@@ -308,7 +308,7 @@ BC_R(ai)(XLChartHandler const *handle,
if (texpr != NULL) {
Sheet *sheet = ms_container_sheet (s->container.parent);
XL_CHECK_CONDITION_VAL (sheet &&
XL_CHECK_CONDITION_VAL (sheet &&
s->currentSeries &&
purpose < G_N_ELEMENTS (s->currentSeries->reg_dims) &&
s->currentSeries->reg_dims[purpose] == NULL,
......@@ -2224,7 +2224,7 @@ BC_R(tick)(XLChartHandler const *handle,
s->style->text_layout.angle = -90.;
break;
}
d (1, {
switch (major) {
case 0: g_printerr ("no major tick;\n"); break;
......@@ -2800,7 +2800,7 @@ not_a_matrix:
}
g_slist_free (l);
}
}
return TRUE;
}
......@@ -5816,7 +5816,7 @@ ms_excel_chart_write (ExcelWriteState *ewb, SheetObject *so)
scur = sval->v_range.cell.a.col;
}
} else {
sval = gnm_expr_top_get_constant (stexpr);
sval = gnm_expr_top_get_constant (stexpr);
s_as_col = sval->v_array.y > sval->v_array.x;
}
}
......
......@@ -3285,7 +3285,7 @@ excel_parse_name (GnmXLImporter *importer, Sheet *sheet, char *name,
if (0 == strcmp (name, "Print_Area")) {
GnmValue *val = gnm_expr_get_range (texpr->expr);
if (val != NULL && val->type == VALUE_CELLRANGE) {
GnmEvalPos ep;
GnmEvalPos ep;
int height, width;
eval_pos_init_sheet (&ep, sheet);
height = value_area_get_height (val, &ep);
......
......@@ -1313,7 +1313,7 @@ excel_write_HLINKs (BiffPut *bp, ExcelWriteSheet *esheet)
0x8c, 0x82, 0x00, 0xaa, 0x00, 0x4b, 0xa9, 0x0b,
};
ms_biff_put_var_write (bp, magic, sizeof magic);
excel_write_string (bp,
excel_write_string (bp,
STR_FOUR_BYTE_LENGTH | STR_SUPPRESS_HEADER | STR_TRAILING_NULL | STR_LEN_IN_BYTES,
target);
} else if (t == gnm_hlink_external_get_type ()) {
......@@ -1321,11 +1321,11 @@ excel_write_HLINKs (BiffPut *bp, ExcelWriteSheet *esheet)
0 == strncmp (target, "\\\\", 2)) {
GSF_LE_SET_GUINT32 (data, 0x117);
ms_biff_put_var_write (bp, data, 4);
excel_write_string (bp,
excel_write_string (bp,
STR_FOUR_BYTE_LENGTH | STR_SUPPRESS_HEADER | STR_TRAILING_NULL,
target);
/* Yes twice */
excel_write_string (bp,
excel_write_string (bp,
STR_FOUR_BYTE_LENGTH | STR_SUPPRESS_HEADER | STR_TRAILING_NULL,
target);
} else {
......@@ -1357,7 +1357,7 @@ excel_write_HLINKs (BiffPut *bp, ExcelWriteSheet *esheet)
GSF_LE_SET_GUINT32 (data+4, len*2);
GSF_LE_SET_GUINT16 (data+8, 3);
ms_biff_put_var_write (bp, data, 10);
excel_write_string (bp,
excel_write_string (bp,
STR_NO_LENGTH | STR_SUPPRESS_HEADER,
target);
}
......
......@@ -148,7 +148,7 @@ xls_write_pivot_cache_value (ExcelWriteState *ewb, GOVal const *v)
}
static void
xls_write_pivot_cache_group (ExcelWriteState *ewb,
xls_write_pivot_cache_group (ExcelWriteState *ewb,
GOValArray const *grouped_items,
GOValBucketer *bucketer)
{
......
......@@ -2361,17 +2361,17 @@ GSF_XML_IN_NODE_END
/***********************************************************************/
/* RGBMAX, HLSMAX must each fit in a byte. */
/* HLSMAX BEST IF DIVISIBLE BY 6 */
#define HLSMAX 240 /* H,L, and S vary over 0-HLSMAX */
#define RGBMAX 255 /* R,G, and B vary over 0-RGBMAX */
/* Hue is undefined if Saturation is 0 (grey-scale) */
/* This value determines where the Hue scrollbar is */
/* initially set for achromatic colors */
/* RGBMAX, HLSMAX must each fit in a byte. */
/* HLSMAX BEST IF DIVISIBLE BY 6 */
#define HLSMAX 240 /* H,L, and S vary over 0-HLSMAX */
#define RGBMAX 255 /* R,G, and B vary over 0-RGBMAX */
/* Hue is undefined if Saturation is 0 (grey-scale) */
/* This value determines where the Hue scrollbar is */
/* initially set for achromatic colors */
#define UNDEFINED (HLSMAX*2/3)
/* utility routine for HLStoRGB */
/* utility routine for HLStoRGB */
static int
hue_to_color (int m1, int m2, int h)
{
......@@ -2380,7 +2380,7 @@ hue_to_color (int m1, int m2, int h)
if (h > HLSMAX)
h -= HLSMAX;
/* return r,g, or b value from this tridrant */
/* return r,g, or b value from this tridrant */
if (h < (HLSMAX/6))
return m1 + (((m2 - m1)*h + (HLSMAX/12))/(HLSMAX/6));
if (h < (HLSMAX/2))
......@@ -2436,7 +2436,7 @@ apply_tint (GOColor orig, float tint)
else
l = l * (1. - tint) + (HLSMAX - HLSMAX * (1.0 - tint));
if (s == 0) { /* achromatic case */
if (s == 0) { /* achromatic case */
r = (l * RGBMAX) / HLSMAX;
return GO_COLOR_FROM_RGBA (r, r, r, a);
}
......@@ -2453,7 +2453,7 @@ apply_tint (GOColor orig, float tint)
return GO_COLOR_FROM_RGBA (r,g,b,a);
}
static GnmColor *
elem_color (GsfXMLIn *xin, xmlChar const **attrs)
{
......@@ -4156,7 +4156,7 @@ xlsx_read_external_book (GsfXMLIn *xin, xmlChar const **attrs)
{
XLSXReadState *state = (XLSXReadState *)xin->user_state;
GsfOpenPkgRel const *rel = gsf_open_pkg_lookup_rel_by_type (
gsf_xml_in_get_input (xin),
gsf_xml_in_get_input (xin),
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath");
if (NULL != rel && gsf_open_pkg_rel_is_extern (rel))
state->external_ref = xlsx_conventions_add_extern_ref (
......@@ -4579,7 +4579,7 @@ xlsx_pattern_fg_bg (GsfXMLIn *xin, xmlChar const **attrs)
/* MAGIC :
* Looks like pattern background and forground colours are inverted for
* dxfs with solid fills for no apparent reason. */
gboolean const invert = state->style_accum_partial
gboolean const invert = state->style_accum_partial
&& gnm_style_is_element_set (state->style_accum, MSTYLE_PATTERN)
&& (1 == gnm_style_get_pattern (state->style_accum));
GnmColor *color = elem_color (xin, attrs);
......@@ -4642,7 +4642,7 @@ xlsx_border_end (GsfXMLIn *xin, G_GNUC_UNUSED GsfXMLBlob *blob)
XLSXReadState *state = (XLSXReadState *)xin->user_state;
GnmBorder *border;
GnmStyleBorderLocation const loc = xin->node->user_data.v_int;
if (NULL == state->border_color)
state->border_color = style_color_black ();
border = gnm_style_border_fetch (state->border_style,
......
......@@ -110,7 +110,7 @@ xlsx_write_pivot_cache_records (XLSXWriteState *state, GODataCache const *cache,
case GO_DATA_CACHE_FIELD_TYPE_INDEXED_I16 : /* fallthrough */
case GO_DATA_CACHE_FIELD_TYPE_INDEXED_I32 : /* fallthrough */
gsf_xml_out_start_element (xml, "x");
gsf_xml_out_add_int (xml, "v",
gsf_xml_out_add_int (xml, "v",
go_data_cache_get_index (cache, field, j));
gsf_xml_out_end_element (xml);
break;
......
......@@ -80,7 +80,7 @@ static GnmFuncHelp const help_complex[] = {
{ GNM_FUNC_HELP_ARG, F_("x:real part") },
{ GNM_FUNC_HELP_ARG, F_("y:imaginary part") },
{ GNM_FUNC_HELP_ARG, F_("i:the suffix for the complex number, either \"i\" or \"j\"; defaults to \"i\".") },
{ GNM_FUNC_HELP_NOTE, F_("If @{i} is neither \"i\" nor \"j\", COMPLEX returns #VALUE!") },
{ GNM_FUNC_HELP_NOTE, F_("If @{i} is neither \"i\" nor \"j\", COMPLEX returns #VALUE!") },
{ GNM_FUNC_HELP_EXCEL, F_("This function is Excel compatible.") },
{ GNM_FUNC_HELP_EXAMPLES, "=COMPLEX(1,-1)" },
{ GNM_FUNC_HELP_END}
......
......@@ -766,45 +766,45 @@ gnumeric_getpivotdata (GnmFuncEvalInfo *ei, GnmValue const * const *argv)
/***************************************************************************/
const GnmFuncDescriptor database_functions[] = {
{ "daverage", "rSr",
{ "daverage", "rSr",
help_daverage, gnumeric_daverage, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
{ "dcount", "rSr",
{ "dcount", "rSr",
help_dcount, gnumeric_dcount, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
{ "dcounta", "rSr",
{ "dcounta", "rSr",
help_dcounta, gnumeric_dcounta, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
{ "dget", "rSr",
{ "dget", "rSr",
help_dget, gnumeric_dget, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
{ "dmax", "rSr",
{ "dmax", "rSr",
help_dmax, gnumeric_dmax, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
{ "dmin", "rSr",
{ "dmin", "rSr",
help_dmin, gnumeric_dmin, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
{ "dproduct", "rSr",
{ "dproduct", "rSr",
help_dproduct, gnumeric_dproduct, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
{ "dstdev", "rSr",
{ "dstdev", "rSr",
help_dstdev, gnumeric_dstdev, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
{ "dstdevp", "rSr",
{ "dstdevp", "rSr",
help_dstdevp, gnumeric_dstdevp, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
{ "dsum", "rSr",
{ "dsum", "rSr",
help_dsum, gnumeric_dsum, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
{ "dvar", "rSr",
{ "dvar", "rSr",
help_dvar, gnumeric_dvar, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
{ "dvarp", "rSr",
{ "dvarp", "rSr",
help_dvarp, gnumeric_dvarp, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
/* XL stores in lookup */
{ "getpivotdata", "rs",
{ "getpivotdata", "rs",
help_getpivotdata, gnumeric_getpivotdata, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_SUBSET, GNM_FUNC_TEST_STATUS_NO_TESTSUITE },
......
......@@ -1170,7 +1170,7 @@ GnmFuncDescriptor const datetime_functions[] = {
gnumeric_month, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE + GNM_FUNC_AUTO_UNITLESS,
GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
{ "networkdays", "ff|?",
{ "networkdays", "ff|?",
help_networkdays, gnumeric_networkdays, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE + GNM_FUNC_AUTO_UNITLESS,
GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
......
......@@ -249,7 +249,7 @@ static GnmFuncHelp const help_opt_bs[] = {
DEF_ARG_TIME_MATURITY_Y,
DEF_ARG_RATE_RISKFREE,
DEF_ARG_VOLATILITY,
DEF_ARG_CC_OPT,
DEF_ARG_CC_OPT,
{ GNM_FUNC_HELP_DESCRIPTION, F_("OPT_BS uses the Black-Scholes model to calculate "
"the price of a European option struck at @{strike} "
"on an asset with spot price @{spot}.")},
......@@ -1968,148 +1968,148 @@ static GnmFuncHelp const help_opt_binomial[] = {
GnmFuncDescriptor const derivatives_functions [] = {
{ "opt_bs",
"sfffff|f",
"sfffff|f",
help_opt_bs, opt_bs, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_BASIC },
{ "opt_bs_delta",
"sfffff|f",
"sfffff|f",
help_opt_bs_delta, opt_bs_delta, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_BASIC },
{ "opt_bs_rho",
"sfffff|f",
"sfffff|f",
help_opt_bs_rho, opt_bs_rho, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_BASIC },
{ "opt_bs_theta",
"sfffff|f",
"sfffff|f",
help_opt_bs_theta, opt_bs_theta, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_BASIC },
{ "opt_bs_gamma",
"fffff|f",
"fffff|f",
help_opt_bs_gamma, opt_bs_gamma, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_BASIC },
{ "opt_bs_vega",
"fffff|f",
"fffff|f",
help_opt_bs_vega, opt_bs_vega, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_BASIC },
{ "opt_bs_carrycost",
"sfffff|f",
"sfffff|f",
help_opt_bs_carrycost, opt_bs_carrycost, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_BASIC },
{ "cum_biv_norm_dist",
"fff",
"fff",
help_cum_biv_norm_dist, cum_biv_norm_dist, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_NO_TESTSUITE },
{ "opt_garman_kohlhagen",
"sffffff",
"sffffff",
help_opt_garman_kohlhagen, opt_garman_kohlhagen, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_BASIC },
{ "opt_french",
"sfffffff",
"sfffffff",
help_opt_french, opt_french, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_BASIC },
{ "opt_jump_diff",
"sfffffff",
"sfffffff",
help_opt_jump_diff, opt_jump_diff, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_BASIC },
{ "opt_exec",
"sfffffff",
"sfffffff",
help_opt_exec, opt_exec, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_BASIC },
{ "opt_bjer_stens",
"sffffff",
"sffffff",
help_opt_bjer_stens, opt_bjer_stens, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_BASIC },
{ "opt_miltersen_schwartz",
"sfffffffffffff",
"sfffffffffffff",
help_opt_miltersen_schwartz, opt_miltersen_schwartz, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_BASIC },
{ "opt_baw_amer",
"sffffff",
"sffffff",
help_opt_baw_amer, opt_baw_amer, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_BASIC },
{ "opt_rgw",
"fffffff",
"fffffff",
help_opt_rgw, opt_rgw, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_BASIC },
{ "opt_forward_start",
"sfffffff",
"sfffffff",
help_opt_forward_start, opt_forward_start, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_BASIC },
{ "opt_time_switch",
"sfffffffff",
"sfffffffff",
help_opt_time_switch, opt_time_switch, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_BASIC },
{ "opt_simple_chooser",
"fffffff",
"fffffff",
help_opt_simple_chooser, opt_simple_chooser, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_BASIC },
{ "opt_complex_chooser",
"fffffffff",
"fffffffff",
help_opt_complex_chooser, opt_complex_chooser, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_BASIC },
{ "opt_on_options",
"sffffffff",
"sffffffff",
help_opt_on_options, opt_on_options, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_BASIC },
{ "opt_extendible_writer",
"sffffffff",
"sffffffff",
help_opt_extendible_writer, opt_extendible_writer, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_BASIC },
{ "opt_2_asset_correlation",
"sfffffffffff",
"sfffffffffff",
help_opt_2_asset_correlation, opt_2_asset_correlation, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_BASIC },
{ "opt_euro_exchange",
"fffffffffff",
"fffffffffff",
help_opt_euro_exchange, opt_euro_exchange, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_BASIC },
{ "opt_amer_exchange",
"fffffffffff",
"fffffffffff",
help_opt_amer_exchange, opt_amer_exchange, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_BASIC },
{ "opt_spread_approx",
"sffffffff",
"sffffffff",
help_opt_spread_approx, opt_spread_approx, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_BASIC },
{ "opt_float_strk_lkbk",
"sfffffff",
"sfffffff",
help_opt_float_strk_lkbk, opt_float_strk_lkbk, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_BASIC },
{ "opt_fixed_strk_lkbk",
"sffffffff",
"sffffffff",
help_opt_fixed_strk_lkbk, opt_fixed_strk_lkbk, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_BASIC },
{ "opt_binomial",
"ssffffff|f",
"ssffffff|f",
help_opt_binomial, opt_binomial, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_BASIC },
......
......@@ -3161,211 +3161,211 @@ gnumeric_vdb (GnmFuncEvalInfo *ei, GnmValue const * const *argv)
/***************************************************************************/
GnmFuncDescriptor const financial_functions[] = {
{ "accrint", "ffffff|f",
{ "accrint", "ffffff|f",
help_accrint, gnumeric_accrint, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE + GNM_FUNC_AUTO_MONETARY,
GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
{ "accrintm", "fff|ff",
{ "accrintm", "fff|ff",
help_accrintm, gnumeric_accrintm, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE + GNM_FUNC_AUTO_MONETARY,
GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
{ "amordegrc", "fffffff",
{ "amordegrc", "fffffff",
help_amordegrc, gnumeric_amordegrc, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE + GNM_FUNC_AUTO_MONETARY,
GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
{ "amorlinc", "fffffff",
{ "amorlinc", "fffffff",
help_amorlinc, gnumeric_amorlinc, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE + GNM_FUNC_AUTO_MONETARY,
GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
{ "coupdaybs", "fff|fb",
{ "coupdaybs", "fff|fb",
help_coupdaybs, gnumeric_coupdaybs, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
{ "coupdays", "fff|fb",
{ "coupdays", "fff|fb",
help_coupdays, gnumeric_coupdays, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
{ "coupdaysnc", "fff|fb",
{ "coupdaysnc", "fff|fb",
help_coupdaysnc, gnumeric_coupdaysnc, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
{ "coupncd", "fff|fb",
{ "coupncd", "fff|fb",
help_coupncd, gnumeric_coupncd, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE + GNM_FUNC_AUTO_DATE,
GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
{ "coupnum", "fff|fb",
{ "coupnum", "fff|fb",
help_coupnum, gnumeric_coupnum, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
{ "couppcd", "fff|fb",
{ "couppcd", "fff|fb",
help_couppcd, gnumeric_couppcd, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE + GNM_FUNC_AUTO_DATE,
GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
{ "cumipmt", "ffffff",
{ "cumipmt", "ffffff",
help_cumipmt, gnumeric_cumipmt, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE + GNM_FUNC_AUTO_MONETARY,
GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
{ "cumprinc", "ffffff",
{ "cumprinc", "ffffff",
help_cumprinc, gnumeric_cumprinc, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE + GNM_FUNC_AUTO_MONETARY,
GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
{ "db", "ffff|f",
{ "db", "ffff|f",
help_db, gnumeric_db, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE + GNM_FUNC_AUTO_MONETARY,
GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
{ "ddb", "ffff|f",
{ "ddb", "ffff|f",
help_ddb, gnumeric_ddb, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE + GNM_FUNC_AUTO_MONETARY,
GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
{ "disc", "ffff|f",
{ "disc", "ffff|f",
help_disc, gnumeric_disc, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
{ "dollarde", "ff",
{ "dollarde", "ff",
help_dollarde, gnumeric_dollarde, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE + GNM_FUNC_AUTO_MONETARY,
GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
{ "dollarfr", "ff",
{ "dollarfr", "ff",
help_dollarfr, gnumeric_dollarfr, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
{ "duration", "fffff|f",
{ "duration", "fffff|f",
help_duration, gnumeric_duration, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
{ "effect", "ff",
{ "effect", "ff",
help_effect, gnumeric_effect, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE + GNM_FUNC_AUTO_PERCENT,
GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
{ "euro", "s",
{ "euro", "s",
help_euro, gnumeric_euro, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_BASIC },
{ "euroconvert", "fss",
{ "euroconvert", "fss",
help_euroconvert, gnumeric_euroconvert, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
{ "fv", "fff|ff",
{ "fv", "fff|ff",
help_fv, gnumeric_fv, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE + GNM_FUNC_AUTO_MONETARY,
GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
{ "fvschedule", "fA",
{ "fvschedule", "fA",
help_fvschedule, gnumeric_fvschedule, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE + GNM_FUNC_AUTO_MONETARY,
GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
{ "g_duration", "fff",
{ "g_duration", "fff",
help_g_duration, gnumeric_g_duration, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_BASIC },
{ "intrate", "ffff|f",
{ "intrate", "ffff|f",
help_intrate, gnumeric_intrate, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE + GNM_FUNC_AUTO_PERCENT,
GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
{ "ipmt", "ffff|ff",
{ "ipmt", "ffff|ff",
help_ipmt, gnumeric_ipmt, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE + GNM_FUNC_AUTO_MONETARY,
GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
{ "irr", "A|f",
{ "irr", "A|f",
help_irr, gnumeric_irr, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE + GNM_FUNC_AUTO_PERCENT,
GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
{ "ispmt", "ffff",
{ "ispmt", "ffff",
help_ispmt, gnumeric_ispmt, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE + GNM_FUNC_AUTO_MONETARY,
GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
{ "mduration", "fffff|f",
{ "mduration", "fffff|f",
help_mduration, gnumeric_mduration, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
{ "mirr", "Aff",
{ "mirr", "Aff",
help_mirr, gnumeric_mirr, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE + GNM_FUNC_AUTO_PERCENT,
GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
{ "nominal", "ff",
{ "nominal", "ff",
help_nominal, gnumeric_nominal, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE + GNM_FUNC_AUTO_PERCENT,
GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
{ "nper", "fff|ff",
{ "nper", "fff|ff",
help_nper, gnumeric_nper, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
{ "npv", NULL,
help_npv, NULL, gnumeric_npv, NULL, NULL, NULL,
GNM_FUNC_SIMPLE + GNM_FUNC_AUTO_MONETARY,
GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
{ "oddfprice", "fffffffff",
{ "oddfprice", "fffffffff",
help_oddfprice, gnumeric_oddfprice, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
{ "oddfyield", "fffffffff",
{ "oddfyield", "fffffffff",
help_oddfyield, gnumeric_oddfyield, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
{ "oddlprice", "ffffffff",