Skip to content

Commit

Permalink
Move references from a directive to an ext-ref
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Aug 26, 2024
1 parent c700d2f commit 03b7549
Show file tree
Hide file tree
Showing 59 changed files with 278 additions and 268 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ docs/_build
javascript/src/lib/fallbacks
docs/languages*.svg
docs/_tags
docs/inv/*/objects.inv
docs/objects.inv
23 changes: 7 additions & 16 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,6 @@
'prob': ('https://projecteuler.net/problem=%s', 'Problem #%s'),
'source': ('https://github.com/LivInTheLookingGlass/Euler/blob/main/%s', 'here on GitHub!%.0s'),
'live-test': ('/_static/test-%s.html', 'click here!%.0s'),
'cppref': ('https://en.cppreference.com/w/cpp/header/%s', '<%s>'),
'cref': ('https://en.cppreference.com/w/c/%s', '%s'),
'csref': ('https://learn.microsoft.com/en-us/dotnet/api/%s', '%s'),
} | {
f'{code}-d': (f'./src/{lang}/p%s.html', '✔%.0s') for (code, lang) in langcodes
Expand All @@ -153,10 +151,9 @@
# -- Options for intersphinx extension ---------------------------------------
# https://www.sphinx-doc.org/en/master/usage/extensions/intersphinx.html#configuration

for p in Path(__file__).parent.joinpath('inv').glob('*'):
with p.joinpath('inv_raw.txt').open('rb') as f, p.joinpath('objects.inv').open('wb') as g:
g.writelines(f.readline() for _ in range(4))
g.write(compress(f.read()))
with Path(__file__).parent.joinpath('raw_inv.txt').open('rb') as f, Path(__file__).parent.joinpath('objects.inv').open('wb') as g:
g.writelines(f.readline() for _ in range(4))
g.write(compress(f.read()))

intersphinx_mapping = {
'python': ('https://docs.python.org/3', None),
Expand All @@ -166,12 +163,7 @@
'u-msgpack-python': ('https://u-msgpack-python.readthedocs.io/en/latest/', None),
'pytest': ('https://docs.pytest.org/en/stable/', None),
'coverage': ('https://coverage.readthedocs.io/en/latest/', None),
'rust': ('', './inv/rust/objects.inv'),
# 'c': ('', './inv/c/objects.inv'),
# 'cplusplus': ('', './inv/cplusplus/objects.inv'),
# 'csharp': ('', './inv/csharp/objects.inv'),
# 'java': ('', './inv/java/objects.inv'),
# 'javascript': ('', './inv/javascript/objects.inv'),
'misc': ('', './objects.inv'),
}

# -- Options for todo extension ----------------------------------------------
Expand Down Expand Up @@ -207,13 +199,14 @@
tags_create_tags = True
tags_page_title = 'Tags'

# Language chart generation + custom domains

def countfiles(lang):
templates = {
'Makefile': lambda _, filename: filename == 'Makefile',
'Python': lambda root, filename: fnmatch(filename, '*.py') and 'docs' not in root,
'C': lambda _, filename: fnmatch(filename, '*.c') or fnmatch(filename, '*.h'),
'C++': lambda _, filename: fnmatch(filename, '*.cpp') or fnmatch(filename, '*.hpp'),
'C++': lambda _, filename: fnmatch(filename, '*.cpp') or fnmatch(filename, '*.h') or fnmatch(filename, '*.hpp'),
'C#': lambda _, filename: fnmatch(filename, '*.cs'),
'Java': lambda _, filename: fnmatch(filename, '*.java'),
'JavaScript': lambda _, filename: fnmatch(filename, '*.js'),
Expand All @@ -222,10 +215,8 @@ def countfiles(lang):
exclude_patterns = {
'Makefile': ['Unity', 'wasi-libc', 'node_modules'],
'Python': ['Unity', 'docs'],
'C': ['c/Unity', 'c/wasi-libc', 'cplusplus'],
'C': ['c/Unity', 'cplusplus'],
'C++': ['c/', 'cplusplus/Unity'],
'C#': [],
'Java': [],
'JavaScript': ['node_modules', 'dist', 'target'],
'Rust': ['Unity'],
}
Expand Down
72 changes: 46 additions & 26 deletions docs/inv/rust/inv_raw.txt → docs/raw_inv.txt
Original file line number Diff line number Diff line change
@@ -1,26 +1,46 @@
# Sphinx inventory version 2
# Project: Rust Inventory
# Version: 0.0.1
# The remainder of this file is compressed using zlib.
itertools::Itertools rust:trait 1 https://docs.rs/itertools/latest/itertools/trait.Itertools.html itertools::Itertools
num_traits::NumAssign rust:trait 1 https://docs.rs/num-traits/latest/num_traits/trait.NumAssign.html num_traits::NumAssign
num_traits::One rust:trait 1 https://docs.rs/num-traits/latest/num_traits/identities/trait.One.html num_traits::One
num_traits::Zero rust:trait 1 https://docs.rs/num-traits/latest/num_traits/identities/trait.Zero.html num_traits::Zero
num_traits::one rust:fn 1 https://docs.rs/num-traits/latest/num_traits/identities/fn.one.html num_traits::one
num_traits::zero rust:fn 1 https://docs.rs/num-traits/latest/num_traits/identities/fn.zero.html num_traits::zero
std::cmp::max rust:fn 1 https://doc.rust-lang.org/stable/std/cmp/fn.max.html std::cmp::max
std::cmp::Ord rust:trait 1 https://doc.rust-lang.org/stable/std/cmp/trait.Ord.html std::cmp::Ord
std::cmp::PartialOrd rust:trait 1 https://doc.rust-lang.org/stable/std/cmp/trait.PartialOrd.html std::cmp::PartialOrd
std::collections::HashMap rust:struct 1 https://doc.rust-lang.org/stable/std/collections/struct.HashMap.html std::collections::HashMap
std::hash::Hash rust:trait 1 https://doc.rust-lang.org/stable/std/cmp/trait.Hash.html std::hash::Hash
std::mem::size_of rust:fn 1 https://doc.rust-lang.org/stable/std/mem/fn.size_of.html std::mem::size_of
std::ops::Add rust:trait 1 https://doc.rust-lang.org/stable/std/ops/trait.Add.html std::ops::Add
std::ops::Div rust:trait 1 https://doc.rust-lang.org/stable/std/ops/trait.Div.html std::ops::Div
std::ops::Mul rust:trait 1 https://doc.rust-lang.org/stable/std/ops/trait.Mul.html std::ops::Mul
std::ops::Rem rust:trait 1 https://doc.rust-lang.org/stable/std/ops/trait.Rem.html std::ops::Rem
seq_macro::seq rust:macro 1 https://docs.rs/seq-macro/latest/seq_macro/macro.seq.html seq_macro::seq
std::iter::TakeWhile rust:Struct 1 https://doc.rust-lang.org/beta/std/iter/struct.TakeWhile.html std::iter::TakeWhile
std::any::TypeId rust:Struct 1 https://doc.rust-lang.org/beta/std/any/struct.TypeId.html std::any::TypeId
std::sync::Mutex rust:Struct 1 https://doc.rust-lang.org/beta/std/sync/struct.Mutex.html std::sync::Mutex
std::sync::RwLock rust:Struct 1 https://doc.rust-lang.org/beta/std/sync/struct.RwLock.html std::sync::RwLock
std::sync::Once rust:Struct 1 https://doc.rust-lang.org/beta/std/sync/struct.Once.html std::sync::Once
# Sphinx inventory version 2
# Project: Non-Python Inventory
# Version: 0.0.1
# The remainder of this file is compressed using zlib.
stdint c:type 1 https://en.cppreference.com/w/c/types/integer <stdint.h>
inttypes c:type 1 https://en.cppreference.com/w/c/types/integer <inttypes.h>
stdbool c:type 1 https://en.cppreference.com/w/c/types <stdbool.h>
stdio c:type 1 https://en.cppreference.com/w/c/io <stdio.h>
string c:type 1 https://en.cppreference.com/w/c/string/bytes <string.h>
stdlib c:type 1 https://en.cppreference.com/w/c/program <stdlib.h>
math c:type 1 https://en.cppreference.com/w/c/numeric/math <math.h>
direct c:type 1 https://en.wikipedia.org/wiki/Direct.h <direct.h>
windows c:type 1 https://en.wikipedia.org/wiki/Windows.h <windows.h>
libgen c:type 1 https://man7.org/linux/man-pages/man0/libgen.h.0p.html <libgen.h>
unistd c:type 1 https://man7.org/linux/man-pages/man0/unistd.h.0p.html <unistd.h>

cerrno cpp:type 1 https://en.cppreference.com/w/cpp/header/cerrno <cerrno>
iostream cpp:type 1 https://en.cppreference.com/w/cpp/header/iostream <iostream>
stdexcept cpp:type 1 https://en.cppreference.com/w/cpp/header/stdexcept <stdexcept>
cstring cpp:type 1 https://en.cppreference.com/w/cpp/header/cstring <cstring>
string cpp:type 1 https://en.cppreference.com/w/cpp/header/string <string>
sstream cpp:type 1 https://en.cppreference.com/w/cpp/header/sstream <sstream>
fstream cpp:type 1 https://en.cppreference.com/w/cpp/header/fstream <fstream>

itertools::Itertools rust:trait 1 https://docs.rs/itertools/latest/itertools/trait.Itertools.html itertools::Itertools
num_traits::NumAssign rust:trait 1 https://docs.rs/num-traits/latest/num_traits/trait.NumAssign.html num_traits::NumAssign
num_traits::One rust:trait 1 https://docs.rs/num-traits/latest/num_traits/identities/trait.One.html num_traits::One
num_traits::Zero rust:trait 1 https://docs.rs/num-traits/latest/num_traits/identities/trait.Zero.html num_traits::Zero
num_traits::one rust:fn 1 https://docs.rs/num-traits/latest/num_traits/identities/fn.one.html num_traits::one
num_traits::zero rust:fn 1 https://docs.rs/num-traits/latest/num_traits/identities/fn.zero.html num_traits::zero
seq_macro::seq rust:macro 1 https://docs.rs/seq-macro/latest/seq_macro/macro.seq.html seq_macro::seq
std::cmp::max rust:fn 1 https://doc.rust-lang.org/stable/std/cmp/fn.max.html std::cmp::max
std::cmp::Ord rust:trait 1 https://doc.rust-lang.org/stable/std/cmp/trait.Ord.html std::cmp::Ord
std::cmp::PartialOrd rust:trait 1 https://doc.rust-lang.org/stable/std/cmp/trait.PartialOrd.html std::cmp::PartialOrd
std::collections::HashMap rust:struct 1 https://doc.rust-lang.org/stable/std/collections/struct.HashMap.html std::collections::HashMap
std::hash::Hash rust:trait 1 https://doc.rust-lang.org/stable/std/cmp/trait.Hash.html std::hash::Hash
std::mem::size_of rust:fn 1 https://doc.rust-lang.org/stable/std/mem/fn.size_of.html std::mem::size_of
std::ops::Add rust:trait 1 https://doc.rust-lang.org/stable/std/ops/trait.Add.html std::ops::Add
std::ops::Div rust:trait 1 https://doc.rust-lang.org/stable/std/ops/trait.Div.html std::ops::Div
std::ops::Mul rust:trait 1 https://doc.rust-lang.org/stable/std/ops/trait.Mul.html std::ops::Mul
std::ops::Rem rust:trait 1 https://doc.rust-lang.org/stable/std/ops/trait.Rem.html std::ops::Rem
std::iter::TakeWhile rust:struct 1 https://doc.rust-lang.org/beta/std/iter/struct.TakeWhile.html std::iter::TakeWhile
std::any::TypeId rust:struct 1 https://doc.rust-lang.org/beta/std/any/struct.TypeId.html std::any::TypeId
std::sync::Mutex rust:struct 1 https://doc.rust-lang.org/beta/std/sync/struct.Mutex.html std::sync::Mutex
std::sync::RwLock rust:struct 1 https://doc.rust-lang.org/beta/std/sync/struct.RwLock.html std::sync::RwLock
std::sync::Once rust:struct 1 https://doc.rust-lang.org/beta/std/sync/struct.Once.html std::sync::Once
12 changes: 6 additions & 6 deletions docs/src/c/lib/bcd.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ Includes

- `"macros.h" <./macros.html>`__
- `"math.h" <./math.html>`__ (if compiled on PCC)
- :cref:`\<stdint.h\> <types/integer>`
- :cref:`\<stdbool.h\> <types>`
- :cref:`\<stdio.h\> <io>`
- :cref:`\<string.h\> <string/byte>`
- :cref:`\<stdlib.h\> <program>` (if not compiled on PCC)
- :cref:`\<math.h\> <numeric/math>` (if not compiled on PCC)
- :external:c:type:`stdint`
- :external:c:type:`stdbool`
- :external:c:type:`stdio`
- :external:c:type:`string`
- :external:c:type:`stdlib` (if not compiled on PCC)
- :external:c:type:`math` (if not compiled on PCC)

This library implements a `Binary Coded Decimal <https://en.wikipedia.org/wiki/Binary-coded_decimal>`__ object in C. Mostly
this is done to prove that I could, but also because it allows for incredibly easy printing of arbitrary-sized integers.
Expand Down
8 changes: 4 additions & 4 deletions docs/src/c/lib/digits.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ Includes
- `"macros.h" <./macros.html>`__ (implicitly, via iterator.h)
- `"iterator.h" <./iterator.html>`__
- `"math.h" <./math.html>`__ (if compiled on PCC)
- :cref:`\<stdint.h\> <types/integer>`
- :cref:`\<stdbool.h\> <types>` (implicitly, via iterator.h)
- :cref:`\<stdlib.h\> <program>` (if not compiled on PCC)
- :cref:`\<math.h\> <numeric/math>` (if not compiled on PCC)
- :external:c:type:`stdint`
- :external:c:type:`stdbool` (implicitly, via iterator.h)
- :external:c:type:`stdlib` (if not compiled on PCC)
- :external:c:type:`math` (if not compiled on PCC)

.. c:namespace-push:: digits
Expand Down
4 changes: 2 additions & 2 deletions docs/src/c/lib/factors.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ Includes

- `"macros.h" <./macros.html>`__ (implicitly, via iterator.h)
- `"iterator.h" <./iterator.html>`__
- :cref:`\<stdint.h\> <types/integer>`
- :cref:`\<stdbool.h\> <types>` (implicitly, via iterator.h)
- :external:c:type:`stdint`
- :external:c:type:`stdbool` (implicitly, via iterator.h)

This file implements an :c:macro:`Iterator <IteratorHead>` that yields proper
factors for a given number. It is generally used by first calling
Expand Down
4 changes: 2 additions & 2 deletions docs/src/c/lib/fibonacci.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ Includes

- `"iterator.h" <./iterator.html>`__
- `"macros.h" <./macros.html>`__ (implicitly, via iterator.h)
- :cref:`\<stdbool.h\> <types>` (implicitly, via iterator.h)
- :cref:`\<stdint.h\> <types/integer>`
- :external:c:type:`stdbool` (implicitly, via iterator.h)
- :external:c:type:`stdint`

.. c:namespace-push:: fibonacci
Expand Down
4 changes: 2 additions & 2 deletions docs/src/c/lib/iterator.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ Includes
--------

- `"macros.h" <./macros.html>`__
- :cref:`\<stdbool.h\> <types>`
- :cref:`\<stdint.h\> <types/integer>`
- :external:c:type:`stdbool`
- :external:c:type:`stdint`

.. c:namespace-push:: iterator
Expand Down
4 changes: 2 additions & 2 deletions docs/src/c/lib/math.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ Includes
--------

- `"macros.h" <./macros.html>`__
- :cref:`\<stdint.h\> <types/integer>`
- :cref:`\<stdlib.h\> <program>` (if not compiled on PCC)
- :external:c:type:`stdint`
- :external:c:type:`stdlib` (if not compiled on PCC)

.. c:namespace-push:: math
Expand Down
10 changes: 5 additions & 5 deletions docs/src/c/lib/primes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ Includes
- `"math.h" <./math.html>`__ (if compiled on PCC)
- `"iterator.h" <./iterator.html>`__
- `"macros.h" <./macros.html>`__ (implicitly, via iterator.h)
- :cref:`\<stdbool.h\> <types>` (implicitly, via iterator.h)
- :cref:`\<stdint.h\> <types/integer>`
- :cref:`\<inttypes.h\> <types/integer>`
- :cref:`\<stdlib.h\> <program>` (if not compiled on PCC)
- :cref:`\<math.h\> <numeric/math>` (if not compiled on PCC)
- :external:c:type:`stdbool` (implicitly, via iterator.h)
- :external:c:type:`stdint`
- :external:c:type:`inttypes`
- :external:c:type:`stdlib` (if not compiled on PCC)
- :external:c:type:`math` (if not compiled on PCC)

.. c:namespace-push:: primes
Expand Down
18 changes: 9 additions & 9 deletions docs/src/c/lib/utils.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ View source code :source:`c/src/include/utils.h`
Includes
--------

- :cref:`\<inttypes.h\> <types/integer>`
- :cref:`\<stdint.h\> <types/integer>`
- :cref:`\<stdlib.h\> <program>`
- :cref:`\<string.h\> <string/byte>`
- :cref:`\<stdio.h\> <io>`
- `\<direct.h\> <https://en.wikipedia.org/wiki/Direct.h>`__ (if compiled for Windows)
- `\<windows.h\> <https://en.wikipedia.org/wiki/Windows.h>`__ (if compiled for Windows)
- `\<libgen.h\> <https://man7.org/linux/man-pages/man0/libgen.h.0p.html>`__ (if not compiled for Windows)
- `\<libgen.h\> <https://man7.org/linux/man-pages/man0/unistd.h.0p.html>`__ (if not compiled for Windows)
- :external:c:type:`inttypes`
- :external:c:type:`stdint`
- :external:c:type:`stdlib`
- :external:c:type:`string`
- :external:c:type:`stdio`
- :external:c:type:`direct` (if compiled for Windows)
- :external:c:type:`windows` (if compiled for Windows)
- :external:c:type:`libgen` (if not compiled for Windows)
- :external:c:type:`unistd` (if not compiled for Windows)

.. c:namespace-push:: utils
Expand Down
12 changes: 6 additions & 6 deletions docs/src/c/p0001.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ Includes
- `"macros.h" <./macros.html>`__ (implicitly, via digits.h)
- `"iterator.h" <./iterator.html>`__ (implicitly, via digits.h)
- `"math.h" <./math.html>`__ (implicitly, via digits.h & if compiled on PCC)
- :cref:`\<inttypes.h\> <types/integer>`
- :cref:`\<stdint.h\> <types/integer>`
- :cref:`\<stdio.h\> <io>`
- :cref:`\<stdbool.h\> <types>` (implicitly, via digits.h)
- :cref:`\<stdlib.h\> <program>` (implicitly, via digits.h & if not compiled on PCC)
- :cref:`\<math.h\> <numeric/math>` (implicitly, via digits.h & if not compiled on PCC)
- :external:c:type:`inttypes`
- :external:c:type:`stdint`
- :external:c:type:`stdio`
- :external:c:type:`stdbool` (implicitly, via digits.h)
- :external:c:type:`stdlib` (implicitly, via digits.h & if not compiled on PCC)
- :external:c:type:`math` (implicitly, via digits.h & if not compiled on PCC)

Solution
--------
Expand Down
12 changes: 6 additions & 6 deletions docs/src/c/p0002.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ Includes
- `"macros.h" <./macros.html>`__ (implicitly, via digits.h)
- `"iterator.h" <./iterator.html>`__ (implicitly, via digits.h)
- `"math.h" <./math.html>`__ (implicitly, via digits.h & if compiled on PCC)
- :cref:`\<inttypes.h\> <types/integer>`
- :cref:`\<stdint.h\> <types/integer>`
- :cref:`\<stdio.h\> <io>`
- :cref:`\<stdbool.h\> <types>` (implicitly, via digits.h)
- :cref:`\<stdlib.h\> <program>` (implicitly, via digits.h & if not compiled on PCC)
- :cref:`\<math.h\> <numeric/math>` (implicitly, via digits.h & if not compiled on PCC)
- :external:c:type:`inttypes`
- :external:c:type:`stdint`
- :external:c:type:`stdio`
- :external:c:type:`stdbool` (implicitly, via digits.h)
- :external:c:type:`stdlib` (implicitly, via digits.h & if not compiled on PCC)
- :external:c:type:`math` (implicitly, via digits.h & if not compiled on PCC)

Solution
--------
Expand Down
12 changes: 6 additions & 6 deletions docs/src/c/p0003.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ Includes
- `"macros.h" <./macros.html>`__ (implicitly, via primes.h)
- `"primes.h" <./lib/primes.html>`__
- `"math.h" <./math.html>`__ (implicitly, via primes.h & if compiled on PCC)
- :cref:`\<inttypes.h\> <types/integer>`
- :cref:`\<stdint.h\> <types/integer>`
- :cref:`\<stdio.h\> <io>`
- :cref:`\<stdlib.h\> <program>` (implicitly, via primes.h & if not compiled on PCC)
- :cref:`\<math.h\> <numeric/math>` (implicitly, via primes.h & if not compiled on PCC)
- :cref:`\<stdbool.h\> <types>` (implicitly, via primes.h)
- :external:c:type:`inttypes`
- :external:c:type:`stdint`
- :external:c:type:`stdio`
- :external:c:type:`stdlib` (implicitly, via primes.h & if not compiled on PCC)
- :external:c:type:`math` (implicitly, via primes.h & if not compiled on PCC)
- :external:c:type:`stdbool` (implicitly, via primes.h)

Solution
--------
Expand Down
12 changes: 6 additions & 6 deletions docs/src/c/p0004.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ Includes
- `"macros.h" <./macros.html>`__ (implicitly, via digits.h)
- `"iterator.h" <./iterator.html>`__ (implicitly, via digits.h)
- `"math.h" <./math.html>`__ (implicitly, via digits.h & if compiled on PCC)
- :cref:`\<inttypes.h\> <types/integer>`
- :cref:`\<stdint.h\> <types/integer>`
- :cref:`\<stdio.h\> <io>`
- :cref:`\<stdbool.h\> <types>` (implicitly, via digits.h)
- :cref:`\<stdlib.h\> <program>` (implicitly, via digits.h & if not compiled on PCC)
- :cref:`\<math.h\> <numeric/math>` (implicitly, via digits.h & if not compiled on PCC)
- :external:c:type:`inttypes`
- :external:c:type:`stdint`
- :external:c:type:`stdio`
- :external:c:type:`stdbool` (implicitly, via digits.h)
- :external:c:type:`stdlib` (implicitly, via digits.h & if not compiled on PCC)
- :external:c:type:`math` (implicitly, via digits.h & if not compiled on PCC)

Solution
--------
Expand Down
12 changes: 6 additions & 6 deletions docs/src/c/p0005.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ Includes
- `"macros.h" <./lib/macros.html>`__
- `"primes.h" <./lib/primes.html>`__
- `"math.h" <./math.html>`__ (implicitly, via primes.h & if compiled on PCC)
- :cref:`\<inttypes.h\> <types/integer>`
- :cref:`\<stdint.h\> <types/integer>`
- :cref:`\<stdio.h\> <io>`
- :cref:`\<stdlib.h\> <program>` (implicitly, via primes.h & if not compiled on PCC)
- :cref:`\<math.h\> <numeric/math>` (implicitly, via primes.h & if not compiled on PCC)
- :cref:`\<stdbool.h\> <types>` (implicitly, via primes.h)
- :external:c:type:`inttypes`
- :external:c:type:`stdint`
- :external:c:type:`stdio`
- :external:c:type:`stdlib` (implicitly, via primes.h & if not compiled on PCC)
- :external:c:type:`math` (implicitly, via primes.h & if not compiled on PCC)
- :external:c:type:`stdbool` (implicitly, via primes.h)

Solution
--------
Expand Down
6 changes: 3 additions & 3 deletions docs/src/c/p0006.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ View source code :source:`c/src/p0006.c`
Includes
--------

- :cref:`\<inttypes.h\> <types/integer>`
- :cref:`\<stdint.h\> <types/integer>`
- :cref:`\<stdio.h\> <io>`
- :external:c:type:`inttypes`
- :external:c:type:`stdint`
- :external:c:type:`stdio`

Solution
--------
Expand Down
12 changes: 6 additions & 6 deletions docs/src/c/p0007.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ Includes
- `"primes.h" <./lib/primes.html>`__
- `"macros.h" <./macros.html>`__ (implicitly, via primes.h)
- `"math.h" <./math.html>`__ (implicitly, via primes.h & if compiled on PCC)
- :cref:`\<inttypes.h\> <types/integer>`
- :cref:`\<stdint.h\> <types/integer>`
- :cref:`\<stdio.h\> <io>`
- :cref:`\<stdlib.h\> <program>` (implicitly, via primes.h & if not compiled on PCC)
- :cref:`\<math.h\> <numeric/math>` (implicitly, via primes.h & if not compiled on PCC)
- :cref:`\<stdbool.h\> <types>` (implicitly, via primes.h)
- :external:c:type:`inttypes`
- :external:c:type:`stdint`
- :external:c:type:`stdio`
- :external:c:type:`stdlib` (implicitly, via primes.h & if not compiled on PCC)
- :external:c:type:`math` (implicitly, via primes.h & if not compiled on PCC)
- :external:c:type:`stdbool` (implicitly, via primes.h)

Solution
--------
Expand Down
Loading

0 comments on commit 03b7549

Please sign in to comment.