Skip to content

Commit

Permalink
Merge pull request #217 from naokiri/expose_free_preedit
Browse files Browse the repository at this point in the history
Free preedit
  • Loading branch information
naokiri authored Nov 4, 2022
2 parents 0463fe9 + 2fbdb1f commit 487f6f9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "cskk"
# Have to also change the deb package destination filename below
version = "1.0.1"
version = "1.1.0"
authors = ["Naoaki Iwakiri <[email protected]>"]
license = "GPL-3.0-or-later"
edition = "2018"
Expand Down Expand Up @@ -73,7 +73,7 @@ preserve-symlinks = true
# x86_64 specific, depends on cargo-c too.
# Includes development things like static link lib and header files too.
assets = [["assets/**/*", "usr/local/share/libcskk", "644"],
["target/x86_64-unknown-linux-gnu/release/libcskk.so", "usr/local/lib/cskk/libcskk.so.1.0.1", "755"],
["target/x86_64-unknown-linux-gnu/release/libcskk.so", "usr/local/lib/cskk/libcskk.so.1.1.0", "755"],
["deb_assets/libcskk.*", "usr/local/lib/cskk", "777"],
["target/x86_64-unknown-linux-gnu/release/libcskk.a", "usr/local/lib/cskk/", "644"],
["target/x86_64-unknown-linux-gnu/release/cskk.pc", "usr/local/lib/pkgconfig/", "644"],
Expand Down
3 changes: 2 additions & 1 deletion src/capi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,8 @@ fn convert_precomposition_data(precomposition_data: PreCompositionData) -> PreCo
/// # Safety
/// ptrとlengthはskk_context_get_preedit_detailsの返り値でなければならない。
///
pub unsafe extern "C" fn skk_free_preedit_details(ptr: *mut CskkStateInfoFfi, length: c_uint) {
#[no_mangle]
pub unsafe extern "C" fn skk_free_preedit_detail(ptr: *mut CskkStateInfoFfi, length: c_uint) {
if ptr.is_null() {
return;
}
Expand Down

0 comments on commit 487f6f9

Please sign in to comment.