Displaying 2 results from an estimated 2 matches for "c_callback".
Did you mean:
s_callback
2020 Sep 08
2
Re: [libnbd PATCH 1/2] generator: Refactor handling of closures in unlocked functions
...; cbargs } ->
> if types then pr "nbd_%s_callback " cbname;
> - pr "%s_callback" cbname
> + pr "%s%s_callback" closure_mark cbname
Perhaps make it type safe?
type closure_mark = AddressOf | Dereference
And then:
pr "%s%c_callback"
(match closure_mark with AddressOf -> '&' | Dereference -> '*')
cbname
...
> @@ -385,7 +386,7 @@ let generate_lib_unlocked_h () =
> pr "\n";
> List.iter (
> fun (name, { args; optargs; ret }) ->
> - print_extern...
2020 Sep 07
4
[libnbd PATCH 0/2] Fix memory leak with closures
As promised in my earlier thread on libnbd completion callback question.
Eric Blake (2):
generator: Refactor handling of closures in unlocked functions
generator: Free closures on failure
docs/libnbd.pod | 2 +-
generator/C.ml | 48 +++++++++++------
generator/C.mli | 1 +
lib/debug.c | 7 +--
lib/opt.c | 31 ++++++-----