search for: oarg

Displaying 10 results from an estimated 10 matches for "oarg".

Did you mean: arg
2003 May 14
0
vnconfig(8), bin/45754
...========================== RCS file: /home/ncvs/src/usr.sbin/vnconfig/vnconfig.c,v retrieving revision 1.13.2.6 diff -u -r1.13.2.6 vnconfig.c --- vnconfig.c 7 Mar 2002 12:19:18 -0000 1.13.2.6 +++ vnconfig.c 13 May 2003 09:47:51 -0000 @@ -252,7 +252,7 @@ struct vndisk *vnp; { char *dev, *file, *oarg; - int flags; + int flags, status; struct vn_ioctl vnio; register int rv; char *rdev; @@ -260,7 +260,7 @@ u_long l; int pgsize = getpagesize(); - rv = 0; + status = rv = 0; /* * Prepend "/dev/" to the specified device name, if necessary. @@ -333,6 +333,7 @@ if (flags &...
2019 Aug 09
0
[PATCH libnbd 2/2] generator: Change handling of Flags to be a true optional argument.
...n" name (ocaml_fundecl_to_string args optargs ret); pr "(** %s\n" shortdesc; pr "\n"; @@ -4785,19 +4805,18 @@ external close : t -> unit = \"nbd_internal_ocaml_nbd_close\" "; List.iter ( - fun (name, { args; ret }) -> - let oargs = args_to_ocaml_args args in - pr "external %s : %s\n" name (ocaml_fundecl_to_string oargs ret); + fun (name, { args; optargs; ret }) -> + pr "external %s : %s\n" name (ocaml_fundecl_to_string args optargs ret); pr " = "; (* In OCaml,...
2019 Aug 09
4
[PATCH libnbd 0/2] generator: Preparatory changes to the generator.
These are some simplifications to the generator. They don't probably make much sense on their own, but they are preparatory to better handling of enums, and or'd lists of flags. Rich.
2000 Jan 17
1
lwd patches for "contour"
..._dendwindow, 0, 111, 6, PP_FUNCALL}, *** src/main/plot3d.c.orig Mon Jan 17 11:08:08 2000 --- src/main/plot3d.c Mon Jan 17 13:47:03 2000 *************** *** 396,408 **** } } ! /* contour(x,y,z, levels, col, lty) */ SEXP do_contour(SEXP call, SEXP op, SEXP args, SEXP env) { ! SEXP oargs, c, x, y, z, col, lty; ! int i, j, nx, ny, nc, ncol, nlty; int ltysave, colsave; double atom, zmin, zmax; char *vmax, *vmax0; DevDesc *dd = CurrentDevice(); --- 396,409 ---- } } ! /* contour(x,y,z, levels, col, lty, lwd) */ SEXP do_contour(SEXP call, SEXP o...
2012 Apr 27
4
GSoC xapian node binding
...names: to indicate expected type in docs, prefix with the V8 >> type names & underscore: >> string_n object_n array_n int32_n uint32_n function_n external_n >> boolean_n >> >> Similarly with result objects: { name:v8type } >> >> (I generally use iArg, oArg, ioArg to indicate whether the arg is input, >> output, or both, but since JS functions get a single Arguments object, I >> abandoned that in this binding.) >> >> Should the list-iterator functions take optional start & end arguments to >> allow the user to limit t...
2019 Jul 16
0
[libnbd PATCH 2/2] RFC: generator: Handle shared callbacks in Python
...pr " /* callbacks not implemented yet */\n" | OCamlArg (Path n) | OCamlArg (String n) -> pr " const char *%s = String_val (%sv);\n" n n | OCamlArg (SockAddrAndLen (n, len)) -> @@ -4818,6 +4819,7 @@ let print_ocaml_binding (name, { args; ret }) = ) oargs; (* Create wrapper data for callbacks. *) + (* List.iter ( function | OCamlArg (Opaque n) -> @@ -4836,6 +4838,7 @@ let print_ocaml_binding (name, { args; ret }) = ) | _ -> () ) oargs; + *) let errcode = match ret with @@ -4877,13 +4880,12 @@ let p...
2019 Jul 16
3
[RFC libnbd PATCH 0/2] Start fixing python nbd.pread_structured_callback
Posting now that I got something to compile (at the expense of breaking OCaml bindings), but I'm open to ideas on how to improve it. Eric Blake (2): generator: Tweak print_c_arg_list to take alternate first arg RFC: generator: Handle shared callbacks in Python generator/generator | 556 ++++++++++++++++++++++---------------------- 1 file changed, 280 insertions(+), 276 deletions(-) --
2019 Jul 24
0
[PATCH libnbd 1/3] generator: Change Closure so it describes single callbacks.
...e cbname cbname | OCamlArg (Flags _) -> assert false (* see above *) | OCamlArg (Int n) -> pr " int %s = Int_val (%sv);\n" n n @@ -4975,12 +4888,6 @@ let print_ocaml_binding (name, { args; ret }) = pr " uint64_t %s = Int64_val (%sv);\n" n n ) oargs; - (match has_closures with - | None | Some false -> () - | Some true -> - pr " nbd_add_close_callback (h, free_%s_user_data, user_data);\n" name - ); - let errcode = match ret with | RBool | RErr | RFd | RInt | RInt64 -> pr " int r;\n"; &qu...
2019 Jul 24
8
[PATCH libnbd v2 0/5] lib: Implement closure lifetimes.
v1 was here: https://www.redhat.com/archives/libguestfs/2019-July/thread.html#00231 The changes address everything that Eric picked up in his review of the first two patches. I have also added two more patches (4 and 5) which respectively fix docs and change int status -> unsigned status, as discussed. Passes make, check, check-valgrind. Rich.
2019 Jul 24
6
[PATCH libnbd 0/3] Implement closure lifetimes.
This implements most of what I wrote here: https://www.redhat.com/archives/libguestfs/2019-July/msg00213.html