Simple macro tests

This commit is contained in:
Daniel James 2017-10-29 12:51:48 +00:00
parent ce2f9fd8ac
commit edb40425d3
3 changed files with 60 additions and 0 deletions

View File

@ -0,0 +1,19 @@
<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
<section id="header.example_hpp"><title>Header &lt;<ulink url="../../example.hpp">example.hpp</ulink>&gt;</title><synopsis xmlns:xi="http://www.w3.org/2001/XInclude">
<link linkend="foo_id1">foo</link>
<link linkend="FOO_id1">FOO</link>
<link linkend="bar">bar</link></synopsis>
<refentry xmlns:xi="http://www.w3.org/2001/XInclude" id="foo_id1"><refmeta><refentrytitle>Macro foo</refentrytitle><manvolnum>3</manvolnum></refmeta><refnamediv><refname>foo</refname><refpurpose/></refnamediv><refsynopsisdiv><synopsis><phrase role="comment">// In header: &lt;<link linkend="header.example_hpp">example.hpp</link>&gt;
</phrase>foo</synopsis></refsynopsisdiv><refsect1><title>Description</title>
</refsect1></refentry>
<refentry xmlns:xi="http://www.w3.org/2001/XInclude" id="FOO_id1"><refmeta><refentrytitle>Macro FOO</refentrytitle><manvolnum>3</manvolnum></refmeta><refnamediv><refname>FOO</refname><refpurpose/></refnamediv><refsynopsisdiv><synopsis><phrase role="comment">// In header: &lt;<link linkend="header.example_hpp">example.hpp</link>&gt;
</phrase>FOO</synopsis></refsynopsisdiv><refsect1><title>Description</title>
</refsect1></refentry>
<refentry xmlns:xi="http://www.w3.org/2001/XInclude" id="bar"><refmeta><refentrytitle>Macro bar</refentrytitle><manvolnum>3</manvolnum></refmeta><refnamediv><refname>bar</refname><refpurpose/></refnamediv><refsynopsisdiv><synopsis><phrase role="comment">// In header: &lt;<link linkend="header.example_hpp">example.hpp</link>&gt;
</phrase>bar</synopsis></refsynopsisdiv><refsect1><title>Description</title>
</refsect1></refentry>
</section>

View File

@ -0,0 +1,19 @@
<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
<section id="header.example_hpp"><title>Header &lt;<ulink url="../../example.hpp">example.hpp</ulink>&gt;</title><synopsis xmlns:xi="http://www.w3.org/2001/XInclude">
<link linkend="foo_id-1.1">foo</link>
<link linkend="FOO_id-1.2">FOO</link>
<link linkend="bar">bar</link></synopsis>
<refentry xmlns:xi="http://www.w3.org/2001/XInclude" id="foo_id-1.1"><refmeta><refentrytitle>Macro foo</refentrytitle><manvolnum>3</manvolnum></refmeta><refnamediv><refname>foo</refname><refpurpose/></refnamediv><refsynopsisdiv><synopsis><phrase role="comment">// In header: &lt;<link linkend="header.example_hpp">example.hpp</link>&gt;
</phrase>foo</synopsis></refsynopsisdiv><refsect1><title>Description</title>
</refsect1></refentry>
<refentry xmlns:xi="http://www.w3.org/2001/XInclude" id="FOO_id-1.2"><refmeta><refentrytitle>Macro FOO</refentrytitle><manvolnum>3</manvolnum></refmeta><refnamediv><refname>FOO</refname><refpurpose/></refnamediv><refsynopsisdiv><synopsis><phrase role="comment">// In header: &lt;<link linkend="header.example_hpp">example.hpp</link>&gt;
</phrase>FOO</synopsis></refsynopsisdiv><refsect1><title>Description</title>
</refsect1></refentry>
<refentry xmlns:xi="http://www.w3.org/2001/XInclude" id="bar"><refmeta><refentrytitle>Macro bar</refentrytitle><manvolnum>3</manvolnum></refmeta><refnamediv><refname>bar</refname><refpurpose/></refnamediv><refsynopsisdiv><synopsis><phrase role="comment">// In header: &lt;<link linkend="header.example_hpp">example.hpp</link>&gt;
</phrase>bar</synopsis></refsynopsisdiv><refsect1><title>Description</title>
</refsect1></refentry>
</section>

View File

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2010 Daniel James.
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
-->
<header name="example.hpp">
<macro name="foo">
<description>
</description>
</macro>
<macro name="FOO">
<description>
</description>
</macro>
<macro name="bar">
<description>
</description>
</macro>
</header>