search for: replace_underscor

Displaying 7 results from an estimated 7 matches for "replace_underscor".

Did you mean: replace_underscores
2016 Feb 26
1
[PATCH] doc: add info on per-function needed feature
...nerator/fish.ml index 0cbc781..864f65d 100644 --- a/generator/fish.ml +++ b/generator/fish.ml @@ -897,9 +897,17 @@ Guestfish will prompt for these separately.\n\n"; if f.protocol_limit_warning then pr "%s\n\n" protocol_limit_warning; - match deprecation_notice ~replace_underscores:true f with + (match deprecation_notice ~replace_underscores:true f with | None -> () | Some txt -> pr "%s\n\n" txt + ); + + (match f.optional with + | None -> () + | Some opt -> + pr "This command depends on the feature C&l...
2017 Mar 03
2
[PATCH] generator: Allow actions to be deprecated with no replacement.
...-git a/generator/docstrings.ml b/generator/docstrings.ml index acfdb53..2ce595d 100644 --- a/generator/docstrings.ml +++ b/generator/docstrings.ml @@ -39,8 +39,9 @@ of somewhere between 2MB and 4MB. See L<guestfs(3)/PROTOCOL LIMITS>." let deprecation_notice ?(prefix = "") ?(replace_underscores = false) = function - | { deprecated_by = None } -> None - | { deprecated_by = Some alt } -> + | { deprecated_by = Not_deprecated } -> None + + | { deprecated_by = Replaced_by alt } -> let alt = if replace_underscores then String.replace_char alt '_' '-&...
2016 Dec 08
4
[PATCH] generator: Share Common_utils code.
...rator/docstrings.ml b/generator/docstrings.ml index 9d3fd0b..845ec63 100644 --- a/generator/docstrings.ml +++ b/generator/docstrings.ml @@ -21,6 +21,7 @@ open Unix open Printf +open Common_utils open Types open Utils open Pr @@ -41,7 +42,7 @@ let deprecation_notice ?(prefix = "") ?(replace_underscores = false) = | { deprecated_by = None } -> None | { deprecated_by = Some alt } -> let alt = - if replace_underscores then replace_char alt '_' '-' else alt in + if replace_underscores then String.replace_char alt '_' '-' else alt in le...
2016 Sep 02
6
[PATCH 0/4] generator: Some work to split large C files
By splitting up large C files we can make parallel compiles a bit faster. Rich.
2016 Feb 23
0
[PATCH 1/4] generator: Add interfaces to all modules.
...A + *) + +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 version_added : Types.action -> string option + +val copyright_years : string + +val generate_header : ?extra_inputs:string list -> ?emacs_mode:string -> comment_style -> license -> unit diff --git a/generator/erlang.mli b/generato...
2013 Feb 04
1
[PATCH] generator: Add visibility to action struct
...all_functions_sorted in + let fishdoc_functions_sorted = + List.filter is_documented fish_functions_sorted + in let rex = Str.regexp "C<guestfs_\\([^>]+\\)>" in @@ -895,7 +881,7 @@ Guestfish will prompt for these separately.\n\n"; match deprecation_notice ~replace_underscores:true f with | None -> () | Some txt -> pr "%s\n\n" txt - ) all_functions_sorted + ) fishdoc_functions_sorted (* Generate documentation for guestfish-only commands. *) and generate_fish_commands_pod () = diff --git a/generator/gobject.ml b/generator/gobject.ml i...
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.