[DEV] add v1.76.0

This commit is contained in:
2021-10-05 21:37:46 +02:00
parent a97e9ae7d4
commit d0115b733d
45133 changed files with 4744437 additions and 1026325 deletions

View File

@@ -0,0 +1,18 @@
#
# Copyright (c) 2011 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)
#
project quickbook/test/snippets ;
import quickbook-testing : quickbook-test quickbook-error-test ;
test-suite quickbook.test :
[ quickbook-test pass_thru ]
[ quickbook-test unbalanced_snippet1-1_5 ]
[ quickbook-error-test unbalanced_snippet1-1_6-fail ]
[ quickbook-error-test unbalanced_snippet2-1_6-fail ]
;

View File

@@ -0,0 +1,33 @@
// clang-format off
//[foo_cpp_copyright
/*=============================================================================
Copyright (c) 2011 Daniel James
Use, modification and distribution is subject to 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)
=============================================================================*/
//]
//[foo_cpp
struct Foo{
Foo()//=;
//<-
: x( 10 )
{}
//->
//<-
int x;
//->
};
/*=
int main()
{
Foo x;
}
*/
//]

View File

@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//Boost//DTD BoostBook XML V1.0//EN" "http://www.boost.org/tools/boostbook/dtd/boostbook.dtd">
<article id="pass_thru_test" last-revision="DEBUG MODE Date: 2000/12/20 12:00:00 $"
xmlns:xi="http://www.w3.org/2001/XInclude">
<title>Pass thru test</title>
<para>
<programlisting><phrase role="comment">/*=============================================================================
Copyright (c) 2011 Daniel James
Use, modification and distribution is subject to 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)
=============================================================================*/</phrase>
</programlisting>
</para>
<para>
<programlisting><phrase role="keyword">struct</phrase> <phrase role="identifier">Foo</phrase><phrase role="special">{</phrase>
<phrase role="identifier">Foo</phrase><phrase role="special">();</phrase>
<phrase role="special">};</phrase>
<phrase role="keyword">int</phrase> <phrase role="identifier">main</phrase><phrase role="special">()</phrase>
<phrase role="special">{</phrase>
<phrase role="identifier">Foo</phrase> <phrase role="identifier">x</phrase><phrase role="special">;</phrase>
<phrase role="special">}</phrase>
</programlisting>
</para>
<para>
<programlisting><phrase role="keyword">def</phrase> <phrase role="identifier">foo</phrase><phrase role="special">:</phrase>
<phrase role="keyword">print</phrase><phrase role="special">(</phrase><phrase role="string">'foo'</phrase><phrase role="special">)</phrase>
</programlisting>
</para>
</article>

View File

@@ -0,0 +1,38 @@
<!DOCTYPE html>
<html>
<head></head>
<body>
<h3>
Pass thru test
</h3>
<p>
<pre class="programlisting"><span class="comment">/*=============================================================================
Copyright (c) 2011 Daniel James
Use, modification and distribution is subject to 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)
=============================================================================*/</span>
</pre>
</p>
<p>
<pre class="programlisting"><span class="keyword">struct</span> <span class="identifier">Foo</span><span class="special">{</span>
<span class="identifier">Foo</span><span class="special">();</span>
<span class="special">};</span>
<span class="keyword">int</span> <span class="identifier">main</span><span class="special">()</span>
<span class="special">{</span>
<span class="identifier">Foo</span> <span class="identifier">x</span><span class="special">;</span>
<span class="special">}</span>
</pre>
</p>
<p>
<pre class="programlisting"><span class="keyword">def</span> <span class="identifier">foo</span><span class="special">:</span>
<span class="keyword">print</span><span class="special">(</span><span class="string">'foo'</span><span class="special">)</span>
</pre>
</p>
</body>
</html>

View File

@@ -0,0 +1,13 @@
# Copyright (c) 2011 Daniel James
#
# Use, modification and distribution is subject to 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)
#[foo_py
def foo:
#=print('foo')
#<-
print('bar')
#->
#]

View File

@@ -0,0 +1,12 @@
[article Pass thru test
[quickbook 1.5]
]
[import pass_thru.cpp]
[import pass_thru.py]
[foo_cpp_copyright]
[foo_cpp]
[foo_py]

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//Boost//DTD BoostBook XML V1.0//EN" "http://www.boost.org/tools/boostbook/dtd/boostbook.dtd">
<article id="unbalanced_snippet_fail_test_1" last-revision="DEBUG MODE Date: 2000/12/20 12:00:00 $"
xmlns:xi="http://www.w3.org/2001/XInclude">
<title>Unbalanced snippet fail test 1</title>
<para>
<programlisting><phrase role="keyword">int</phrase> <phrase role="identifier">main</phrase><phrase role="special">()</phrase> <phrase role="special">{}</phrase>
</programlisting>
</para>
</article>

View File

@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
<head></head>
<body>
<h3>
Unbalanced snippet fail test 1
</h3>
<p>
<pre class="programlisting"><span class="keyword">int</span> <span class="identifier">main</span><span class="special">()</span> <span class="special">{}</span>
</pre>
</p>
</body>
</html>

View File

@@ -0,0 +1,8 @@
[article Unbalanced snippet fail test 1
[quickbook 1.5]
]
[import unbalanced_snippet1.cpp]
[import unbalanced_snippet2.cpp]
[unclosed]

View File

@@ -0,0 +1,7 @@
[article Unbalanced snippet fail test 1
[quickbook 1.6]
]
[import unbalanced_snippet1.cpp]
[unclosed]

View File

@@ -0,0 +1,11 @@
/*=============================================================================
Copyright (c) 2011 Daniel James
Use, modification and distribution is subject to 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)
=============================================================================*/
//[unclosed
int main() {}

View File

@@ -0,0 +1,5 @@
[article Unbalanced snippet fail test 2
[quickbook 1.6]
]
[import unbalanced_snippet2.cpp]

View File

@@ -0,0 +1,9 @@
//]
/*=============================================================================
Copyright (c) 2011 Daniel James
Use, modification and distribution is subject to 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)
=============================================================================*/