search for: copyright_years

Displaying 8 results from an estimated 8 matches for "copyright_years".

2018 Aug 22
4
[PATCH] generator: Do not claim copyright for future years
...tions(-) diff --git a/generator/docstrings.ml b/generator/docstrings.ml index fa7b1668a..b480d036e 100644 --- a/generator/docstrings.ml +++ b/generator/docstrings.ml @@ -68,9 +68,7 @@ let version_added = function Some (sprintf "%d.%d.%d" major minor release) | _ -> None -let copyright_years = - let this_year = 1900 + (localtime (time ())).tm_year in - if this_year > 2009 then sprintf "2009-%04d" this_year else "2009" +let copyright_years = "2009-2018" (* Generate a header block in a number of standard styles. *) type comment_style = -- 2.16.4
2016 Mar 18
0
Fwd: libguestfs patch
...================================================================ --- libguestfs-1.26.10.orig/generator/docstrings.ml +++ libguestfs-1.26.10/generator/docstrings.ml @@ -51,9 +51,7 @@ fact that they are deprecated indicates with correct use of these functions." prefix alt in Some txt -let copyright_years = - let this_year = 1900 + (localtime (time ())).tm_year in - if this_year > 2009 then sprintf "2009-%04d" this_year else "2009" +let copyright_years = "2009-2016" (* Generate a header block in a number of standard styles. *) type comment_style = ----- End for...
2018 Aug 22
0
Re: [PATCH] generator: Do not claim copyright for future years
...rings.ml b/generator/docstrings.ml > index fa7b1668a..b480d036e 100644 > --- a/generator/docstrings.ml > +++ b/generator/docstrings.ml > @@ -68,9 +68,7 @@ let version_added = function > Some (sprintf "%d.%d.%d" major minor release) > | _ -> None > > -let copyright_years = > - let this_year = 1900 + (localtime (time ())).tm_year in > - if this_year > 2009 then sprintf "2009-%04d" this_year else "2009" > +let copyright_years = "2009-2018" > > (* Generate a header block in a number of standard styles. *) > type c...
2015 May 28
4
[PATCH 1/4] generator: move api_version to a common version_added
...e functions." prefix alt in Some txt +let version_added = function + | { added = (0, 0, release) } -> Some (sprintf "0.%d" release) + | { added = ((0|1) as major, minor, release) } -> + Some (sprintf "%d.%d.%d" major minor release) + | _ -> None + let copyright_years = let this_year = 1900 + (localtime (time ())).tm_year in if this_year > 2009 then sprintf "2009-%04d" this_year else "2009" -- 2.1.0
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.
2019 Jul 29
1
Re: [PATCH] Rust bindings: Add Rust bindings
...lusPlusStyle -> pr "// "; "//" @@ -102,7 +102,9 @@ let generate_header ?(inputs = []) ?emacs_mode comment license = ); pr "%s ANY CHANGES YOU MAKE TO THIS FILE WILL BE LOST.\n" c; pr "%s\n" c; - pr "%s Copyright (C) %s Red Hat Inc.\n" c copyright_years; + List.iter (fun x -> + pr "%s Copyright (C) %s %s\n" c copyright_years x; + ) copywrites; pr "%s\n" c; (match license with | GPLv2plus -> diff --git a/generator/docstrings.mli b/generator/docstrings.mli index 18d1ae255..e8c13d6ea 100644 --- a/generator...
2019 Jul 26
4
Re: [PATCH] Rust bindings: Add Rust bindings
Hi Hiroyuki, sorry for the late reply. Most of the work is definitely nice! There are few notes below, although they are not big issues. I will check this patch once more on monday, especially the rust parts. Otherwise, I'd say that we are close to merging this :) On Tuesday, 23 July 2019 10:37:17 CEST Hiroyuki Katsura wrote: > From: Hiroyuki_Katsura
2016 Feb 23
0
[PATCH 1/4] generator: Add interfaces to all modules.
...| 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/generator/erlang.mli new file mode 100644 index 0000000..9d78ef5 --- /dev/null +++ b/generator/erlang.mli @@ -0,0 +1,20 @@ +(* libgue...