mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 09:09:03 -04:00
also nckeys
This commit is contained in:
parent
e94707ee28
commit
ac94303a1f
1
cffi/.gitignore
vendored
Normal file
1
cffi/.gitignore
vendored
Normal file
@ -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…
x
Reference in New Issue
Block a user