Workable split of library
Rather than trying to force things in via library constructors and weak symbols and --whole-archive and pkg-config tricks, just add new functions ncdirect_core_init() and notcurses_core_init(). libnotcurses has ncdirect_init() and notcurses_init(), which pass through to these. apps linking against notcurses-core ought use the _core_ variants directly. This gets exactly the linkage we want, everywhere. Convert many PoCs to _core_ variants. #1301 Signed-off-by: nick black <dankamongmen@gmail.com>pull/1307/head
parent
fb85bb9a53
commit
6bd288f056
@ -0,0 +1,10 @@
|
||||
#include "notcurses/direct.h"
|
||||
#include "internal.h"
|
||||
|
||||
ncdirect* ncdirect_init(const char* termtype, FILE* outfp, uint64_t flags){
|
||||
return ncdirect_core_init(termtype, outfp, flags);
|
||||
}
|
||||
|
||||
notcurses* notcurses_init(const notcurses_options* opts, FILE* outfp){
|
||||
return notcurses_core_init(opts, outfp);
|
||||
}
|
Loading…
Reference in New Issue