mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-20 23:58:54 +02:00
Ensure that we use @basename@ in the glib-mkenums docs
The documentation for @filename@ is not accurate either.
This commit is contained in:
@@ -153,15 +153,16 @@ The same as <literal>@type@</literal> with all letters uppercased (e.g. <literal
|
|||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><literal>@filename@</literal></term>
|
<term><literal>@filename@</literal></term>
|
||||||
<listitem><para>
|
<listitem><para>
|
||||||
The name of the input file currently being processed (e.g. <literal>foo.h</literal>).
|
The full path of the input file currently being processed (e.g. <literal>/build/environment/project/src/foo.h</literal>).
|
||||||
</para></listitem>
|
</para></listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><literal>@basename@</literal></term>
|
<term><literal>@basename@</literal></term>
|
||||||
<listitem><para>
|
<listitem><para>
|
||||||
The base name of the input file currently being processed (e.g. <literal>foo.h</literal>). Typically
|
The base name of the input file currently being processed (e.g. <literal>foo.h</literal>).
|
||||||
you want to use <literal>@basename@</literal> in place of <literal>@filename@</literal> in your templates, to improve the reproducibility of the build. (Since: 2.22)
|
Typically you want to use <literal>@basename@</literal> in place of <literal>@filename@</literal>
|
||||||
|
in your templates, to improve the reproducibility of the build. (Since: 2.22)
|
||||||
</para></listitem>
|
</para></listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
</variablelist>
|
</variablelist>
|
||||||
@@ -448,7 +449,7 @@ G_BEGIN_DECLS
|
|||||||
|
|
||||||
/*** BEGIN file-production ***/
|
/*** BEGIN file-production ***/
|
||||||
|
|
||||||
/* enumerations from "@filename@" */
|
/* enumerations from "@basename@" */
|
||||||
/*** END file-production ***/
|
/*** END file-production ***/
|
||||||
|
|
||||||
/*** BEGIN value-header ***/
|
/*** BEGIN value-header ***/
|
||||||
@@ -473,7 +474,7 @@ file, similar to this:
|
|||||||
/*** END file-header ***/
|
/*** END file-header ***/
|
||||||
|
|
||||||
/*** BEGIN file-production ***/
|
/*** BEGIN file-production ***/
|
||||||
/* enumerations from "@filename@" */
|
/* enumerations from "@basename@" */
|
||||||
/*** END file-production ***/
|
/*** END file-production ***/
|
||||||
|
|
||||||
/*** BEGIN value-header ***/
|
/*** BEGIN value-header ***/
|
||||||
|
Reference in New Issue
Block a user