search for: ret_print

Displaying 2 results from an estimated 2 matches for "ret_print".

Did you mean: get_print
2020 Sep 06
0
[libnbd PATCH 1/3] generator: Introduce REnum/RFlags return types
...-> pr "\"%%d\", ret" + | RBool | RErr | RFd | RInt | REnum (_) -> pr "\"%%d\", ret" | RInt64 | RCookie -> pr "\"%%\" PRIi64 \"\", ret" | RStaticString | RString -> pr "\"%%s\", ret_printable ? ret_printable : \"\"" - | RUInt -> pr "\"%%u\", ret" + | RUInt | RFlags (_) -> pr "\"%%u\", ret" ); pr ");\n"; (match ret with | RStaticString | RString -> pr " free (ret_printable...
2020 Sep 06
8
[libnbd PATCH 0/3] Improve type-safety of ocaml/golang getters
Natural fallout after my recent testsuite additions that fixed a couple of ocaml bugs in the setters. However, on at least the OCaml code, I'm not sure what we should do if a newer libnbd ever returns a bit that an older NBD.mli was not expecting at the time the OCaml compiler ran (see below). I'm also not sure if there is a more efficient way to avoid outputting Val_FOO() converters for