simple? c-coding / gnumeric coding style question ...
newbie nullzwei via gnumeric-list <[email protected]> Sun, 5 Sep 2021 19:18:24 +0200
| Newsgroups | gmane.comp.gnome.apps.gnumeric |
|---|---|
| Message-ID | <trinity-f31116ff-ab77-417f-a238-4b9f632c950e-1630862304900@3c-app-gmx-bap16> |
hello @all, i'm not a coder but trying to adapt some routines for small improvements in rounding and am stuck at the following point: in functions.c i have the routine? function? 'gnumeric_rounddown', i'd like to call that function from inside the function 'gnumeric_round' and compare the results. i can call subroutines from goffice, but for those of gnumeric i have no idea. simple call failed with 'implicit declaration', putting a #define in numbers.h resulted in 'type conflicts' 'double' vs. 'GnmFuncEvalInfo', i could - but don't want to - copy the code from rounddown and paste it into round (with modifications), i could - but dont want to - move more functionality of rounddown into goffice (did such with oher calculations and now am able to call them as subroutines), but i think there should be a more elegant way, and one which complies with gnumeric coding style, if available a hint to a sample where such is done with other calculations could be enough, i'm weak in coding but somewhat better in copying and adapting ... TIA for any help or tip ... :-) b. _______________________________________________ gnumeric-list mailing list [email protected] https://mail.gnome.org/mailman/listinfo/gnumeric-list