[libhandy/unstable-api: 28/28] doc: Tell to stop acknowledging the API unstability
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libhandy/unstable-api: 28/28] doc: Tell to stop acknowledging the API unstability
- Date: Fri, 7 Aug 2020 06:19:01 +0000 (UTC)
commit f2a27b4f8cf4b1c6505078f63efe08c589f35aed
Author: Adrien Plazas <kekun plazas laposte net>
Date: Thu Jan 9 10:20:45 2020 +0100
doc: Tell to stop acknowledging the API unstability
Let the users know that they can stop defining HANDY_USE_UNSTABLE_API.
doc/build-howto.xml | 41 -----------------------------------------
doc/hdy-migrating-0-0-to-1.xml | 18 ++++++++++++++++++
2 files changed, 18 insertions(+), 41 deletions(-)
---
diff --git a/doc/build-howto.xml b/doc/build-howto.xml
index c7e967d6..a6f731f3 100644
--- a/doc/build-howto.xml
+++ b/doc/build-howto.xml
@@ -119,47 +119,6 @@
</programlisting></informalexample>
</refsect2>
- <refsect2>
- <title>Acknowledge the Instability</title>
-
- <para>
- Since the library is young and is still changing a lot, in order to use
- it you are required to acknowledge that your are using an unstable API.
- To do so, <literal>HANDY_USE_UNSTABLE_API</literal> must be defined for
- compilation to succeed.
- </para>
-
- <para>
- From C code or any compatible language, you can prefix your inclusion of
- the &package_string; header like so:
- </para>
-
- <informalexample><programlisting>
- #define HANDY_USE_UNSTABLE_API
- #include <handy.h>
- </programlisting></informalexample>
-
- <para>
- Including individual headers rather than <literal>handy.h</literal> is
- not recommended.
- </para>
-
- <para>
- You can also acknowledge this with the definition option of your C
- compiler, like <literal>-DHANDY_USE_UNSTABLE_API</literal>. This is
- required from Vala.
- </para>
-
- <para>
- To use libhandy from Vala, you must define the acknowledgment in C via
- <literal>-X -DHANDY_USE_UNSTABLE_API</literal>. If your build system uses
- a two pass compilation and hence your Vala compiler outputs C (Meson,
- Automake, or using the <literal>--ccode</literal> Vala compiler option to
- trigger that) then you must add <literal>-DHANDY_USE_UNSTABLE_API
- </literal> to your C compiler arguments instead.
- </para>
- </refsect2>
-
<refsect2>
<title>Building on macOS</title>
diff --git a/doc/hdy-migrating-0-0-to-1.xml b/doc/hdy-migrating-0-0-to-1.xml
index 01b53d02..70b5e156 100644
--- a/doc/hdy-migrating-0-0-to-1.xml
+++ b/doc/hdy-migrating-0-0-to-1.xml
@@ -332,6 +332,24 @@
</para>
</refsect3>
+ <refsect3>
+ <title>Stop acknowledging the Instability</title>
+ <para>
+ When the library was young and changing a lot, we required you to
+ acknowledge that your are using an unstable API. To do so, you had to
+ define <literal>HANDY_USE_UNSTABLE_API</literal> for compilation to
+ succeed.
+ </para>
+ <para>
+ The API remained stable since many versions, despite this acknowlegment
+ still being required. To reflect that proven stability, the
+ acknowlegment isn't necessary and you can stop defining
+ <literal>HANDY_USE_UNSTABLE_API</literal>, either before including the
+ &package_string; header in C-compatible languages, or with the
+ definition option of your compiler.
+ </para>
+ </refsect3>
+
</refsect2>
</refentry>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]