Adding function through functions.c



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

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

(newbee)



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