search for: hashstyl

Displaying 20 results from an estimated 34 matches for "hashstyl".

Did you mean: hashstyle
2017 Mar 31
0
[PATCH 1/3] perl: Add =encoding to Sys::Guestfs man page.
...wstat 256, 0x100) Failed 1/1 subtests --- generator/perl.ml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/generator/perl.ml b/generator/perl.ml index 3a87f1634..d1b4763b8 100644 --- a/generator/perl.ml +++ b/generator/perl.ml @@ -664,6 +664,8 @@ and generate_perl_pm () = generate_header HashStyle LGPLv2plus; pr "\ +=encoding utf8 + =pod =head1 NAME -- 2.12.0
2016 May 19
0
[PATCH 3/3] fish: generate test-prep.sh with generator
...erator/fish.ml index 646674d..980f55f 100644 --- a/generator/fish.ml +++ b/generator/fish.ml @@ -1106,3 +1106,36 @@ event_bitmask_of_event_set (const char *arg, uint64_t *eventset_r) return 0; } " + +and generate_fish_test_prep_sh () = + pr "#!/bin/bash -\n"; + generate_header HashStyle GPLv2plus; + + let all_disks = sprintf "prep{1..%d}.img" (List.length prepopts) in + + pr "\ +set -e + +rm -f %s + +$VG guestfish \\ +" all_disks; + + let vg_count = ref 0 in + + iteri ( + fun i (name, _, _, _) -> + let params = [name] in + let params = +...
2019 Aug 14
0
[libnbd PATCH 2/2] docs: Drop docs/Makefile.inc from git
...un autoreconf. +(* We generate a fragment of Makefile.am containing the list + * of generated functions, used in rules for building the manual + * pages. We exploit GNU make's sinclude to use this file without + * upsetting automake. *) let generate_docs_Makefile_inc () = generate_header HashStyle; diff --git a/.gitignore b/.gitignore index 4109865..ccbbc14 100644 --- a/.gitignore +++ b/.gitignore @@ -39,6 +39,7 @@ Makefile.in /depcomp /docs/*.3 /docs/*.pod +/docs/Makefile.inc !/docs/libnbd.pod !/docs/nbd_close.3 !/docs/nbd_create.pod -- 2.20.1
2019 Aug 15
1
[PATCH libnbd] docs: Change docs/Makefile.inc back to a regular include, readd to git.
...ss \ + nbd_supports_tls \ + nbd_supports_uri \ + $(NULL) diff --git a/generator/generator b/generator/generator index 6cc06cc..437f432 100755 --- a/generator/generator +++ b/generator/generator @@ -3766,7 +3766,7 @@ let generate_lib_api_c () = let generate_docs_Makefile_inc () = generate_header HashStyle; - pr "api_built += \\\n"; + pr "api_built = \\\n"; List.iter ( fun (name, _) -> pr "\tnbd_%s \\\n" name; -- 2.22.0
2019 Jul 27
3
[PATCH libnbd] lib: Use symbol versions.
This patch adds support for symbol versions. It is based on what libvirt does. The generated syms file looks like: LIBNBD_1.0 { global: nbd_...; nbd_...; local: *; }; In a future stable 1.2 release, new symbols would go into a new section which would look like this: LIBNBD_1.2 { global: nbd_new_symbol; nbd_another_new_symbol; local: *; } LIBNBD_1.0; In my testing the
2019 Aug 14
3
[libnbd PATCH 0/2] Drop generated file from git
Rich recently patched things to generate one man page per function rather than libnbd-api.3 (nice), but in doing so got stumped by a problem with a fresh git clone (automake fails for any 'include' directive that does not already exist). I've figured out how to hack around it, but the hack requires GNU make. We already use GNU make constructs elsewhere (such as $(wildcard)), but
2012 Apr 26
1
[PATCH] gobject: Move headers into a subdirectory
...uot;; - pr " * SECTION:%s\n" file; + pr " * SECTION:%s\n" filename; (match title with | Some title -> @@ -188,19 +187,20 @@ let output_source filename ?(title=None) ?(shortdesc=None) ?(longdesc=None) f = let generate_gobject_makefile () = generate_header HashStyle GPLv2plus; let headers = - List.map (function n -> sprintf "guestfs-gobject-%s.h" n) output_filenames + List.map + (function n -> sprintf "include/guestfs-gobject/%s.h" n) output_filenames in let sources = - List.map (function n -> sprintf "...
2019 May 28
0
[PATCH] api: Add a special type for the flags argument.
...Flags _ :: xs + | xs -> + if List.exists (function Flags _ -> true | _ -> false) xs then + failwithf "%s: Flags must appear in final argument position only" + name + ) handle_calls + let generate_lib_libnbd_syms () = generate_header HashStyle; @@ -2517,6 +2533,7 @@ let rec name_of_arg = function | BytesPersistIn (n, len) -> [n; len] | BytesPersistOut (n, len) -> [n; len] | Callback (n, _) -> [n] +| Flags n -> [n] | Int n -> [n] | Int64 n -> [n] | Opaque n -> [n] @@ -2548,6 +2565,7 @@ let rec print_c_arg_lis...
2019 May 28
2
[PATCH] api: Add a special type for the flags argument.
This applies on top of patches 1 & 2 here (instead of patch 3): https://www.redhat.com/archives/libguestfs/2019-May/msg00206.html https://www.redhat.com/archives/libguestfs/2019-May/msg00207.html Rich.
2011 Jun 28
13
[PATCH hivex 02/14] maint: remove unnecessary test-before-free
From: Jim Meyering <meyering at redhat.com> * lib/hivex.c (hivex_node_set_value): Remove unnecessary test-before-free. --- lib/hivex.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/lib/hivex.c b/lib/hivex.c index d042f4f..a72fa77 100644 --- a/lib/hivex.c +++ b/lib/hivex.c @@ -2748,8 +2748,7 @@ hivex_node_set_value (hive_h *h, hive_node_h node, leave_partial:
2015 Oct 05
1
[PATCH] Fix shebang in perl scripts
...358ff1..0959704 100644 --- a/generator/bindtests.ml +++ b/generator/bindtests.ml @@ -370,11 +370,12 @@ let () = pr "print_endline \"EOF\"\n" and generate_perl_bindtests () = - pr "#!/usr/bin/perl -w\n"; + pr "#!/usr/bin/env perl\n"; generate_header HashStyle GPLv2plus; pr "\ use strict; +use warnings; use Sys::Guestfs; diff --git a/perl/examples/create_disk.pl b/perl/examples/create_disk.pl index 0b9fa8d..3b40683 100755 --- a/perl/examples/create_disk.pl +++ b/perl/examples/create_disk.pl @@ -1,8 +1,9 @@ -#!/usr/bin/perl -w +#!/usr/bin...
2014 Sep 20
3
[PATCH v2 0/3] tests: Introduce test harness for running tests.
This has got to the stage where it actually works, both for running the tests in-tree and installed. The 'test-harness' script has become rather over-complex in the process however. Rich.
2012 Mar 28
1
[PATCH] Split gobject sources into 1 file per class
This patch replaces patches 14 and 15 from my previous series. The gtk-doc output is now reasonable, and we can rely on an automatically generated guestfs-sections.txt. Matt
2016 Feb 23
0
[PATCH 1/4] generator: Add interfaces to all modules.
...se for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + *) + +type comment_style = + CStyle | CPlusPlusStyle | HashStyle | OCamlStyle | HaskellStyle + | ErlangStyle | LuaStyle | PODStyle +type license = GPLv2plus | LGPLv2plus + +val progress_message : string + +val protocol_limit_warning : string + +val deprecation_notice : ?prefix:string -> ?replace_underscores:bool -> Types.action -> string option + +val...
2012 Oct 30
5
[PATCH v3 0/5] Add symbol versioning.
This is a simpler patch series to add symbol versioning. I have pushed patches 1-3 upstream. Rich.
2013 Feb 04
1
[PATCH] generator: Add visibility to action struct
...nal_functions and generate_java_struct_return typ jtyp cols = pr " cl = (*env)->FindClass (env, \"com/redhat/et/libguestfs/%s\");\n" jtyp; @@ -1190,7 +1190,7 @@ and generate_java_struct_list_return typ jtyp cols = and generate_java_makefile_inc () = generate_header HashStyle GPLv2plus; - let jtyps = List.map (fun { s_camel_name = jtyp } -> jtyp) structs in + let jtyps = List.map (fun { s_camel_name = jtyp } -> jtyp) external_structs in let jtyps = List.sort compare jtyps in pr "java_built_sources = \\\n"; @@ -1200,7 +1200,7 @@ and generate_...
2016 May 19
6
[PATCH 0/3] misc tests-only changes
Hi, small series with small improvements to the tests. Pino Toscano (3): tests: specify the image format when possible tests: remove remaining relative paths to binaries fish: generate test-prep.sh with generator .gitignore | 1 + align/test-virt-alignment-scan.sh | 2 +- cat/Makefile.am | 2 +- cat/test-virt-cat.sh
2016 Feb 23
7
[PATCH 0/4] Various tweaks to the generator.
Use interfaces files (*.mli files) instead of exporting all symbols randomly. Change the 'file is generated' warnings at the top of generated files so they accurately describe which source file generates each output file. Rich.
2014 Oct 03
0
[PATCH v3] tests: Introduce test harness for running tests.
...ranklin Street, Fifth Floor, Boston, MA 02110-1301 USA + *) + +(* Please read generator/README first. *) + +open Printf + +open Types +open Tests +open Utils +open Pr +open Docstrings + +(* Generate the tests.mk files in each subdirectory. *) +let generate_tests_mk dir tests () = + generate_header HashStyle GPLv2plus; + + let all_test_files = + tests.check @ tests.check_fast @ tests.check_slow @ tests.check_local_guests + in + + pr "localtestsdir = $(alltestsdir)/%s\n" dir; + + if tests.check_data <> [] then ( + pr "\n"; + pr "localtests_DATA ="; +...
2014 Oct 05
0
[PATCH v5 1/7] tests: Introduce test harness for running tests.
...ranklin Street, Fifth Floor, Boston, MA 02110-1301 USA + *) + +(* Please read generator/README first. *) + +open Printf + +open Types +open Tests +open Utils +open Pr +open Docstrings + +(* Generate the tests.mk files in each subdirectory. *) +let generate_tests_mk dir tests () = + generate_header HashStyle GPLv2plus; + + pr "localtestsdir = $(alltestsdir)/%s\n" dir; + + if tests.check_data <> [] then ( + pr "\n"; + pr "localtests_DATA ="; + List.iter (fun n -> pr " \\\n\t%s" n) (List.sort compare tests.check_data); + pr "\n"; +...