rinterface.c and rinterface_extra.c have a lot of function prototypes literally inserted. TODO: - [x] Move these to a common header, and include that header in both files - [ ] Remove unused functions - [ ] Remove unused prototypes - [x] Change `int` return types to `igraph_error_t` where necessary. See https://github.com/igraph/rigraph/pull/1051#issuecomment-1872573532 The current setup is a crash risk and increases maintenance costs. @krlmlr @Antonov548 can either of you do this please?
rinterface.c and rinterface_extra.c have a lot of function prototypes literally inserted.
TODO:
intreturn types toigraph_error_twhere necessary. See fix: check that we receive a scalar when expecting a scalar in C code #1051 (comment)The current setup is a crash risk and increases maintenance costs.
@krlmlr @Antonov548 can either of you do this please?