From d92b5067f0af8b34f753e463cc7538466190c2db Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Sun, 13 Nov 2022 21:59:57 +0100 Subject: Revert "sphinx: port .def files to RST" This reverts commit c8874c5e8a7cee2933923c40f4933602da2022fb. --- gcc/d/d-target.def | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'gcc/d') diff --git a/gcc/d/d-target.def b/gcc/d/d-target.def index bfdf4c4..7d999d0 100644 --- a/gcc/d/d-target.def +++ b/gcc/d/d-target.def @@ -32,7 +32,7 @@ HOOK_VECTOR (TARGETDM_INITIALIZER, gcc_targetdm) DEFHOOK (d_cpu_versions, "Declare all environmental version identifiers relating to the target CPU\n\ -using the function ``builtin_version``, which takes a string representing\n\ +using the function @code{builtin_version}, which takes a string representing\n\ the name of the version. Version identifiers predefined by this hook apply\n\ to all modules that are being compiled and imported.", void, (void), @@ -41,7 +41,7 @@ to all modules that are being compiled and imported.", /* Environmental version identifiers relating to the target OS. */ DEFHOOK (d_os_versions, - "Similarly to ``TARGET_D_CPU_VERSIONS``, but is used for versions\n\ + "Similarly to @code{TARGET_D_CPU_VERSIONS}, but is used for versions\n\ relating to the target operating system.", void, (void), hook_void_void) @@ -50,10 +50,10 @@ relating to the target operating system.", DEFHOOK (d_register_cpu_target_info, "Register all target information keys relating to the target CPU using the\n\ -function ``d_add_target_info_handlers``, which takes a\n\ -:samp:`struct d_target_info_spec` (defined in :samp:`d/d-target.h`). The keys\n\ +function @code{d_add_target_info_handlers}, which takes a\n\ +@samp{struct d_target_info_spec} (defined in @file{d/d-target.h}). The keys\n\ added by this hook are made available at compile time by the\n\ -``__traits(getTargetInfo)`` extension, the result is an expression\n\ +@code{__traits(getTargetInfo)} extension, the result is an expression\n\ describing the requested target information.", void, (void), hook_void_void) @@ -61,7 +61,7 @@ describing the requested target information.", /* getTargetInfo keys relating to the target OS. */ DEFHOOK (d_register_os_target_info, - "Same as ``TARGET_D_CPU_TARGET_INFO``, but is used for keys relating to\n\ + "Same as @code{TARGET_D_CPU_TARGET_INFO}, but is used for keys relating to\n\ the target operating system.", void, (void), hook_void_void) @@ -71,25 +71,25 @@ DEFHOOKPOD (d_minfo_section, "Contains the name of the section in which module info references should be\n\ placed. By default, the compiler puts all module info symbols in the\n\ -``\"minfo\"`` section. Define this macro to override the string if a\n\ +@code{\"minfo\"} section. Define this macro to override the string if a\n\ different section name should be used. This section is expected to be\n\ -bracketed by two symbols ``TARGET_D_MINFO_SECTION_START`` and \n\ -``TARGET_D_MINFO_SECTION_END`` to indicate the start and end address of\n\ +bracketed by two symbols @code{TARGET_D_MINFO_SECTION_START} and \n\ +@code{TARGET_D_MINFO_SECTION_END} to indicate the start and end address of\n\ the section, so that the runtime library can collect all modules for each\n\ -loaded shared library and executable. Setting the value to ``NULL``\n\ +loaded shared library and executable. Setting the value to @code{NULL}\n\ disables the use of sections for storing module info altogether.", const char *, "minfo") DEFHOOKPOD (d_minfo_section_start, - "If ``TARGET_D_MINFO_SECTION`` is defined, then this must also be defined\n\ + "If @code{TARGET_D_MINFO_SECTION} is defined, then this must also be defined\n\ as the name of the symbol indicating the start address of the module info\n\ section", const char *, "__start_minfo") DEFHOOKPOD (d_minfo_section_end, - "If ``TARGET_D_MINFO_SECTION`` is defined, then this must also be defined\n\ + "If @code{TARGET_D_MINFO_SECTION} is defined, then this must also be defined\n\ as the name of the symbol indicating the end address of the module info\n\ section", const char *, "__stop_minfo") @@ -99,11 +99,11 @@ section", on declarations with `extern(System)' and `extern(Windows)' linkage. */ DEFHOOK (d_has_stdcall_convention, - "Returns ``true`` if the target supports the stdcall calling convention.\n\ -The hook should also set :samp:`{link_system}` to ``1`` if the ``stdcall``\n\ -attribute should be applied to functions with ``extern(System)`` linkage,\n\ -and :samp:`{link_windows}` to ``1`` to apply ``stdcall`` to functions with\n\ -``extern(Windows)`` linkage.", + "Returns @code{true} if the target supports the stdcall calling convention.\n\ +The hook should also set @var{link_system} to @code{1} if the @code{stdcall}\n\ +attribute should be applied to functions with @code{extern(System)} linkage,\n\ +and @var{link_windows} to @code{1} to apply @code{stdcall} to functions with\n\ +@code{extern(Windows)} linkage.", bool, (unsigned int *link_system, unsigned int *link_windows), hook_bool_uintp_uintp_false) @@ -112,7 +112,7 @@ DEFHOOKPOD (d_templates_always_comdat, "This flag is true if instantiated functions and variables are always COMDAT\n\ if they have external linkage. If this flag is false, then instantiated\n\ -decls will be emitted as weak symbols. The default is ``false``.", +decls will be emitted as weak symbols. The default is @code{false}.", bool, false) /* Close the 'struct gcc_targetdm' definition. */ -- cgit v1.1