search for: optget

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

2019 Feb 25
0
[PATCH 1/3] common/mlpcre: add offset flag for PCRE.matches
...p; m->r != PCRE_ERROR_NOMATCH) { int ret = m->r; free_last_match (m); diff --git a/common/mlpcre/pcre_tests.ml b/common/mlpcre/pcre_tests.ml index 346019c40..f199ad63a 100644 --- a/common/mlpcre/pcre_tests.ml +++ b/common/mlpcre/pcre_tests.ml @@ -18,6 +18,10 @@ open Printf +let optget def = function + | None -> def + | Some v -> v + let compile ?(anchored = false) ?(caseless = false) ?(dotall = false) ?(extended = false) ?(multiline = false) patt = @@ -30,9 +34,9 @@ let compile ?(anchored = false) ?(caseless = false) patt; PCRE.co...
2019 Feb 25
7
[PATCH 0/3] RFC: v2v: add -o json output mode
This series adds a new output mode for virt-v2v, called -o json. It produces local files, just like -o local, although the metadata produced is a JSON file with data that v2v collected in the conversion process. This can be useful for converting to unsupported destinations, still based on QEMU/KVM. In addition to a simple different metadata, it offers a way to relocate the disks, with