pantoniou / libfyaml

Fully feature complete YAML parser and emitter, supporting the latest YAML spec and passing the full YAML testsuite.
MIT License
241 stars 74 forks source link

Using streams unbuffered. #36

Closed hapejot closed 3 years ago

hapejot commented 3 years ago

There is a way to use the streams unbuffered, by skipping the stdio provieded buffering.

This causes a completed document from the up-stream can be consumed while still waiting for the next document from up-stream.

pantoniou commented 3 years ago

Addressed by bce6beff3270c760c5173b74c67e449cf52d2526

Just turn on FYPCF_UNBUFFERED and you get non-stdio streams.

Closing for now, let me know if this works for you now.

hapejot commented 3 years ago

Yes, it is working for me now.

The documentation is a little confusing. Your writing about FYPCF_UNBUFFERED, this isn't defined. I had to use FYPCF_DISABLE_BUFFERING instead.

pantoniou commented 3 years ago

Ah, indeed, documentation error; thanks for catching that...

On Mon, Apr 5, 2021 at 6:51 PM hapejot @.***> wrote:

Yes, it is working for me now.

The documentation is a little confusing. Your writing about FYPCF_UNBUFFERED, this isn't defined. I had to use FYPCF_DISABLE_BUFFERING instead.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/pantoniou/libfyaml/pull/36#issuecomment-813466235, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQGJWWFXTIYJEESCXA2V6LTHHL7RANCNFSM4YOEH5HA .