From 9fdfd33d30c27acae0d4f70b04ba05580a18965c Mon Sep 17 00:00:00 2001 From: nick black Date: Sat, 10 Apr 2021 09:29:09 -0400 Subject: [PATCH] [cffi] update cell_release to nccell_release --- cffi/src/notcurses/build_notcurses.py | 4 ++-- cffi/src/notcurses/notcurses.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cffi/src/notcurses/build_notcurses.py b/cffi/src/notcurses/build_notcurses.py index fe62c9e09..3f79f69ec 100644 --- a/cffi/src/notcurses/build_notcurses.py +++ b/cffi/src/notcurses/build_notcurses.py @@ -187,8 +187,8 @@ int ncplane_putstr_stained(struct ncplane* n, const char* s); int ncplane_putwstr_stained(struct ncplane* n, const wchar_t* gclustarr); struct ncplane* ncplane_dup(const struct ncplane* n, void* opaque); int cell_load(struct ncplane* n, cell* c, const char* gcluster); -int cell_duplicate(struct ncplane* n, cell* targ, const cell* c); -void cell_release(struct ncplane* n, cell* c); +int nccell_duplicate(struct ncplane* n, cell* targ, const cell* c); +void nccell_release(struct ncplane* n, cell* c); const char* cell_extended_gcluster(const struct ncplane* n, const cell* c); typedef struct palette256 { // We store the RGB values as a regular ol' channel diff --git a/cffi/src/notcurses/notcurses.py b/cffi/src/notcurses/notcurses.py index e644c90a9..2fd6c0de3 100755 --- a/cffi/src/notcurses/notcurses.py +++ b/cffi/src/notcurses/notcurses.py @@ -94,7 +94,7 @@ class Cell: self.c.gcluster = egc # FIXME need use cell_load def __del__(self): - lib.cell_release(self.ncp.getNcplane(), self.c) + lib.nccell_release(self.ncp.getNcplane(), self.c) def setFgRGB(self, r, g, b): self.c.channels = channels_set_fg_rgb8(self.c.channels, r, g, b)