search for: output_to

Displaying 20 results from an estimated 118 matches for "output_to".

2023 Aug 04
1
[libnbd PATCH] golang: Optionally use gofmt on generated .go files
...301 USA *) -let rustfmt = "@RUSTFMT@" +let gofmt = "@GOFMT@" +let rustfmt = "@RUSTFMT@" diff --git a/generator/generator.ml b/generator/generator.ml index c62b0c4f..8c9a585b 100644 --- a/generator/generator.ml +++ b/generator/generator.ml @@ -57,10 +57,15 @@ let output_to "ocaml/NBD.ml" OCaml.generate_ocaml_nbd_ml; output_to "ocaml/nbd-c.c" OCaml.generate_ocaml_nbd_c; - output_to "golang/bindings.go" GoLang.generate_golang_bindings_go; - output_to "golang/closures.go" GoLang.generate_golang_closures_go; - output_to &quo...
2015 Feb 10
1
[PATCH] php: add a simple bindtests test
...do it this way to * ensure there is parity in testing bindings across all languages. *) diff --git a/generator/main.ml b/generator/main.ml index 436d72d..abeae0c 100644 --- a/generator/main.ml +++ b/generator/main.ml @@ -160,6 +160,7 @@ Run it from the top source directory using the command output_to "csharp/Libguestfs.cs" generate_csharp; output_to "php/extension/php_guestfs_php.h" generate_php_h; output_to "php/extension/guestfs_php.c" generate_php_c; + output_to "php/extension/tests/guestfs_php_bindtests.phpt" generate_php_bindtests; output_t...
2017 Jan 25
0
[PATCH v2 1/7] lib: Share common protocol and errnostring libraries with the library and daemon.
...y functions that don't have any diff --git a/generator/main.ml b/generator/main.ml index 846ab16..cef4a9b 100644 --- a/generator/main.ml +++ b/generator/main.ml @@ -94,7 +94,11 @@ Run it from the top source directory using the command perror "lock: BUGS" exn; exit 1); - output_to "src/guestfs_protocol.x" generate_xdr; + output_to "common/errnostring/errnostring-gperf.gperf" + generate_errnostring_gperf; + output_to "common/errnostring/errnostring.c" generate_errnostring_c; + output_to "common/errnostring/errnostring.h" g...
2016 May 19
0
[PATCH 3/3] fish: generate test-prep.sh with generator
...te_fish_prep_options_pod : unit -> unit +val generate_fish_test_prep_sh : unit -> unit diff --git a/generator/main.ml b/generator/main.ml index 8d08d83..91ca4d7 100644 --- a/generator/main.ml +++ b/generator/main.ml @@ -124,6 +124,7 @@ Run it from the top source directory using the command output_to "fish/prepopts.c" generate_fish_prep_options_c; output_to "fish/prepopts.h" generate_fish_prep_options_h; output_to "fish/guestfish-prepopts.pod" generate_fish_prep_options_pod; + output_to ~perm:0o555 "fish/test-prep.sh" generate_fish_test_prep_sh;...
2017 Jun 19
2
Re: [PATCH v7 10/13] utils: Split out structs cleanups and printing into common/structs.
...ne 2017 15:31:26 CEST Richard W.M. Jones wrote: > These won't be used by the daemon, so interferes with us using > common/utils in the daemon, so they are moved to a different library. > --- I checked it again, and the daemon does use structs cleanups: $ cat generator/main.ml [...] output_to "daemon/structs-cleanups.c" Daemon.generate_daemon_structs_cleanups_c; output_to "daemon/structs-cleanups.h" Daemon.generate_daemon_structs_cleanups_h; See commits 32f0f9b032db592b50c4a4b0da29ef0de0478633 and 31fb6e20418e8f1b0647c92af0464f2009e9a997....
2019 Dec 12
5
[PATCH 0/4] Various small build fixes
*** BLURB HERE? *** Pino Toscano (4): build: stop shipping files generated by configure docs: fix out-of-source documentation build generator: do not generate mlv2v files when not needed perl: fix path to Build.PL docs/Makefile.am | 4 ++-- generator/main.ml | 11 +++++++---- perl/Makefile.am | 2 +- python/Makefile.am | 3 ++- tests/daemon/Makefile.am |
2006 Sep 08
1
A quick guide to Mocha
Hello :) Having just gone through the (admittedly simple) API of Mocha to learn how it works, I wrote a quick guide (190 lines) to help others get up to speed. I''ve attached it as RDOC and as HTML. It is a first draft - please help me improve by giving feedback ! Contents : Overview - Quick overview of Mocha Unit testing, mock object and stubs - Very quick introduction to mock
2015 Oct 23
1
[PATCH v2] perl: Switch to using Module::Build.
version 2: - Fixed handling of clean & distclean. - Use 'all-local' instead of 'all'. - Don't use abs_* paths in Build.PL.in. Rich.
2015 Oct 23
1
[PATCH] perl: Switch to using Module::Build.
Switch from 'ExtUtils::MakeMaker' to 'Module::Build'. There's not really a huge difference here. The interfacing gymnastics that we have to do to make Makefile.am and Module::Build talk to each other is probably a little bit simpler. I compared the output of 'make install' before and after, and there's not much difference. 'perllocal.pod' is not
2016 Feb 12
0
[PATCH] php: restructure and expand tests
...ests/guestfs_090_bindtests.phpt /php/extension/tmp-php.ini /pick-guests.pl /po-docs/*/*.1 diff --git a/generator/main.ml b/generator/main.ml index b209511..ca882b1 100644 --- a/generator/main.ml +++ b/generator/main.ml @@ -158,7 +158,7 @@ Run it from the top source directory using the command output_to "csharp/Libguestfs.cs" generate_csharp; output_to "php/extension/php_guestfs_php.h" generate_php_h; output_to "php/extension/guestfs_php.c" generate_php_c; - output_to "php/extension/tests/guestfs_php_bindtests.phpt" generate_php_bindtests; + output_t...
2015 Oct 23
1
[PATCH v3] perl: Switch to using Module::Build.
version 3: - Split requires into configure_requires/etc. - Use lists for extra_compiler_flags, extra_linker_flags. - Suppress .packlist file. - Set the release_status field. Rich.
2015 Aug 24
3
[PATCH 1/3] ocaml: dynamically generate the content of Guestfs.Errno
...ctions.c +/ocaml/guestfs-c-errnos.c /ocaml/guestfs.ml /ocaml/guestfs.mli /ocamlinit-stamp diff --git a/generator/main.ml b/generator/main.ml index 94f0d09..1e0e7d6 100644 --- a/generator/main.ml +++ b/generator/main.ml @@ -125,6 +125,7 @@ Run it from the top source directory using the command output_to "ocaml/guestfs.mli" generate_ocaml_mli; output_to "ocaml/guestfs.ml" generate_ocaml_ml; output_to "ocaml/guestfs-c-actions.c" generate_ocaml_c; + output_to "ocaml/guestfs-c-errnos.c" generate_ocaml_c_errnos; output_to "ocaml/bindtests.ml"...
2017 Jan 25
0
[PATCH v2 2/7] lib: Move utilities to new directory common/utils.
.../libutils.la \ $(top_builddir)/src/libguestfs.la \ $(LIBXML2_LIBS) \ $(LIBVIRT_LIBS) \ diff --git a/generator/main.ml b/generator/main.ml index cef4a9b..b1007f6 100644 --- a/generator/main.ml +++ b/generator/main.ml @@ -99,10 +99,15 @@ Run it from the top source directory using the command output_to "common/errnostring/errnostring.c" generate_errnostring_c; output_to "common/errnostring/errnostring.h" generate_errnostring_h; output_to "common/protocol/guestfs_protocol.x" generate_xdr; + output_to "common/utils/guestfs-internal-frontend-cleanups.h"...
2019 Dec 12
8
[PATCH v2 0/6] Various small build fixes
*** BLURB HERE? *** Pino Toscano (6): build: stop shipping files generated by configure docs: fix out-of-source documentation build generator: do not generate mlv2v files when not needed perl: fix path to Build.PL rust: fix path to lib.rs rust: fix list of generator-built files daemon/Makefile.am | 8 ++++++-- docs/Makefile.am | 4 ++-- generator/main.ml | 11
2012 Apr 26
1
[PATCH] gobject: Move headers into a subdirectory
...fs-gobject-%s.h" filename in + let header = sprintf "gobject/include/guestfs-gobject/%s.h" filename in let guard = Str.global_replace (Str.regexp "-") "_" filename in let guard = "GUESTFS_GOBJECT_" ^ String.uppercase guard ^ "_H__" in output_to header (fun () -> @@ -152,15 +152,14 @@ G_END_DECLS ) let output_source filename ?(title=None) ?(shortdesc=None) ?(longdesc=None) f = - let file = sprintf "guestfs-gobject-%s" filename in - let source = sprintf "gobject/%s.c" file in + let source = sprintf "gobj...
2017 Jan 20
5
[PATCH 0/5] Rename src/ to lib/ and move common code to common/
This patch series moves some files and directories around but is only code motion (or supposed to be). A new directory, common/, is created for all of the common code which is currently shared in random ways between parts of the project. And src/ becomes lib/ (the largest change, but mostly mechanical). In full this series makes the following changes: src/libprotocol -> common/protocol
2016 Nov 08
0
[PATCH 2/3] Split internal stuff out of guestfs.h
...internal_frontend_cleanups_h : unit -> unit val generate_linker_script : unit -> unit diff --git a/generator/main.ml b/generator/main.ml index 8d385d1..9016063 100644 --- a/generator/main.ml +++ b/generator/main.ml @@ -96,6 +96,7 @@ Run it from the top source directory using the command output_to "src/guestfs_protocol.x" generate_xdr; output_to "src/guestfs.h" generate_guestfs_h; + output_to "src/guestfs-private.h" generate_guestfs_private_h; output_to "src/guestfs-internal-actions.h" generate_internal_actions_h; output_to "src/guestfs-...
2017 Jun 21
0
[PATCH v8 07/42] common/utils: Move ‘uefi.c’ to ‘lib/’.
...uot;; List.iter ( fun arch -> diff --git a/generator/main.ml b/generator/main.ml index 0e1c01f74..8ff698130 100644 --- a/generator/main.ml +++ b/generator/main.ml @@ -94,7 +94,7 @@ Run it from the top source directory using the command C.generate_client_structs_print_c; output_to "common/utils/structs-print.h" C.generate_client_structs_print_h; - output_to "common/utils/uefi.c" + output_to "lib/uefi.c" UEFI.generate_uefi_c; output_to "lib/guestfs.h" C.generate_guestfs_h; diff --git a/lib/Mak...
2016 Nov 08
4
[PATCH 1/3] generator: c: move internal functions
Move the generate_all_structs and generate_all_headers functions, previously internal within the implementation of generate_guestfs_h, to be usable by other functions in the same "C" module (but not public). Only code motion. --- generator/c.ml | 163 +++++++++++++++++++++++++++++---------------------------- 1 file changed, 82 insertions(+), 81 deletions(-) diff --git a/generator/c.ml
2015 Aug 27
0
[PATCH v4 2/2] fish: add journal-view command
.....639920d 100644 --- a/generator/main.ml +++ b/generator/main.ml @@ -46,6 +46,7 @@ open Golang open Bindtests open Errnostring open Customize +open Journal let perror msg = function | Unix_error (err, _, _) -> @@ -212,6 +213,8 @@ Run it from the top source directory using the command output_to "customize/customize-synopsis.pod" generate_customize_synopsis_pod; output_to "customize/customize-options.pod" generate_customize_options_pod; + output_to "fish/journal.h" generate_journal_h; + (* Generate the list of files generated -- last. *) printf &qu...