Commit dcccb5c9 authored by Morten Welinder's avatar Morten Welinder

Make fn-math a plugin.

parent 0c59793b
......@@ -65,6 +65,7 @@ Morten:
* Make fn-eng a plugin.
* Make fn-financial a plugin.
* Make fn-logical a plugin.
* Make fn-math a plugin.
* Make fn-string a plugin.
* Partially untangle remaining fn-files.
......
......@@ -647,6 +647,7 @@ plugins/fn-date/Makefile
plugins/fn-eng/Makefile
plugins/fn-financial/Makefile
plugins/fn-logical/Makefile
plugins/fn-math/Makefile
plugins/fn-string/Makefile
plugins/derivatives/Makefile
plugins/sc/Makefile
......
......@@ -51,7 +51,7 @@ endif
SUBDIRS_FILE_FORMATS = $(EXCEL_DIR) lotus-123 oleo sc sylk xbase html dif \
xml_sax applix mps $(GNOME_GLOSSARY_DIR) $(PSICONV_DIR)
SUBDIRS_FUNCTIONS = numtheory fn-date fn-eng fn-logical fn-string derivatives \
SUBDIRS_FUNCTIONS = numtheory fn-date fn-eng fn-logical fn-math fn-string derivatives \
$(PYTHON_DIR) $(PERL_DIR) $(GUILE_DIR) $(GB_DIR) \
$(GDA_DIR) $(PYFUNC_DIR)
......
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_fnmathdir = $(gnumeric_plugindir)/fn-math
xmldir = $(gnumeric_plugin_fnmathdir)
gnumeric_plugin_fnmath_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_fnmath">
<information>
<_name>Math Functions</_name>
<_description>Mathematical Functions</_description>
</information>
<loader type="g_module">
<attribute name="module_file" value="plugin.la"/>
</loader>
<services>
<service type="function_group" id="math">
<_category>Maths / Trig.</_category>
<functions>
<function name="abs"/>
<function name="acos"/>
<function name="acosh"/>
<function name="asin"/>
<function name="asinh"/>
<function name="atan"/>
<function name="atanh"/>
<function name="atan2"/>
<function name="cos"/>
<function name="cosh"/>
<function name="countif"/>
<function name="ceil"/>
<function name="ceiling"/>
<function name="degrees"/>
<function name="even"/>
<function name="exp"/>
<function name="fact"/>
<function name="factdouble"/>
<function name="combin"/>
<function name="floor"/>
<function name="gcd"/>
<function name="int"/>
<function name="lcm"/>
<function name="ln"/>
<function name="log"/>
<function name="log2"/>
<function name="log10"/>
<function name="mod"/>
<function name="mround"/>
<function name="multinomial"/>
<function name="odd"/>
<function name="power"/>
<function name="g_product"/>
<function name="quotient"/>
<function name="radians"/>
<function name="rand"/>
<function name="randbernoulli"/>
<function name="randbetween"/>
<function name="randbinom"/>
<function name="randexp"/>
<function name="randnegbinom"/>
<function name="randpoisson"/>
<function name="roman"/>
<function name="round"/>
<function name="rounddown"/>
<function name="roundup"/>
<function name="seriessum"/>
<function name="sign"/>
<function name="sin"/>
<function name="sinh"/>
<function name="sqrt"/>
<function name="sqrtpi"/>
<function name="suma"/>
<function name="sumif"/>
<function name="sumproduct"/>
<function name="sumsq"/>
<function name="sumx2my2"/>
<function name="sumx2py2"/>
<function name="sumxmy2"/>
<function name="tan"/>
<function name="tanh"/>
<function name="trunc"/>
<function name="pi"/>
<function name="mmult"/>
<function name="minverse"/>
<function name="mdeterm"/>
<!-- <function name="logmdeterm"/> -->
</functions>
</service>
</services>
</plugin>
......@@ -21,6 +21,8 @@ plugins/fn-financial/functions.c
plugins/fn-financial/plugin.xml.in
plugins/fn-logical/functions.c
plugins/fn-logical/plugin.xml.in
plugins/fn-math/functions.c
plugins/fn-math/plugin.xml.in
plugins/fn-string/functions.c
plugins/fn-string/plugin.xml.in
plugins/gb/plugin.c
......@@ -181,7 +183,6 @@ src/func-builtin.c
src/functions/fn-database.c
src/functions/fn-information.c
src/functions/fn-lookup.c
src/functions/fn-math.c
src/functions/fn-sheet.c
src/functions/fn-stat.c
src/gnumeric-canvas.c
......
......@@ -36,7 +36,6 @@
static GList *categories = NULL;
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 lookup_functions_init (void);
......@@ -48,7 +47,6 @@ functions_init (void)
{
global_symbol_table = symbol_table_new ();
math_functions_init ();
sheet_functions_init ();
stat_functions_init ();
lookup_functions_init ();
......
......@@ -11,6 +11,5 @@ libfunctions_a_SOURCES = \
fn-database.c \
fn-information.c \
fn-lookup.c \
fn-math.c \
fn-sheet.c \
fn-stat.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