search for: not_deprecated

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

2017 Mar 03
2
[PATCH] generator: Allow actions to be deprecated with no replacement.
...ct.ml index eada33c..fd2c07c 100644 --- a/generator/GObject.ml +++ b/generator/GObject.ml @@ -1118,9 +1118,11 @@ guestfs_session_close (GuestfsSession *session, GError **err) ); pr "\n"; (match deprecated_by with - | None -> () - | Some alt -> + | Not_deprecated -> () + | Replaced_by alt -> pr " * Deprecated: In new code, use guestfs_session_%s() instead\n" alt + | Deprecated_no_replacement -> + pr " * Deprecated\n" ); (match version_added f with | None -> () diff --git a/genera...
2017 Mar 03
0
Re: [PATCH] generator: Allow actions to be deprecated with no replacement.
...a/generator/GObject.ml > +++ b/generator/GObject.ml > @@ -1118,9 +1118,11 @@ guestfs_session_close (GuestfsSession *session, GError **err) > ); > pr "\n"; > (match deprecated_by with > - | None -> () > - | Some alt -> > + | Not_deprecated -> () > + | Replaced_by alt -> > pr " * Deprecated: In new code, use guestfs_session_%s() instead\n" alt > + | Deprecated_no_replacement -> > + pr " * Deprecated\n" The "Deprecated" tag needs a text, so I'd just note...
2019 Apr 23
0
[PATCH 7/7] perl: show warnings for deprecated functions
...gt; + c_function; c_optarg_prefix; deprecated_by } -> (match ret with | RErr -> pr "void\n" | RInt _ -> pr "SV *\n" @@ -444,6 +444,16 @@ PREINIT: pr " PPCODE:\n"; ); + (match deprecated_by with + | Not_deprecated -> () + | Replaced_by alt -> + pr " Perl_ck_warner (aTHX_ packWARN(WARN_DEPRECATED),\n"; + pr " \"Sys::Guestfs::%s is deprecated; use Sys::Guestfs::%s instead\");\n" name alt; + | Deprecated_no_replacement -> + pr &qu...
2017 Mar 03
2
[PATCH] generator: java: Don't link to undocumented methods.
...r/java.ml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/generator/java.ml b/generator/java.ml index 83f2e65..732cbe6 100644 --- a/generator/java.ml +++ b/generator/java.ml @@ -299,7 +299,15 @@ public class GuestFS { (match f with | { deprecated_by = Not_deprecated } -> () | { deprecated_by = Replaced_by alt } -> - pr " * @deprecated In new code, use {@link #%s} instead\n" alt + (* Don't link to an undocumented function as javadoc will + * give a hard error. + *) + let f_alt = try L...
2019 Apr 23
8
[PATCH 0/7] Make deprecation warnings more prominent
Since there are deprecated APIs, make sure that users notice they are deprecated in more prominent ways than done so far: - using deprecated C functions now warns by default - it is possible to use the C library making sure no deprecated function is ever used - Python/Ruby/Perl scripts now get warning messages (configured according to their own systems) when deprecated functions are used The
2017 Sep 20
8
[PATCH v2 0/6] Fix OCaml dependencies.
v1 -> v2: - Fixed everything mentioned in patch review. - Libdir module is removed as a separate commit. Rich.
2017 Sep 18
0
[PATCH 2/5] Make sure every *.ml file has a corresponding *.mli file.
...bindings *) - | VDebug (* Exported everywhere, but not documented *) - | VInternal (* Not exported *) + | VPublic + | VPublicNoFish + | VStateTest + | VBindTest + | VDebug + | VInternal type version = int * int * int type deprecated_by = - | Not_deprecated (* function not deprecated *) - | Replaced_by of string (* replaced by another function *) - | Deprecated_no_replacement (* deprecated with no replacement *) + | Not_deprecated + | Replaced_by of string + | Deprecated_no_replacement type impl = - | C...
2017 Sep 18
6
[PATCH 0/5] Fix OCaml dependencies.
This works reliably for me ... Rich.