Skip to content

lib/uloop: pass eof and error to cb - #350

Merged
jow- merged 1 commit into
ucode-lang:masterfrom
yogo1212:uloop_cb_args
Nov 27, 2025
Merged

jow- merged 1 commit into
ucode-lang:masterfrom
yogo1212:uloop_cb_args

Conversation

@yogo1212

@yogo1212 yogo1212 commented Nov 26, 2025 •

Copy link
Copy Markdown
Contributor

Without this patch, the callback is called only with events == 0 when the fd is closed.
Adding the eof and error parameters allows making a more informed decision about what to do with the handle.

Existing programs should continue to function without any changes since excess arguments are dropped by uc_vm_call_function.

@jow-

jow- commented Nov 27, 2025

Copy link
Copy Markdown
Collaborator

LGTM, please add your signoff here as well.

Signed-off-by: Leon M. Busch-George <leon@georgemail.eu>
@jow-
jow- merged commit b3b88ac into ucode-lang:master Nov 27, 2025
2 checks passed
@jow-

jow- commented Nov 27, 2025

Copy link
Copy Markdown
Collaborator

Merged, thanks!

@yogo1212
yogo1212 deleted the uloop_cb_args branch November 27, 2025 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants