Git Product home page Git Product logo

Comments (3)

nicowilliams avatar nicowilliams commented on May 30, 2024

I should explain why this is important.

Libraries aren't used just by programs. Sometimes (often!) libraries are used by other libraries. Ensuring that there is only one call (or non-racing calls) to a library's initializer or finalizer is then impossible. The situation for finalizers is worse because a library might call another's finalizer in its own, but this might happen as a result of a last dlcose(), and if the lower-level library was still in use by other callers in the same process... boom.

For example, jq uses Oniguruma in its libjq.

from oniguruma.

kkos avatar kkos commented on May 30, 2024

For ONIG_STATE_DEC() question.
This is because it avoids that regexp recompile and regexp search rise at the same time.
Regexp recompile API existed in old GNU regex. I supported it for compatibility.
However, I do not support it now. (USE_RECOMPILE_API is not defined.)
So, ONIG_STATE_INC() etc... is empty declarations.

from oniguruma.

kkos avatar kkos commented on May 30, 2024

I have removed all THREAD_ macro in develop branch.

from oniguruma.

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.