Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Replace kdbproposal.h #2840
As noted in #2809
In our header (
int elektraFoo (int x); #ifdef ELEKTRA_EXPERIMENTAL int elektraNewFoo(int x, int y); #endif
To use the experimental symbols a user would write:
#define ELEKTRA_EXPERIMENTAL #include <kdbfoo.h>
We could also use an integer similar to
Thank you for writing down the proposal!
I definitely agree that we need to get rid of libproposal. This is a must-have for 1.0.
How far we should go with include magic is a difficult question. If you combine your idea from here and from #2809 we could also build something like:
#define ELEKTRA_USE_VERSION 105 #include <elektra/kdb.h>
and then you get the symbols of elektra 1.5.*, either by
#if ELEKTRA_USE_VERSION >= 105 int symbol_defined_in_105() #endif #if ELEKTRA_USE_VERSION >= 103 #define old_name symbol_renamed_in_103 #endif