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 -*- */ /* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/* /*
* Gnumeric GOffice component * Gnumeric GOffice component
* gnumeric.c * gnumeric.c
* *
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
* *
* Developed by Jean Bréfort <jean.brefort@normalesup.org> * Developed by Jean Bréfort <jean.brefort@normalesup.org>
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as * modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the * published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version. * 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 -*- */ /* vim: set sw=8 ts=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/* /*
Unix SMB/CIFS implementation. Unix SMB/CIFS implementation.
a implementation of MD4 designed for use in the SMB authentication protocol a implementation of MD4 designed for use in the SMB authentication protocol
Copyright (C) Andrew Tridgell 1997-1998. Copyright (C) Andrew Tridgell 1997-1998.
$Id$ $Id$
This program is free software; you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or the Free Software Foundation; either version 2 of the License, or
(at your option) any later version. (at your option) any later version.
This program is distributed in the hope that it will be useful, This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. GNU General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
......
/* vim: set sw=8: */ /* 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) * Copyright (C) 2003-2008 Jody Goldberg (jody@gnome.org)
* *
......
...@@ -308,7 +308,7 @@ BC_R(ai)(XLChartHandler const *handle, ...@@ -308,7 +308,7 @@ BC_R(ai)(XLChartHandler const *handle,
if (texpr != NULL) { if (texpr != NULL) {
Sheet *sheet = ms_container_sheet (s->container.parent); Sheet *sheet = ms_container_sheet (s->container.parent);
XL_CHECK_CONDITION_VAL (sheet && XL_CHECK_CONDITION_VAL (sheet &&
s->currentSeries && s->currentSeries &&
purpose < G_N_ELEMENTS (s->currentSeries->reg_dims) && purpose < G_N_ELEMENTS (s->currentSeries->reg_dims) &&
s->currentSeries->reg_dims[purpose] == NULL, s->currentSeries->reg_dims[purpose] == NULL,
...@@ -2224,7 +2224,7 @@ BC_R(tick)(XLChartHandler const *handle, ...@@ -2224,7 +2224,7 @@ BC_R(tick)(XLChartHandler const *handle,
s->style->text_layout.angle = -90.; s->style->text_layout.angle = -90.;
break; break;
} }
d (1, { d (1, {
switch (major) { switch (major) {
case 0: g_printerr ("no major tick;\n"); break; case 0: g_printerr ("no major tick;\n"); break;
...@@ -2800,7 +2800,7 @@ not_a_matrix: ...@@ -2800,7 +2800,7 @@ not_a_matrix:
} }
g_slist_free (l); g_slist_free (l);
} }
} }
return TRUE; return TRUE;
} }
...@@ -5816,7 +5816,7 @@ ms_excel_chart_write (ExcelWriteState *ewb, SheetObject *so) ...@@ -5816,7 +5816,7 @@ ms_excel_chart_write (ExcelWriteState *ewb, SheetObject *so)
scur = sval->v_range.cell.a.col; scur = sval->v_range.cell.a.col;
} }
} else { } 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; s_as_col = sval->v_array.y > sval->v_array.x;
} }
} }
......
...@@ -3285,7 +3285,7 @@ excel_parse_name (GnmXLImporter *importer, Sheet *sheet, char *name, ...@@ -3285,7 +3285,7 @@ excel_parse_name (GnmXLImporter *importer, Sheet *sheet, char *name,
if (0 == strcmp (name, "Print_Area")) { if (0 == strcmp (name, "Print_Area")) {
GnmValue *val = gnm_expr_get_range (texpr->expr); GnmValue *val = gnm_expr_get_range (texpr->expr);
if (val != NULL && val->type == VALUE_CELLRANGE) { if (val != NULL && val->type == VALUE_CELLRANGE) {
GnmEvalPos ep; GnmEvalPos ep;
int height, width; int height, width;
eval_pos_init_sheet (&ep, sheet); eval_pos_init_sheet (&ep, sheet);
height = value_area_get_height (val, &ep); height = value_area_get_height (val, &ep);
......
...@@ -1313,7 +1313,7 @@ excel_write_HLINKs (BiffPut *bp, ExcelWriteSheet *esheet) ...@@ -1313,7 +1313,7 @@ excel_write_HLINKs (BiffPut *bp, ExcelWriteSheet *esheet)
0x8c, 0x82, 0x00, 0xaa, 0x00, 0x4b, 0xa9, 0x0b, 0x8c, 0x82, 0x00, 0xaa, 0x00, 0x4b, 0xa9, 0x0b,
}; };
ms_biff_put_var_write (bp, magic, sizeof magic); 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, STR_FOUR_BYTE_LENGTH | STR_SUPPRESS_HEADER | STR_TRAILING_NULL | STR_LEN_IN_BYTES,
target); target);
} else if (t == gnm_hlink_external_get_type ()) { } else if (t == gnm_hlink_external_get_type ()) {
...@@ -1321,11 +1321,11 @@ excel_write_HLINKs (BiffPut *bp, ExcelWriteSheet *esheet) ...@@ -1321,11 +1321,11 @@ excel_write_HLINKs (BiffPut *bp, ExcelWriteSheet *esheet)
0 == strncmp (target, "\\\\", 2)) { 0 == strncmp (target, "\\\\", 2)) {
GSF_LE_SET_GUINT32 (data, 0x117); GSF_LE_SET_GUINT32 (data, 0x117);
ms_biff_put_var_write (bp, data, 4); 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, STR_FOUR_BYTE_LENGTH | STR_SUPPRESS_HEADER | STR_TRAILING_NULL,
target); target);
/* Yes twice */ /* Yes twice */
excel_write_string (bp, excel_write_string (bp,
STR_FOUR_BYTE_LENGTH | STR_SUPPRESS_HEADER | STR_TRAILING_NULL, STR_FOUR_BYTE_LENGTH | STR_SUPPRESS_HEADER | STR_TRAILING_NULL,
target); target);
} else { } else {
...@@ -1357,7 +1357,7 @@ excel_write_HLINKs (BiffPut *bp, ExcelWriteSheet *esheet) ...@@ -1357,7 +1357,7 @@ excel_write_HLINKs (BiffPut *bp, ExcelWriteSheet *esheet)
GSF_LE_SET_GUINT32 (data+4, len*2); GSF_LE_SET_GUINT32 (data+4, len*2);
GSF_LE_SET_GUINT16 (data+8, 3); GSF_LE_SET_GUINT16 (data+8, 3);
ms_biff_put_var_write (bp, data, 10); ms_biff_put_var_write (bp, data, 10);
excel_write_string (bp, excel_write_string (bp,
STR_NO_LENGTH | STR_SUPPRESS_HEADER, STR_NO_LENGTH | STR_SUPPRESS_HEADER,
target); target);
} }
......
...@@ -148,7 +148,7 @@ xls_write_pivot_cache_value (ExcelWriteState *ewb, GOVal const *v) ...@@ -148,7 +148,7 @@ xls_write_pivot_cache_value (ExcelWriteState *ewb, GOVal const *v)
} }
static void static void
xls_write_pivot_cache_group (ExcelWriteState *ewb, xls_write_pivot_cache_group (ExcelWriteState *ewb,
GOValArray const *grouped_items, GOValArray const *grouped_items,
GOValBucketer *bucketer) GOValBucketer *bucketer)
{ {
......
...@@ -2361,17 +2361,17 @@ GSF_XML_IN_NODE_END ...@@ -2361,17 +2361,17 @@ GSF_XML_IN_NODE_END
/***********************************************************************/ /***********************************************************************/
/* RGBMAX, HLSMAX must each fit in a byte. */ /* RGBMAX, HLSMAX must each fit in a byte. */
/* HLSMAX BEST IF DIVISIBLE BY 6 */ /* HLSMAX BEST IF DIVISIBLE BY 6 */
#define HLSMAX 240 /* H,L, and S vary over 0-HLSMAX */ #define HLSMAX 240 /* H,L, and S vary over 0-HLSMAX */
#define RGBMAX 255 /* R,G, and B vary over 0-RGBMAX */ #define RGBMAX 255 /* R,G, and B vary over 0-RGBMAX */
/* Hue is undefined if Saturation is 0 (grey-scale) */ /* Hue is undefined if Saturation is 0 (grey-scale) */
/* This value determines where the Hue scrollbar is */ /* This value determines where the Hue scrollbar is */
/* initially set for achromatic colors */ /* initially set for achromatic colors */
#define UNDEFINED (HLSMAX*2/3) #define UNDEFINED (HLSMAX*2/3)
/* utility routine for HLStoRGB */ /* utility routine for HLStoRGB */
static int static int
hue_to_color (int m1, int m2, int h) hue_to_color (int m1, int m2, int h)
{ {
...@@ -2380,7 +2380,7 @@ 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) if (h > HLSMAX)
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)) if (h < (HLSMAX/6))
return m1 + (((m2 - m1)*h + (HLSMAX/12))/(HLSMAX/6)); return m1 + (((m2 - m1)*h + (HLSMAX/12))/(HLSMAX/6));
if (h < (HLSMAX/2)) if (h < (HLSMAX/2))
...@@ -2436,7 +2436,7 @@ apply_tint (GOColor orig, float tint) ...@@ -2436,7 +2436,7 @@ apply_tint (GOColor orig, float tint)
else else
l = l * (1. - tint) + (HLSMAX - HLSMAX * (1.0 - tint)); l = l * (1. - tint) + (HLSMAX - HLSMAX * (1.0 - tint));
if (s == 0) { /* achromatic case */ if (s == 0) { /* achromatic case */
r = (l * RGBMAX) / HLSMAX; r = (l * RGBMAX) / HLSMAX;
return GO_COLOR_FROM_RGBA (r, r, r, a); return GO_COLOR_FROM_RGBA (r, r, r, a);
} }
...@@ -2453,7 +2453,7 @@ apply_tint (GOColor orig, float tint) ...@@ -2453,7 +2453,7 @@ apply_tint (GOColor orig, float tint)
return GO_COLOR_FROM_RGBA (r,g,b,a); return GO_COLOR_FROM_RGBA (r,g,b,a);
} }
static GnmColor * static GnmColor *
elem_color (GsfXMLIn *xin, xmlChar const **attrs) elem_color (GsfXMLIn *xin, xmlChar const **attrs)
{ {
...@@ -4156,7 +4156,7 @@ xlsx_read_external_book (GsfXMLIn *xin, xmlChar const **attrs) ...@@ -4156,7 +4156,7 @@ xlsx_read_external_book (GsfXMLIn *xin, xmlChar const **attrs)
{ {
XLSXReadState *state = (XLSXReadState *)xin->user_state; XLSXReadState *state = (XLSXReadState *)xin->user_state;
GsfOpenPkgRel const *rel = gsf_open_pkg_lookup_rel_by_type ( 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"); "http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath");
if (NULL != rel && gsf_open_pkg_rel_is_extern (rel)) if (NULL != rel && gsf_open_pkg_rel_is_extern (rel))
state->external_ref = xlsx_conventions_add_extern_ref ( state->external_ref = xlsx_conventions_add_extern_ref (
...@@ -4579,7 +4579,7 @@ xlsx_pattern_fg_bg (GsfXMLIn *xin, xmlChar const **attrs) ...@@ -4579,7 +4579,7 @@ xlsx_pattern_fg_bg (GsfXMLIn *xin, xmlChar const **attrs)
/* MAGIC : /* MAGIC :
* Looks like pattern background and forground colours are inverted for * Looks like pattern background and forground colours are inverted for
* dxfs with solid fills for no apparent reason. */ * 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) && gnm_style_is_element_set (state->style_accum, MSTYLE_PATTERN)
&& (1 == gnm_style_get_pattern (state->style_accum)); && (1 == gnm_style_get_pattern (state->style_accum));
GnmColor *color = elem_color (xin, attrs); GnmColor *color = elem_color (xin, attrs);
...@@ -4642,7 +4642,7 @@ xlsx_border_end (GsfXMLIn *xin, G_GNUC_UNUSED GsfXMLBlob *blob) ...@@ -4642,7 +4642,7 @@ xlsx_border_end (GsfXMLIn *xin, G_GNUC_UNUSED GsfXMLBlob *blob)
XLSXReadState *state = (XLSXReadState *)xin->user_state; XLSXReadState *state = (XLSXReadState *)xin->user_state;
GnmBorder *border; GnmBorder *border;
GnmStyleBorderLocation const loc = xin->node->user_data.v_int; GnmStyleBorderLocation const loc = xin->node->user_data.v_int;
if (NULL == state->border_color) if (NULL == state->border_color)
state->border_color = style_color_black (); state->border_color = style_color_black ();
border = gnm_style_border_fetch (state->border_style, border = gnm_style_border_fetch (state->border_style,
......
...@@ -110,7 +110,7 @@ xlsx_write_pivot_cache_records (XLSXWriteState *state, GODataCache const *cache, ...@@ -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_I16 : /* fallthrough */
case GO_DATA_CACHE_FIELD_TYPE_INDEXED_I32 : /* fallthrough */ case GO_DATA_CACHE_FIELD_TYPE_INDEXED_I32 : /* fallthrough */
gsf_xml_out_start_element (xml, "x"); 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)); go_data_cache_get_index (cache, field, j));
gsf_xml_out_end_element (xml); gsf_xml_out_end_element (xml);
break; break;
......
...@@ -80,7 +80,7 @@ static GnmFuncHelp const help_complex[] = { ...@@ -80,7 +80,7 @@ static GnmFuncHelp const help_complex[] = {
{ GNM_FUNC_HELP_ARG, F_("x:real part") }, { GNM_FUNC_HELP_ARG, F_("x:real part") },
{ GNM_FUNC_HELP_ARG, F_("y:imaginary 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_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_EXCEL, F_("This function is Excel compatible.") },
{ GNM_FUNC_HELP_EXAMPLES, "=COMPLEX(1,-1)" }, { GNM_FUNC_HELP_EXAMPLES, "=COMPLEX(1,-1)" },
{ GNM_FUNC_HELP_END} { GNM_FUNC_HELP_END}
......
...@@ -766,45 +766,45 @@ gnumeric_getpivotdata (GnmFuncEvalInfo *ei, GnmValue const * const *argv) ...@@ -766,45 +766,45 @@ gnumeric_getpivotdata (GnmFuncEvalInfo *ei, GnmValue const * const *argv)
/***************************************************************************/ /***************************************************************************/
const GnmFuncDescriptor database_functions[] = { const GnmFuncDescriptor database_functions[] = {
{ "daverage", "rSr", { "daverage", "rSr",
help_daverage, gnumeric_daverage, NULL, NULL, NULL, NULL, help_daverage, gnumeric_daverage, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC }, 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, help_dcount, gnumeric_dcount, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC }, 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, help_dcounta, gnumeric_dcounta, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC }, 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, help_dget, gnumeric_dget, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC }, 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, help_dmax, gnumeric_dmax, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC }, 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, help_dmin, gnumeric_dmin, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC }, 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, help_dproduct, gnumeric_dproduct, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC }, 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, help_dstdev, gnumeric_dstdev, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC }, 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, help_dstdevp, gnumeric_dstdevp, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC }, 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, help_dsum, gnumeric_dsum, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC }, 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, help_dvar, gnumeric_dvar, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC }, 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, help_dvarp, gnumeric_dvarp, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC }, GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
/* XL stores in lookup */ /* XL stores in lookup */
{ "getpivotdata", "rs", { "getpivotdata", "rs",
help_getpivotdata, gnumeric_getpivotdata, NULL, NULL, NULL, NULL, help_getpivotdata, gnumeric_getpivotdata, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_SUBSET, GNM_FUNC_TEST_STATUS_NO_TESTSUITE }, GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_SUBSET, GNM_FUNC_TEST_STATUS_NO_TESTSUITE },
......
...@@ -1170,7 +1170,7 @@ GnmFuncDescriptor const datetime_functions[] = { ...@@ -1170,7 +1170,7 @@ GnmFuncDescriptor const datetime_functions[] = {
gnumeric_month, NULL, NULL, NULL, NULL, gnumeric_month, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE + GNM_FUNC_AUTO_UNITLESS, GNM_FUNC_SIMPLE + GNM_FUNC_AUTO_UNITLESS,
GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC }, GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
{ "networkdays", "ff|?", { "networkdays", "ff|?",
help_networkdays, gnumeric_networkdays, NULL, NULL, NULL, NULL, help_networkdays, gnumeric_networkdays, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE + GNM_FUNC_AUTO_UNITLESS, GNM_FUNC_SIMPLE + GNM_FUNC_AUTO_UNITLESS,
GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC }, GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_BASIC },
......
...@@ -249,7 +249,7 @@ static GnmFuncHelp const help_opt_bs[] = { ...@@ -249,7 +249,7 @@ static GnmFuncHelp const help_opt_bs[] = {
DEF_ARG_TIME_MATURITY_Y, DEF_ARG_TIME_MATURITY_Y,
DEF_ARG_RATE_RISKFREE, DEF_ARG_RATE_RISKFREE,
DEF_ARG_VOLATILITY, 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 " { GNM_FUNC_HELP_DESCRIPTION, F_("OPT_BS uses the Black-Scholes model to calculate "
"the price of a European option struck at @{strike} " "the price of a European option struck at @{strike} "
"on an asset with spot price @{spot}.")}, "on an asset with spot price @{spot}.")},
...@@ -1968,148 +1968,148 @@ static GnmFuncHelp const help_opt_binomial[] = { ...@@ -1968,148 +1968,148 @@ static GnmFuncHelp const help_opt_binomial[] = {
GnmFuncDescriptor const derivatives_functions [] = { GnmFuncDescriptor const derivatives_functions [] = {
{ "opt_bs", { "opt_bs",
"sfffff|f", "sfffff|f",
help_opt_bs, opt_bs, NULL, NULL, NULL, NULL, help_opt_bs, opt_bs, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_BASIC }, GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_BASIC },
{ "opt_bs_delta", { "opt_bs_delta",
"sfffff|f", "sfffff|f",
help_opt_bs_delta, opt_bs_delta, NULL, NULL, NULL, NULL, 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 }, GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_BASIC },
{ "opt_bs_rho", { "opt_bs_rho",
"sfffff|f", "sfffff|f",
help_opt_bs_rho, opt_bs_rho, NULL, NULL, NULL, NULL, 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 }, GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_BASIC },
{ "opt_bs_theta", { "opt_bs_theta",
"sfffff|f", "sfffff|f",
help_opt_bs_theta, opt_bs_theta, NULL, NULL, NULL, NULL, 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 }, GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_BASIC },
{ "opt_bs_gamma", { "opt_bs_gamma",
"fffff|f", "fffff|f",
help_opt_bs_gamma, opt_bs_gamma, NULL, NULL, NULL, NULL, 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 }, GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_BASIC },
{ "opt_bs_vega", { "opt_bs_vega",
"fffff|f", "fffff|f",
help_opt_bs_vega, opt_bs_vega, NULL, NULL, NULL, NULL, 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 }, GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_BASIC },
{ "opt_bs_carrycost", { "opt_bs_carrycost",
"sfffff|f", "sfffff|f",
help_opt_bs_carrycost, opt_bs_carrycost, NULL, NULL, NULL, NULL, 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 }, GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_BASIC },
{ "cum_biv_norm_dist", { "cum_biv_norm_dist",
"fff", "fff",
help_cum_biv_norm_dist, cum_biv_norm_dist, NULL, NULL, NULL, NULL, 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 }, GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_NO_TESTSUITE },
{ "opt_garman_kohlhagen", { "opt_garman_kohlhagen",
"sffffff", "sffffff",
help_opt_garman_kohlhagen, opt_garman_kohlhagen, NULL, NULL, NULL, NULL, 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 }, GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_BASIC },
{ "opt_french", { "opt_french",
"sfffffff", "sfffffff",
help_opt_french, opt_french, NULL, NULL, NULL, NULL, help_opt_french, opt_french, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_BASIC }, GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_BASIC },
{ "opt_jump_diff", { "opt_jump_diff",
"sfffffff", "sfffffff",
help_opt_jump_diff, opt_jump_diff, NULL, NULL, NULL, NULL, 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 }, GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_BASIC },
{ "opt_exec", { "opt_exec",
"sfffffff", "sfffffff",
help_opt_exec, opt_exec, NULL, NULL, NULL, NULL, help_opt_exec, opt_exec, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_BASIC }, GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_BASIC },
{ "opt_bjer_stens", { "opt_bjer_stens",
"sffffff", "sffffff",
help_opt_bjer_stens, opt_bjer_stens, NULL, NULL, NULL, NULL, 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 }, GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_BASIC },
{ "opt_miltersen_schwartz", { "opt_miltersen_schwartz",
"sfffffffffffff", "sfffffffffffff",
help_opt_miltersen_schwartz, opt_miltersen_schwartz, NULL, NULL, NULL, NULL, 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 }, GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_BASIC },
{ "opt_baw_amer", { "opt_baw_amer",
"sffffff", "sffffff",
help_opt_baw_amer, opt_baw_amer, NULL, NULL, NULL, NULL, 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 }, GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_BASIC },
{ "opt_rgw", { "opt_rgw",
"fffffff", "fffffff",
help_opt_rgw, opt_rgw, NULL, NULL, NULL, NULL, help_opt_rgw, opt_rgw, NULL, NULL, NULL, NULL,
GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_BASIC }, GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_BASIC },
{ "opt_forward_start", { "opt_forward_start",
"sfffffff", "sfffffff",
help_opt_forward_start, opt_forward_start, NULL, NULL, NULL, NULL, 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 }, GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_BASIC },
{ "opt_time_switch", { "opt_time_switch",
"sfffffffff", "sfffffffff",
help_opt_time_switch, opt_time_switch, NULL, NULL, NULL, NULL, 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 }, GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_BASIC },
{ "opt_simple_chooser", { "opt_simple_chooser",
"fffffff", "fffffff",
help_opt_simple_chooser, opt_simple_chooser, NULL, NULL, NULL, NULL, 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 }, GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_BASIC },
{ "opt_complex_chooser", { "opt_complex_chooser",
"fffffffff", "fffffffff",
help_opt_complex_chooser, opt_complex_chooser, NULL, NULL, NULL, NULL, 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 }, GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_BASIC },
{ "opt_on_options", { "opt_on_options",
"sffffffff", "sffffffff",
help_opt_on_options, opt_on_options, NULL, NULL, NULL, NULL, 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 }, GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_BASIC },
{ "opt_extendible_writer", { "opt_extendible_writer",
"sffffffff", "sffffffff",
help_opt_extendible_writer, opt_extendible_writer, NULL, NULL, NULL, NULL, 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 }, GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_UNIQUE_TO_GNUMERIC, GNM_FUNC_TEST_STATUS_BASIC },