search for: s_is_set

Displaying 4 results from an estimated 4 matches for "s_is_set".

Did you mean: is_set
2020 Mar 17
0
[PATCH libnbd v2 3/3] golang: Add straightforward bindings, without callbacks.
...optargs <> [] then ( + pr "/* Struct carrying optional arguments for %s. */\n" uname; + pr "type Optargs_%s struct {\n" uname; + List.iter ( + fun optarg -> + let fname = go_name_of_optarg optarg in + pr " /* %s field is ignored unless %s_is_set == true. */\n" + fname fname; + pr " %s_is_set bool\n" fname; + pr " %s " fname; + (match optarg with + | OClosure { cbargs } -> pr "func (/*XXX*/)" + | OFlags _ -> pr "uint32" + ); + pr...
2020 Mar 17
5
[PATCH libnbd v2 0/3] Unfinished golang bindings.
These bindings get as far as running very simple connections. However there are many missing parts still: * No callbacks. * No functions which handle buffers (pread/pwrite!) This is posted just for general early interest, not even for review. Rich.
2016 Dec 08
4
[PATCH] generator: Share Common_utils code.
...fun optarg -> @@ -883,19 +884,19 @@ and generate_golang_bindtests () = needs_comma := true; match optarg with | CallOBool (n, v) -> - let n = String.capitalize n in + let n = String.capitalize_ascii n in pr "%s_is_set: true, %s: %b" n n v | CallOInt (n, v) -> - let n = String.capitalize n in + let n = String.capitalize_ascii n in pr "%s_is_set: true, %s: %d" n n v | CallOInt64 (n, v) -> - let n = String.capitaliz...
2020 Mar 24
1
[PATCH libnbd v3] Add Go language bindings (golang) (RHBZ#1814538).
This feature is roughly finished now, although it needs a few more tests and some examples. It's pretty much up to par with all the other bindings, but it lacks a completely safe AIO buffer. It won't stop you from freeing the buffer too early) because golang's GC inexplicably lacks a way to declare a root from C. I can probably do it with a global variable and ref counting on the