Re: Adding function through functions.c



On Sun, 16 Aug 2009 08:36:44 -0600
"Andreas J. Guelzow" <aguelzow pyrshep ca> wrote:

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



Version 1.8.4
Ubuntu 9.04
Anjuta 2.26

Could it be that I'm not testing it correctly by running it in Anjuta?

Attachment: plugin.xml.in
Description: Binary data

Attachment: functions.c
Description: Text Data



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