Re: Adding function through functions.c



On Sun, 2009-08-16 at 13:58 +0200, Jean Bréfort wrote:
Which gnumeric version are you using? The third field in
GnmFuncDescriptor disappeared at some point in 1.9.x

(at some point == this past Friday)

You might also check that the plugin has been correctly installed and is
loaded.


Le dimanche 16 août 2009 à 13:03 +0200, Vlad Anuchin a écrit :
Hi 

I'm trying to add a function 'pee()' to Gnumeric in functions.c under
fn-math So far:
1) Created both: 'static GnmFuncHelp const help_pee' and static
'GnmValue * gnumeric_pee' (copies of pi() implementation) 2) Added
{ "pee",      "", "",           help_pee, gnumeric_pee, NULL, NULL,
NULL, NULL, GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_COMPLETE,
GNM_FUNC_TEST_STATUS_EXHAUSTIVE } in 'GnmFuncDescriptor const
math_functions[]' 3) Added '<function name="pee"/>' in plugin.xml and
plugin.xml.in

Normally you shouldn't touch plugin.xml, it is created from
plugin.xml.in


Yet, in Gnumeric on '=pee()' '#NAME' is the response. What am I missing?

It doesn't sound like anything is missing.

If you send me your functions.c and  plugin.xml.in I can take a look.

Andreas


-- 
Andreas J. Guelzow <aguelzow pyrshep ca>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]