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

Make fn-financial a plugin.

2002-04-13  Morten Welinder  <terra@diku.dk>

	* */*: Make fn-financial a plugin.

	* src/commands.c (cmd_range_list_to_string_utility): Try not to
	allocate gigabytes of memory for no reason.
parent 70cae9ce
2002-04-13 Morten Welinder <terra@diku.dk>
* */*: Make fn-financial a plugin.
* src/commands.c (cmd_range_list_to_string_utility): Try not to
allocate gigabytes of memory for no reason.
2002-04-13 Andreas J. Guelzow <aguelzow@taliesin.ca>
* src/commands.c (cmd_range_to_str_utility) : new
......
......@@ -51,6 +51,7 @@ Morten:
* Plug various little leaks.
* Make fn-date a plugin.
* Make fn-eng a plugin.
* Make fn-financial a plugin.
* Make fn-string a plugin.
--------------------------------------------------------------------------
......
2002-04-13 Morten Welinder <terra@diku.dk>
* */*: Make fn-financial a plugin.
* src/commands.c (cmd_range_list_to_string_utility): Try not to
allocate gigabytes of memory for no reason.
2002-04-13 Andreas J. Guelzow <aguelzow@taliesin.ca>
* src/commands.c (cmd_range_to_str_utility) : new
......
2002-04-13 Morten Welinder <terra@diku.dk>
* */*: Make fn-financial a plugin.
* src/commands.c (cmd_range_list_to_string_utility): Try not to
allocate gigabytes of memory for no reason.
2002-04-13 Andreas J. Guelzow <aguelzow@taliesin.ca>
* src/commands.c (cmd_range_to_str_utility) : new
......
......@@ -643,6 +643,7 @@ plugins/Makefile
plugins/numtheory/Makefile
plugins/fn-date/Makefile
plugins/fn-eng/Makefile
plugins/fn-financial/Makefile
plugins/fn-string/Makefile
plugins/derivatives/Makefile
plugins/sc/Makefile
......
......@@ -513,7 +513,7 @@ static const char *help_opt_bs_vega = {
"opt_bs_call_theta, opt_bs_put_rho, opt_bs_gamma")
};
ModulePluginFunctionInfo derivatives_functions[] = {
const ModulePluginFunctionInfo derivatives_functions[] = {
{"opt_bs_call",
"fffff", "strike, price, volatility, days_to_maturity, rate",
&help_opt_bs_call, func_opt_bs_call, NULL, NULL, NULL },
......
Makefile.in
Makefile
.deps
.libs
*.lo
*.la
plugin.xml
INCLUDES = \
-DGNOMELOCALEDIR=\""$(datadir)/locale"\" \
-I$(top_srcdir)/src -I$(top_builddir)/src \
$(GNUMERIC_CFLAGS)
gnumeric_plugin_fnfinancialdir = $(gnumeric_plugindir)/fn-financial
xmldir = $(gnumeric_plugin_fnfinancialdir)
gnumeric_plugin_fnfinancial_LTLIBRARIES = plugin.la
plugin_la_LDFLAGS = -module -avoid-version
plugin_la_SOURCES = functions.c
xml_in_files = plugin.xml.in
xml_DATA = $(xml_in_files:.xml.in=.xml)
@INTLTOOL_XML_RULE@
EXTRA_DIST = $(xml_in_files)
DISTCLEANFILES = $(xml_DATA)
<?xml version="1.0"?>
<plugin id="Gnumeric_fnfinancial">
<information>
<_name>Financial Functions</_name>
<_description>Interest rate calculations</_description>
</information>
<loader type="g_module">
<attribute name="module_file" value="plugin.la"/>
</loader>
<services>
<service type="function_group" id="financial">
<_category>Financial</_category>
<functions>
<function name="accrint"/>
<function name="accrintm"/>
<function name="amordegrc"/>
<function name="amorlinc"/>
<function name="coupdaybs"/>
<function name="coupdays"/>
<function name="coupdaysnc"/>
<function name="coupncd"/>
<function name="coupnum"/>
<function name="couppcd"/>
<function name="cumipmt"/>
<function name="cumprinc"/>
<function name="db"/>
<function name="ddb"/>
<function name="disc"/>
<function name="dollarde"/>
<function name="dollarfr"/>
<function name="duration"/>
<function name="effect"/>
<function name="euro"/>
<function name="fv"/>
<function name="fvschedule"/>
<function name="intrate"/>
<function name="ipmt"/>
<function name="irr"/>
<function name="ispmt"/>
<function name="mduration"/>
<function name="mirr"/>
<function name="nominal"/>
<function name="nper"/>
<function name="npv"/>
<function name="oddfprice"/>
<function name="oddfyield"/>
<function name="oddlprice"/>
<function name="oddlyield"/>
<function name="pmt"/>
<function name="ppmt"/>
<function name="price"/>
<function name="pricedisc"/>
<function name="pricemat"/>
<function name="pv"/>
<function name="rate"/>
<function name="received"/>
<function name="sln"/>
<function name="syd"/>
<function name="tbilleq"/>
<function name="tbillprice"/>
<function name="tbillyield"/>
<function name="vdb"/>
<function name="xirr"/>
<function name="xnpv"/>
<function name="yield"/>
<function name="yielddisc"/>
<function name="yieldmat"/>
</functions>
</service>
</services>
</plugin>
......@@ -17,6 +17,8 @@ plugins/fn-date/functions.c
plugins/fn-date/plugin.xml.in
plugins/fn-eng/functions.c
plugins/fn-eng/plugin.xml.in
plugins/fn-financial/functions.c
plugins/fn-financial/plugin.xml.in
plugins/fn-string/functions.c
plugins/fn-string/plugin.xml.in
plugins/gb/plugin.c
......@@ -174,7 +176,6 @@ src/format.c
src/formats.c
src/func.c
src/functions/fn-database.c
src/functions/fn-financial.c
src/functions/fn-information.c
src/functions/fn-logical.c
src/functions/fn-lookup.c
......
......@@ -322,7 +322,7 @@ cmd_range_list_to_string_utility (Sheet *sheet, GSList const *ranges)
* There is no need to do this for "types", because that
* will never grow indefinitely
*/
max_width = max_descriptor_width ();
max_width = MAX (3, max_descriptor_width ());
if (strlen (names->str) > max_width) {
/* FIXME: this does not look right for UTF8 !!*/
g_string_truncate (names, max_width - 3);
......
......@@ -38,7 +38,6 @@ static SymbolTable *global_symbol_table = NULL;
extern void math_functions_init (void);
extern void sheet_functions_init (void);
extern void stat_functions_init (void);
extern void finance_functions_init (void);
extern void lookup_functions_init (void);
extern void logical_functions_init (void);
extern void database_functions_init (void);
......@@ -52,7 +51,6 @@ functions_init (void)
math_functions_init ();
sheet_functions_init ();
stat_functions_init ();
finance_functions_init ();
lookup_functions_init ();
logical_functions_init ();
database_functions_init ();
......
......@@ -9,7 +9,6 @@ noinst_LIBRARIES = libfunctions.a
libfunctions_a_SOURCES = \
fn-database.c \
fn-financial.c \
fn-information.c \
fn-logical.c \
fn-lookup.c \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment