also nckeys

pull/2501/head
KristofferC 2 years ago committed by nick black
parent e94707ee28
commit ac94303a1f

1
cffi/.gitignore vendored

@ -0,0 +1 @@
.eggs/

@ -8,6 +8,17 @@
extern "C" {
#endif
#ifdef NOTCURSES_FFI
#define static API
#endif
#ifndef __MINGW32__
#define API __attribute__((visibility("default")))
#else
#define API __declspec(dllexport)
#endif
#define ALLOC __attribute__((malloc)) __attribute__((warn_unused_result))
// Synthesized input events, i.e. any input event we can report that isn't
// representative of some Unicode. This covers both keyboard and mouse events,
// as well as signals and even window events.

@ -2,6 +2,7 @@
// This file is auto generated from tools/generate_ffi.py
#include <notcurses/notcurses.h>
#include <notcurses/direct.h>
#include <notcurses/nckeys.h>
bool nccapability_canchangecolor(const nccapabilities* caps);
bool nccell_bg_default_p(const nccell* cl);

@ -21,6 +21,7 @@ def generate_ffi(notcurses_dir):
f.write("// This file is auto generated from tools/generate_ffi.py\n")
f.write("#include <notcurses/notcurses.h>\n")
f.write("#include <notcurses/direct.h>\n\n")
f.write("#include <notcurses/nckeys.h>\n\n")
for line in lines:
line = line.replace("RESTRICT", "restrict")

Loading…
Cancel
Save