Coder Social home page Coder Social logo

Comments (8)

dignifiedquire avatar dignifiedquire commented on August 20, 2024 1

from deltachat-core-rust.

ralphtheninja avatar ralphtheninja commented on August 20, 2024

Do you mean types used internally in a function or can this be done in functions that also return std::c_int that are used as bools? For example dc_aheader_set_from_string()

from deltachat-core-rust.

ralphtheninja avatar ralphtheninja commented on August 20, 2024

I've made some notes in the code on some functions that return int but that should return bool instead. Grep for TODO and bool.

from deltachat-core-rust.

Hocuri avatar Hocuri commented on August 20, 2024

I'll try that, sounds like a good "first issue".

just need to cast the bools to ints when using them in the public interface in deltachat-ffi/src/lib.rs

So, the API of lib.rs must not be changed? Like,
pub unsafe extern "C" fn dc_msg_has_location(msg: *mut dc_msg::dc_msg_t) -> libc::c_int?
must still return c_int?

from deltachat-core-rust.

ralphtheninja avatar ralphtheninja commented on August 20, 2024

Yes.

from deltachat-core-rust.

Hocuri avatar Hocuri commented on August 20, 2024

Now I did around 15 and there are still around 70 left, and my motivation is decreasing... When and if I continue I'll ping here to avoid that someone else is working on it at the same time.

from deltachat-core-rust.

hpk42 avatar hpk42 commented on August 20, 2024

from deltachat-core-rust.

hpk42 avatar hpk42 commented on August 20, 2024

conversion to bool has happened in many places and is general practise now, no issue needed.

from deltachat-core-rust.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.