aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas "Cakeisalie5" Touhey <thomas@touhey.fr>2017-09-09 11:49:40 +0200
committerThomas "Cakeisalie5" Touhey <thomas@touhey.fr>2017-09-09 11:49:40 +0200
commit3aa1cb5df09fd803c2681ad32fc32fdbeaca2790 (patch)
tree91c4005f2dd46c650b90709758661ab7c195b85c
parent1e368f199f41bb68fd89667111253c2337ad1cce (diff)
Finished reorganizing the project using the docs logic, purged some modules out for now.HEADmaster
-rw-r--r--arch/all/compiler-gcc/README.md4
l---------arch/all/compiler-gcc/docs1
l---------arch/all/compiler-renesas/docs1
-rw-r--r--arch/all/cpp/README.md4
-rw-r--r--arch/all/cpp/copyright.yml6
-rw-r--r--arch/all/cpp/include/ios287
-rw-r--r--arch/all/cpp/include/iosfwd130
-rw-r--r--arch/all/cpp/include/iostream54
-rw-r--r--arch/all/cpp/include/mystrbuf43
-rw-r--r--arch/all/cpp/include/new109
-rw-r--r--arch/all/cpp/include/streambuf43
-rw-r--r--arch/all/cpp/include/string92
-rw-r--r--arch/all/cpp/info.yml4
-rw-r--r--arch/all/cpp/roles.yml10
-rw-r--r--arch/all/ensigdsp-sh/README.md6
-rw-r--r--arch/all/ensigdsp-sh/copyright.yml6
-rw-r--r--arch/all/ensigdsp-sh/include/ensigdsp.h232
-rw-r--r--arch/all/ensigdsp-sh/info.yml6
-rw-r--r--arch/all/ensigdsp-sh/roles.yml4
l---------arch/all/iconv/docs1
-rw-r--r--arch/all/math/README.md3
l---------arch/all/math/docs1
l---------arch/all/stdcocorico/docs1
-rw-r--r--arch/casiowin/core-crt/README.md3
l---------arch/casiowin/core-crt/docs1
-rw-r--r--arch/casiowin/core/README.md4
l---------arch/casiowin/core/docs1
-rw-r--r--arch/casiowin/core/roles.yml4
-rw-r--r--arch/casiowin/core/src/dirent/dirent.h (renamed from arch/casiowin/fxlib/src/dirent/dirent.h)0
-rw-r--r--arch/casiowin/core/src/dirent/error.c (renamed from arch/casiowin/fxlib/src/dirent/error.c)2
-rw-r--r--arch/casiowin/core/src/dirent/open.c (renamed from arch/casiowin/fxlib/src/dirent/open.c)2
-rw-r--r--arch/casiowin/easy-grayscales/README.md6
-rw-r--r--arch/casiowin/easy-grayscales/copyright.yml6
-rw-r--r--arch/casiowin/easy-grayscales/include/draw.h69
-rw-r--r--arch/casiowin/easy-grayscales/include/gray.h54
-rw-r--r--arch/casiowin/easy-grayscales/info.yml6
-rw-r--r--arch/casiowin/easy-grayscales/roles.yml5
l---------arch/casiowin/easy-input/docs1
-rw-r--r--arch/casiowin/fxlib/roles.yml4
l---------arch/casiowin/libfxsys/docs1
-rw-r--r--arch/casiowin/revolutionfx/README.md8
-rw-r--r--arch/casiowin/revolutionfx/copyright.yml6
-rw-r--r--arch/casiowin/revolutionfx/include/revolution.h189
-rw-r--r--arch/casiowin/revolutionfx/info.yml6
-rw-r--r--arch/casiowin/revolutionfx/roles.yml4
-rw-r--r--docs/all/compiler-gcc/index.en.md8
-rw-r--r--docs/all/compiler-renesas/index.en.md (renamed from arch/all/compiler-renesas/README.md)8
-rw-r--r--docs/all/iconv/index.en.md (renamed from arch/all/iconv/README.md)5
-rw-r--r--docs/all/math/index.en.md5
-rw-r--r--docs/all/stdcocorico/index.en.md (renamed from arch/all/stdcocorico/README.md)5
-rw-r--r--docs/casiowin/core-crt/index.en.md6
-rw-r--r--docs/casiowin/core/index.en.md6
-rw-r--r--docs/casiowin/easy-input/index.en.md (renamed from arch/casiowin/easy-input/README.md)4
-rw-r--r--docs/casiowin/fxlib/display.md10
-rw-r--r--docs/casiowin/fxlib/vram.en.md4
-rw-r--r--docs/casiowin/libfxsys/index.en.md (renamed from arch/casiowin/libfxsys/README.md)4
56 files changed, 57 insertions, 1438 deletions
diff --git a/arch/all/compiler-gcc/README.md b/arch/all/compiler-gcc/README.md
deleted file mode 100644
index 79402c4..0000000
--- a/arch/all/compiler-gcc/README.md
+++ /dev/null
@@ -1,4 +0,0 @@
-# GNU C Compiler
-<TODO: history of this compiler>
-
-This module provides the bits headers for this compiler.
diff --git a/arch/all/compiler-gcc/docs b/arch/all/compiler-gcc/docs
new file mode 120000
index 0000000..f192e0e
--- /dev/null
+++ b/arch/all/compiler-gcc/docs
@@ -0,0 +1 @@
+../../../docs/all/compiler-gcc \ No newline at end of file
diff --git a/arch/all/compiler-renesas/docs b/arch/all/compiler-renesas/docs
new file mode 120000
index 0000000..720e2a8
--- /dev/null
+++ b/arch/all/compiler-renesas/docs
@@ -0,0 +1 @@
+../../../docs/all/compiler-renesas \ No newline at end of file
diff --git a/arch/all/cpp/README.md b/arch/all/cpp/README.md
deleted file mode 100644
index 1cb6387..0000000
--- a/arch/all/cpp/README.md
+++ /dev/null
@@ -1,4 +0,0 @@
-# `all/cpp` -- C++ sources module.
-## Introduction
-This is the platform-independent C++ extensions to the libc core. It aims at
-being C++98, C++11 and C++14 compliant.
diff --git a/arch/all/cpp/copyright.yml b/arch/all/cpp/copyright.yml
deleted file mode 100644
index f4d127d..0000000
--- a/arch/all/cpp/copyright.yml
+++ /dev/null
@@ -1,6 +0,0 @@
-%YAML 1.2
----
-files: '*'
-copyright:
-- [2017, Thomas "Cakeisalie5" Touhey, thomas@touhey.fr]
-license: free
diff --git a/arch/all/cpp/include/ios b/arch/all/cpp/include/ios
deleted file mode 100644
index 1f26df6..0000000
--- a/arch/all/cpp/include/ios
+++ /dev/null
@@ -1,287 +0,0 @@
-/* ****************************************************************************
- * ios -- C++ I/O streams.
- * Copyright (C) 2017 Thomas "Cakeisalie5" Touhey <thomas@touhey.fr>
- *
- * This file is part of the 'all/cpp' module in libcarrot, an experimental
- * modular libc project.
- *
- * This file is governed by the CeCILL-C license under French law and abiding
- * by the rules of distribution of free software. You can use, modify and or
- * redistribute it under the terms of the CeCILL-C license as circulated by
- * CEA, CNRS and INRIA at the following URL: http://www.cecill.info
- *
- * As a counterpart to the access to the source code and rights to copy, modify
- * and redistribute granted by the license, users are provided only with a
- * limited warranty and the software's author, the holder of the economic
- * rights, and the successive licensors have only limited liability.
- *
- * In this respect, the user's attention is drawn to the risks associated with
- * loading, using, modifying and/or developing and reproducing the software by
- * the user in light of its specific status of free software, that may mean
- * that it is complicated to manipulate, and that also therefore means that it
- * is reserved for developers and experienced professionals having in-depth
- * computer knowledge. Users are therefore encouraged to load and test the
- * software's suitability as regards their requirements in conditions enabling
- * the security of their systems and/or data to be ensured and, more generally,
- * to use and operate it in the same conditions as regards security.
- *
- * The fact that you are presently reading this means you have had knowledge of
- * the CeCILL-C license and that you accept its terms.
- * ************************************************************************* */
-#if __USE_CXX98 && !defined(_IOS_HPP) && !defined(_IOS_)
-# define _IOS_HPP 1
-# define _IOS_ 1
-# include <cdefs.h>
-# include <iosfwd>
-__BEGIN_NAMESPACE_STD
-
-/* Main types */
-typedef unsigned long streamoff;
-typedef size_t streamsize;
-/* ************************************************************************* */
-/* I/O stream base */
-/* ************************************************************************* */
-class ios_base {
-public:
- class failure : public exception {
- public:
- explicit failure(const string& __msg);
- virtual ~failure();
- virtual const char* what() const throw();
- }
-
- typedef unsigned long fmtflags;
- /* Insert and extract `bool` type in alphabetical format. */
- static const fmtflags boolalpha = 1L << 0;
- /* Convert integer input or generate integer output in decimal base. */
- static const fmtflags dec = 1L << 1;
- /* Generate floating-point output in fixed-point notation. */
- static const fmtflags fixed = 1L << 2;
- /* Convert integer input or generate integer output in hexadecimal base. */
- static const fmtflags hex = 1L << 3;
- /* Add fill characters at a designated internal point in certain
- * generated output, or identical to `right` if no such point
- * is designated. */
- static const fmtflags internal = 1L << 4;
- /* Add fill characters on the right (final positions) of certain
- * generated output. */
- static const fmtflags left = 1L << 5;
- /* Convert integer input or generate integer output in octal base. */
- static const fmtflags oct = 1L << 6;
- /* Add fill characters on the left (initial positions) of certain
- * generated output. */
- static const fmtflags right = 1L << 7;
- /* Generate floating-point ouput in scientific notation. */
- static const fmtflags scientific = 1L << 8;
- /* Generate a prefix indicating the numeric base of generated
- * integer output. */
- static const fmtflags showbase = 1L << 9;
- /* Generate a decimal-point character unconditionally in generated
- * floating-point output. */
- static const fmtflags showpoint = 1L << 10;
- /* Generate a '+' sign in non-negative generated numeric output. */
- static const fmtflags showpos = 1L << 11;
- /* Skip leading white space before certain input operations. */
- static const fmtflags skipws = 1L << 12;
- /* Flush output after each output operation. */
- static const fmtflags unitbuf = 1L << 13;
- /* Replace certain lowercase letters with their uppercase equivalents
- * in generated output. */
- static const fmtflags uppercase = 1L << 14;
- /* Constant values. */
- static const fmtflags adjustfield = left | right | internal;
- static const fmtflags basefield = dec | oct | hex;
- static const fmtflags floatfield = scientific | fixed;
-
- typedef unsigned long iostate;
- /* Indicate a loss of integrity in an input or output sequence
- * (such as irrecoverable read error from a file). */
- static const iostate badbit = 1L << 0;
- /* Indicate that an input operation reached the end of an
- * input sequence. */
- static const iostate eofbit = 1L << 1;
- /* Indicate that an input operation failed to read the expected characters,
- * or that an output operation failed to generate the desired characters. */
- static const iostate failbit = 1L << 2;
- /* The value zero. */
- static const iostate goodbit = /* -1... just kidding, */ 0;
-
- typedef unsigned long openmode;
- /* Seek to end before each write. */
- static const openmode app = 1L << 0;
- /* Open and seek to end immediately after opening. */
- static const openmode ate = 1L << 1;
- /* Perform input and output in binary mode (as opposed to text mode). */
- static const openmode binary = 1L << 2;
- /* Open for input. */
- static const openmode in = 1L << 3;
- /* Open for output. */
- static const openmode out = 1L << 4;
- /* Truncate an existing stream when opening. */
- static const openmode trunc = 1L << 5;
-
- typedef unsigned long seekdir;
- /* Request a seek relative to the beginning of the stream. */
- static const seekdir beg = 1L << 0;
- /* Request a seek relative to the current position within the sequence. */
- static const seekdir cur = 1L << 1;
- /* Request a seek relative to the current end of the sequence. */
- static const seekdir end = 1L << 2;
-
- /* The object that ensures the construction of the eight objects declared
- * in <iostream> that associate file stream buffers with the standard
- * C streams provided for by the functions declared in <cstdio>. */
- class Init {
- public:
- Init();
- ~Init();
- private:
-# if 0 /* exposition only */
- static int init_cnt;
-# endif
- };
-
- /* fmtflags state functions */
- fmtflags flags() const;
- fmtflags flags(fmtflags __fmtfl);
- fmtflags setf(fmtflags __fmtfl);
- fmtflags setf(fmtflags __fmtfl, fmtflags __mask);
- void unsetf(fmtflags __mask);
-
- streamsize precision() const;
- streamsize precision(streamsize __prec);
- streamsize width() const;
- streamsize width(streamsize __wide);
-
- /* locale functions */
- locale imbue(const locale& __loc);
- locale getloc() const;
-
- /* storage functions */
- static int xalloc();
- long& iword(int __index);
- void*& pword(int __index);
-
- virtual ~ios_base();
-
- enum event { erase_event, imbue_event, copyfmt_event };
- typedef void (*event_callback)(event, ios_base&, int __index);
- void register_callback(event_callback __fn, int __index);
-
- static bool sync_with_stdio(bool __sync = true);
-
-protected:
- ios_base();
-
-private:
-# if 0 /* exposition only */
- static int index;
- long *iarray;
- void **parray;
-# endif
-
-private:
- ios_base(const ios_base&);
- ios_base& operator = (const ios_base&);
-};
-/* ************************************************************************* */
-/* I/O stream position */
-/* ************************************************************************* */
-template <class _StateT> class fpos {
-public:
- _StateT state() const;
- void state(_StateT);
-private:
-# if 0 /* exposition only */
- _StateT st;
-# endif
-};
-/* ************************************************************************* */
-/* I/O basic stream */
-/* ************************************************************************* */
-template <class _CharT, class _Traits = char_traits<_CharT>>
-class basic_ios : public ios_base {
-public:
- typedef _CharT char_type;
- typedef typename traits::int_type int_type;
- typedef typename traits::pos_type pos_type;
- typedef typename traits::off_type off_type;
- typedef _Traits traits_type;
-
- operator void*() const;
- bool operator !() const;
-
- iostate rdstate() const;
- void clear(iostate __state = goodbit);
- void setstate(iostate __state);
- bool good() const;
- bool eof() const;
- bool fail() const;
- bool bad() const;
-
- iostate exceptions() const;
- void exceptions(iostate __except);
-
- explicit basic_ios(basic_streambuf<_CharT, _Traits>* __sb);
- virtual ~basic_ios();
-
- basic_ostream<_CharT, _Traits>* tie() const;
- basic_ostream<_CharT, _Traits>* tie(basic_ostream<_CharT, _Traits>* __sb);
-
- basic_ios& copyfmt(const basic_ios& __rhs);
-
- char_type fill() const;
- char_type fill(char_type __ch);
-
- locale imbue(const locale& __loc);
-
- char narrow(char_type __c, char __dfault) const;
- char_type widen(char __c) const;
-
-protected:
- basic_ios();
- void init(basic_streambuf<_CharT, _Traits>* __sb);
-
-private:
- basic_ios (const basic_ios&); /* not defined */
- basic_ios& operator=(const basic_ios&); /* not defined */
-};
-/* ************************************************************************* */
-/* Utilities */
-/* ************************************************************************* */
-/* Manipulators */
-ios_base& boolalpha(ios_base& __str);
-ios_base& noboolalpha(ios_base& __str);
-ios_base& showbase(ios_base& __str);
-ios_base& noshowbase(ios_base& __str);
-ios_base& showpoint(ios_base& __str);
-ios_base& noshowpoint(ios_base& __str);
-ios_base& skipws(ios_base& __str);
-ios_base& noskipws(ios_base& __str);
-ios_base& uppercase(ios_base& __str);
-ios_base& nouppercase(ios_base& __str);
-ios_base& unitbuf(ios_base& __str);
-ios_base& nounitbuf(ios_base& __str);
-
-/* Adjust field */
-ios_base& internal(ios_base& __str);
-ios_base& left(ios_base& __str);
-ios_base& right(ios_base& __str);
-
-/* Base field */
-ios_base& dec(ios_base& __str);
-ios_base& hex(ios_base& __str);
-ios_base& oct(ios_base& __str);
-
-/* Float field */
-ios_base& fixed(ios_base& __str);
-ios_base& scientific(ios_base& __str);
-
-__END_NAMESPACE_STD
-#endif /* _IOS_HPP, _IOS_ */
-#ifndef _IOS_HPP
-# define _IOS_HPP 1
-#endif
-#ifndef _IOS_
-# define _IOS_ 1
-#endif
diff --git a/arch/all/cpp/include/iosfwd b/arch/all/cpp/include/iosfwd
deleted file mode 100644
index f1e1fa4..0000000
--- a/arch/all/cpp/include/iosfwd
+++ /dev/null
@@ -1,130 +0,0 @@
-/* ****************************************************************************
- * iosfwd -- C++ I/O library forward declarations.
- * Copyright (C) 2017 Thomas "Cakeisalie5" Touhey <thomas@touhey.fr>
- *
- * This file is part of the 'all/cpp' module in libcarrot, an experimental
- * modular libc project.
- *
- * This file is governed by the CeCILL-C license under French law and abiding
- * by the rules of distribution of free software. You can use, modify and or
- * redistribute it under the terms of the CeCILL-C license as circulated by
- * CEA, CNRS and INRIA at the following URL: http://www.cecill.info
- *
- * As a counterpart to the access to the source code and rights to copy, modify
- * and redistribute granted by the license, users are provided only with a
- * limited warranty and the software's author, the holder of the economic
- * rights, and the successive licensors have only limited liability.
- *
- * In this respect, the user's attention is drawn to the risks associated with
- * loading, using, modifying and/or developing and reproducing the software by
- * the user in light of its specific status of free software, that may mean
- * that it is complicated to manipulate, and that also therefore means that it
- * is reserved for developers and experienced professionals having in-depth
- * computer knowledge. Users are therefore encouraged to load and test the
- * software's suitability as regards their requirements in conditions enabling
- * the security of their systems and/or data to be ensured and, more generally,
- * to use and operate it in the same conditions as regards security.
- *
- * The fact that you are presently reading this means you have had knowledge of
- * the CeCILL-C license and that you accept its terms.
- * ************************************************************************* */
-#if __USE_CXX98 && !defined(_IOSFWD_HPP) && !defined(_IOSFWD_)
-# define _IOSFWD_HPP 1
-# define _IOSFWD_ 1
-# include <cdefs.h>
-# include <stddef.h>
-__BEGIN_NAMESPACE_STD
-
-template <class _CharT>
- class char_traits;
-template <>
- class char_traits<char>;
-template <>
- class char_traits<wchar_t>;
-
-template <class _T>
- class allocator;
-
-template <class _CharT, class _Traits = char_traits<_CharT>>
- class basic_ios;
-template <class _CharT, class _Traits = char_traits<_CharT>>
- class basic_streambuf;
-template <class _CharT, class _Traits = char_traits<_CharT>>
- class basic_istream;
-template <class _CharT, class _Traits = char_traits<_CharT>>
- class basic_ostream;
-template <class _CharT, class _Traits = char_traits<_CharT>>
- class basic_iostream;
-
-template <class _CharT, class _Traits = char_traits<_CharT>,
- class _Allocator = allocator<_CharT>>
- class basic_stringbuf;
-template <class _CharT, class _Traits = char_traits<_CharT>,
- class _Allocator = allocator<_CharT>>
- class basic_istringstream;
-template <class _CharT, class _Traits = char_traits<_CharT>,
- class _Allocator = allocator<_CharT>>
- class basic_ostringstream;
-template <class _CharT, class _Traits = char_traits<_CharT>,
- class _Allocator = allocator<_CharT>>
- class basic_stringstream;
-
-template <class _CharT, class _Traits = char_traits<_CharT>>
- class basic_filebuf;
-template <class _CharT, class _Traits = char_traits<_CharT>>
- class basic_ifstream;
-template <class _CharT, class _Traits = char_traits<_CharT>>
- class basic_ofstream;
-template <class _CharT, class _Traits = char_traits<_CharT>>
- class basic_fstream;
-
-template <class _CharT, class _Traits = char_traits<_CharT>>
- class istreambuf_iterator;
-template <class _CharT, class _Traits = char_traits<_CharT>>
- class ostreambuf_iterator;
-
-typedef basic_ios<char> ios;
-typedef basic_ios<wchar_t> wios;
-
-typedef basic_streambuf<char> streambuf;
-typedef basic_istream<char> istream;
-typedef basic_ostream<char> ostream;
-typedef basic_iostream<char> iostream;
-
-typedef basic_stringbuf<char> stringbuf;
-typedef basic_istringstream<char> istringstream;
-typedef basic_ostringstream<char> ostringstream;
-typedef basic_stringstream<char> stringstream;
-
-typedef basic_filebuf<char> filebuf;
-typedef basic_ifstream<char> ifstream;
-typedef basic_ofstream<char> ofstream;
-typedef basic_fstream<char> fstream;
-
-typedef basic_streambuf<wchar_t> wstreambuf;
-typedef basic_istream<wchar_t> wistream;
-typedef basic_ostream<wchar_t> wostream;
-typedef basic_iostream<wchar_t> wiostream;
-
-typedef basic_stringbuf<wchar_t> wstringbuf;
-typedef basic_istringstream<wchar_t> wistringstream;
-typedef basic_ostringstream<wchar_t> wostringstream;
-typedef basic_stringstream<wchar_t> wstringstream;
-
-typedef basic_filebuf<wchar_t> wfilebuf;
-typedef basic_ifstream<wchar_t> wifstream;
-typedef basic_ofstream<wchar_t> wofstream;
-typedef basic_fstream<wchar_t> wfstream;
-
-template <class state> class fpos;
-typedef fpos<char_traits<char>::state_type> streampos;
-typedef fpos<char_traits<wchar_t>::state_type> wstreampos;
-
-__END_NAMESPACE_STD
-#endif /* _IOSFWD_HPP, _IOSFWD_ */
-#ifndef _IOSFWD_HPP
-# define _IOSFWD_HPP 1
-#endif
-#ifndef _IOSFWD_
-# define _IOSFWD_ 1
-#endif
diff --git a/arch/all/cpp/include/iostream b/arch/all/cpp/include/iostream
deleted file mode 100644
index aba8d59..0000000
--- a/arch/all/cpp/include/iostream
+++ /dev/null
@@ -1,54 +0,0 @@
-/* ****************************************************************************
- * iostream -- C++ I/O standard iostream object.
- * Copyright (C) 2017 Thomas "Cakeisalie5" Touhey <thomas@touhey.fr>
- *
- * This file is part of the 'all/cpp' module in libcarrot, an experimental
- * modular libc project.
- *
- * This file is governed by the CeCILL-C license under French law and abiding
- * by the rules of distribution of free software. You can use, modify and or
- * redistribute it under the terms of the CeCILL-C license as circulated by
- * CEA, CNRS and INRIA at the following URL: http://www.cecill.info
- *
- * As a counterpart to the access to the source code and rights to copy, modify
- * and redistribute granted by the license, users are provided only with a
- * limited warranty and the software's author, the holder of the economic
- * rights, and the successive licensors have only limited liability.
- *
- * In this respect, the user's attention is drawn to the risks associated with
- * loading, using, modifying and/or developing and reproducing the software by
- * the user in light of its specific status of free software, that may mean
- * that it is complicated to manipulate, and that also therefore means that it
- * is reserved for developers and experienced professionals having in-depth
- * computer knowledge. Users are therefore encouraged to load and test the
- * software's suitability as regards their requirements in conditions enabling
- * the security of their systems and/or data to be ensured and, more generally,
- * to use and operate it in the same conditions as regards security.
- *
- * The fact that you are presently reading this means you have had knowledge of
- * the CeCILL-C license and that you accept its terms.
- * ************************************************************************* */
-#if __USE_CXX98 && !defined(_IOSTREAM_)
-# define _IOSTREAM_HPP 1
-# define _IOSTREAM_ 1
-# include <iosfwd>
-__BEGIN_NAMESPACE_STD
-
-extern istream cin;
-extern ostream cout;
-extern ostream cerr;
-extern ostream clog;
-
-extern wistream wcin;
-extern wostream wcout;
-extern wostream wcerr;
-extern wostream wclog;
-
-__END_NAMESPACE_STD
-#endif /* _IOSTREAM_HPP, _IOSTREAM_ */
-#ifndef _IOSTREAM_HPP
-# define _IOSTREAM_HPP 1
-#endif
-#ifndef _IOSTREAM_
-# define _IOSTREAM_ 1
-#endif
diff --git a/arch/all/cpp/include/mystrbuf b/arch/all/cpp/include/mystrbuf
deleted file mode 100644
index 65d94f0..0000000
--- a/arch/all/cpp/include/mystrbuf
+++ /dev/null
@@ -1,43 +0,0 @@
-/* ****************************************************************************
- * mystrbuf -- C++ string buffer.
- * Copyright (C) 2017 Thomas "Cakeisalie5" Touhey <thomas@touhey.fr>
- *
- * This file is part of the 'all/cpp' module in libcarrot, an experimental
- * modular libc project.
- *
- * This file is governed by the CeCILL-C license under French law and abiding
- * by the rules of distribution of free software. You can use, modify and or
- * redistribute it under the terms of the CeCILL-C license as circulated by
- * CEA, CNRS and INRIA at the following URL: http://www.cecill.info
- *
- * As a counterpart to the access to the source code and rights to copy, modify
- * and redistribute granted by the license, users are provided only with a
- * limited warranty and the software's author, the holder of the economic
- * rights, and the successive licensors have only limited liability.
- *
- * In this respect, the user's attention is drawn to the risks associated with
- * loading, using, modifying and/or developing and reproducing the software by
- * the user in light of its specific status of free software, that may mean
- * that it is complicated to manipulate, and that also therefore means that it
- * is reserved for developers and experienced professionals having in-depth
- * computer knowledge. Users are therefore encouraged to load and test the
- * software's suitability as regards their requirements in conditions enabling
- * the security of their systems and/or data to be ensured and, more generally,
- * to use and operate it in the same conditions as regards security.
- *
- * The fact that you are presently reading this means you have had knowledge of
- * the CeCILL-C license and that you accept its terms.
- * ************************************************************************* */
-#if __USE_CXX98 && !defined(_MYSTRBUF_HPP) && !defined(_MYSTRBUF_)
-# define _MYSTRBUF_HPP 1
-# define _MYSTRBUF_ 1
-
-
-
-#endif /* _MYSTRBUF_HPP, _MYSTRBUF_ */
-#ifndef _MYSTRBUF_HPP
-# define _MYSTRBUF_HPP 1
-#endif
-#ifndef _MYSTRBUF_
-# define _MYSTRBUF_ 1
-#endif
diff --git a/arch/all/cpp/include/new b/arch/all/cpp/include/new
deleted file mode 100644
index 2cdf8fe..0000000
--- a/arch/all/cpp/include/new
+++ /dev/null
@@ -1,109 +0,0 @@
-/* ****************************************************************************
- * new -- C++ new operator.
- * Copyright (C) 2017 Thomas "Cakeisalie5" Touhey <thomas@touhey.fr>
- *
- * This file is part of the 'all/cpp' module in libcarrot, an experimental
- * modular libc project.
- *
- * This file is governed by the CeCILL-C license under French law and abiding
- * by the rules of distribution of free software. You can use, modify and or
- * redistribute it under the terms of the CeCILL-C license as circulated by
- * CEA, CNRS and INRIA at the following URL: http://www.cecill.info
- *
- * As a counterpart to the access to the source code and rights to copy, modify
- * and redistribute granted by the license, users are provided only with a
- * limited warranty and the software's author, the holder of the economic
- * rights, and the successive licensors have only limited liability.
- *
- * In this respect, the user's attention is drawn to the risks associated with
- * loading, using, modifying and/or developing and reproducing the software by
- * the user in light of its specific status of free software, that may mean
- * that it is complicated to manipulate, and that also therefore means that it
- * is reserved for developers and experienced professionals having in-depth
- * computer knowledge. Users are therefore encouraged to load and test the
- * software's suitability as regards their requirements in conditions enabling
- * the security of their systems and/or data to be ensured and, more generally,
- * to use and operate it in the same conditions as regards security.
- *
- * The fact that you are presently reading this means you have had knowledge of
- * the CeCILL-C license and that you accept its terms.
- * ************************************************************************* */
-#if __USE_CXX98 && !defined(_NEW_HPP) && !defined(__NEW__) \
- && !defined(_NEW_) && !defined(__NEW_H)
-# define _NEW_HPP 1
-# define __NEW__ 1
-# define _NEW_ 1
-# define __NEW_H 1
-# include <cdefs.h>
-# ifdef __embedded_cplusplus
-
-void *operator new (size_t);
-void *operator new[] (size_t);
-void *operator new (size_t, void*);
-void *operator new[] (size_t, void*);
-
-void operator delete (void*);
-void operator delete[] (void*);
-void operator delete (void*, void*); /* not implemented with renesas C/C++ */
-void operator delete[] (void*, void*); /* not implemented with renesas C/C++ */
-
-typedef void (*new_handler)();
-new_handler set_new_handler(new_handler new_P);
-extern new_handler _ec2p_new_handler;
-
-# else /* !__embedded_cplusplus */
-__BEGIN_NAMESPACE_STD
-
-class bad_alloc: public exception {
-public:
- bad_alloc() throw();
- bad_alloc(const bad_alloc&) throw();
- bad_alloc& operator = (const bad_alloc&) throw();
- virtual ~bad_alloc() throw();
- virtual const char *what() const throw();
-};
-
-typedef void (*new_handler)();
-new_handler set_new_handler(new_handler new_P);
-struct nothrow_t { };
-const nothrow_t nothrow = {};
-
-void *operator new (size_t) throw(std::bad_alloc);
-void *operator new (size_t, const std::nothrow_t&) throw();
-void *operator new (size_t, void*) throw();
-# ifdef __ARRAY_OPERATORS
-void *operator new[] (size_t) throw(std::bad_alloc);
-void *operator new[] (size_t, const std::nothrow_t&) throw();
-void *operator new[] (size_t, void*) throw();
-# endif
-
-void operator delete (void*) throw();
-void operator delete (void*, const std::nothrow_t&) throw();
-# ifdef __PLACEMENT_DELETE
-void operator delete (void*, void*) throw();
-# endif
-# ifdef __ARRAY_OPERATORS
-void operator delete[] (void*) throw();
-void operator delete[] (void*, void*) throw();
-# ifdef __PLACEMENT_DELETE
-void operator delete[] (void*, const std::nothrow_t&) throw();
-# endif
-# endif
-
-extern std::new_handler _ec2p_new_handler;
-
-__END_NAMESPACE_STD
-# endif
-#endif /* _NEW_HPP, __NEW__, _NEW_, __NEW_H */
-# ifndef _NEW_HPP
-# define _NEW_HPP 1
-# endif
-# ifndef __NEW__
-# define __NEW__ 1
-# endif
-# ifndef _NEW_
-# define _NEW_ 1
-# endif
-# ifndef __NEW_H
-# define __NEW_H 1
-# endif
diff --git a/arch/all/cpp/include/streambuf b/arch/all/cpp/include/streambuf
deleted file mode 100644
index f57f685..0000000
--- a/arch/all/cpp/include/streambuf
+++ /dev/null
@@ -1,43 +0,0 @@
-/* ****************************************************************************
- * streambuf -- C++ stream buffer.
- * Copyright (C) 2017 Thomas "Cakeisalie5" Touhey <thomas@touhey.fr>
- *
- * This file is part of the 'all/cpp' module in libcarrot, an experimental
- * modular libc project.
- *
- * This file is governed by the CeCILL-C license under French law and abiding
- * by the rules of distribution of free software. You can use, modify and or
- * redistribute it under the terms of the CeCILL-C license as circulated by
- * CEA, CNRS and INRIA at the following URL: http://www.cecill.info
- *
- * As a counterpart to the access to the source code and rights to copy, modify
- * and redistribute granted by the license, users are provided only with a
- * limited warranty and the software's author, the holder of the economic
- * rights, and the successive licensors have only limited liability.
- *
- * In this respect, the user's attention is drawn to the risks associated with
- * loading, using, modifying and/or developing and reproducing the software by
- * the user in light of its specific status of free software, that may mean
- * that it is complicated to manipulate, and that also therefore means that it
- * is reserved for developers and experienced professionals having in-depth
- * computer knowledge. Users are therefore encouraged to load and test the
- * software's suitability as regards their requirements in conditions enabling
- * the security of their systems and/or data to be ensured and, more generally,
- * to use and operate it in the same conditions as regards security.
- *
- * The fact that you are presently reading this means you have had knowledge of
- * the CeCILL-C license and that you accept its terms.
- * ************************************************************************* */
-#if __USE_CXX98 && !defined(_STREAMBUF_HPP) && !defined(_STREAMBUF_)
-# define _STREAMBUF_HPP 1
-# define _STREAMBUF_ 1
-
-
-
-#endif /* _STREAMBUF_HPP, _STREAMBUF_ */
-#ifndef _STREAMBUF_HPP
-# define _STREAMBUF_HPP 1
-#endif
-#ifndef _STREAMBUF_
-# define _STREAMBUF_ 1
-#endif
diff --git a/arch/all/cpp/include/string b/arch/all/cpp/include/string
deleted file mode 100644
index 909d5a8..0000000
--- a/arch/all/cpp/include/string
+++ /dev/null
@@ -1,92 +0,0 @@
-/* ****************************************************************************
- * string -- C++ string.h wrapper.
- * Copyright (C) 2017 Thomas "Cakeisalie5" Touhey <thomas@touhey.fr>
- *
- * This file is part of the 'all/cpp' module in libcarrot, an experimental
- * modular libc project.
- *
- * This file is governed by the CeCILL-C license under French law and abiding
- * by the rules of distribution of free software. You can use, modify and or
- * redistribute it under the terms of the CeCILL-C license as circulated by
- * CEA, CNRS and INRIA at the following URL: http://www.cecill.info
- *
- * As a counterpart to the access to the source code and rights to copy, modify
- * and redistribute granted by the license, users are provided only with a
- * limited warranty and the software's author, the holder of the economic
- * rights, and the successive licensors have only limited liability.
- *
- * In this respect, the user's attention is drawn to the risks associated with
- * loading, using, modifying and/or developing and reproducing the software by
- * the user in light of its specific status of free software, that may mean
- * that it is complicated to manipulate, and that also therefore means that it
- * is reserved for developers and experienced professionals having in-depth
- * computer knowledge. Users are therefore encouraged to load and test the
- * software's suitability as regards their requirements in conditions enabling
- * the security of their systems and/or data to be ensured and, more generally,
- * to use and operate it in the same conditions as regards security.
- *
- * The fact that you are presently reading this means you have had knowledge of
- * the CeCILL-C license and that you accept its terms.
- * ************************************************************************* */
-#if __USE_CXX98 && !defined(_STRING_HPP) && !defined(_STRING_)
-# define _STRING_HPP 1
-# define _STRING_ 1
-# include <cdefs.h>
-# include <string.h>
-
-/* prototype the class. */
-class string;
-/* ************************************************************************* */
-/* Operators */
-/* ************************************************************************* */
-/* Concatenation. */
-string operator + (const string &lhs, const string &rhs);
-string operator + (const char *lhs, const string &rhs);
-string operator + (char lhs, const string &rhs);
-string operator + (const string &lhs, const char *rhs);
-string operator + (const string &lhs, char rhs);
-
-/* Comparisons. */
-bool operator < (const string &lhs, const string &rhs);
-bool operator <= (const string &lhs, const string &rhs);
-bool operator == (const string &lhs, const string &rhs);
-bool operator != (const string &lhs, const string &rhs);
-bool operator >= (const string &lhs, const string &rhs);
-bool operator > (const string &lhs, const string &rhs);
-
-bool operator < (const char *lhs, const string &rhs);
-bool operator <= (const char *lhs, const string &rhs);
-bool operator == (const char *lhs, const string &rhs);
-bool operator != (const char *lhs, const string &rhs);
-bool operator >= (const char *lhs, const string &rhs);
-bool operator > (const char *lhs, const string &rhs);
-
-bool operator < (const string &lhs, const char *rhs);
-bool operator <= (const string &lhs, const char *rhs);
-bool operator == (const string &lhs, const char *rhs);
-bool operator != (const string &lhs, const char *rhs);
-bool operator >= (const string &lhs, const char *rhs);
-bool operator > (const string &lhs, const char *rhs);
-
-extern void swap(string &lhs, string &rhs);
-
-istream & operator >> (istream &is, string &str);
-ostream & operator << (ostream &os, const string &str);
-istream & getline (istream &is, string &str, char delim);
-istream & getline (istream &is, string &str);
-/* ************************************************************************* */
-/* Class definition */
-/* ************************************************************************* */
-class string {
-public:
- typedef char *iterator;
- typedef const char *const_iterator;
- static const size_t npos;
-
-#endif /* _STRING_ */
-# ifndef _STRING_HPP
-# define _STRING_HPP 1
-# endif
-# ifndef _STRING_
-# define _STRING_ 1
-# endif
diff --git a/arch/all/cpp/info.yml b/arch/all/cpp/info.yml
deleted file mode 100644
index 0c54a32..0000000
--- a/arch/all/cpp/info.yml
+++ /dev/null
@@ -1,4 +0,0 @@
-%YAML 1.2
----
-magic: potatosdk-1.0
-description: The C++ extension.
diff --git a/arch/all/cpp/roles.yml b/arch/all/cpp/roles.yml
deleted file mode 100644
index 66635b4..0000000
--- a/arch/all/cpp/roles.yml
+++ /dev/null
@@ -1,10 +0,0 @@
-%YAML 1.2
----
-include:
- ios: C++ I/O streams.
- iosfwd: C++ I/O library forward declarations.
- iostream: C++ I/O standard iostream object.
- mystrbuf: C++ string buffer.
- new: C++ new operator.
- streambuf: C++ stream buffer.
- string: C++ string.h wrapper.
diff --git a/arch/all/ensigdsp-sh/README.md b/arch/all/ensigdsp-sh/README.md
deleted file mode 100644
index 1c8c54e..0000000
--- a/arch/all/ensigdsp-sh/README.md
+++ /dev/null
@@ -1,6 +0,0 @@
-# `all/ensigdsp-sh` -- a DSP library for the SuperH architecture
-This module brings a compatibility layer for the Ensigma SuperH library,
-originally made in 1995 by Ensigma, then modified by Renesas as they bought
-Ensigma.
-
-This library makes use of the DSP extensions to the SuperH Core.
diff --git a/arch/all/ensigdsp-sh/copyright.yml b/arch/all/ensigdsp-sh/copyright.yml
deleted file mode 100644
index f4d127d..0000000
--- a/arch/all/ensigdsp-sh/copyright.yml
+++ /dev/null
@@ -1,6 +0,0 @@
-%YAML 1.2
----
-files: '*'
-copyright:
-- [2017, Thomas "Cakeisalie5" Touhey, thomas@touhey.fr]
-license: free
diff --git a/arch/all/ensigdsp-sh/include/ensigdsp.h b/arch/all/ensigdsp-sh/include/ensigdsp.h
deleted file mode 100644
index 09146da..0000000
--- a/arch/all/ensigdsp-sh/include/ensigdsp.h
+++ /dev/null
@@ -1,232 +0,0 @@
-/* ****************************************************************************
- * ensigdsp.h -- Ensigma DSP library.
- * Copyright (C) 2017 Thomas "Cakeisalie5" Touhey <thomas@touhey.fr>
- *
- * This file is part of the 'all/ensigdsp-sh' module in libcarrot, an
- * experimental modular libc project.
- *
- * This file is governed by the CeCILL-C license under French law and abiding
- * by the rules of distribution of free software. You can use, modify and or
- * redistribute it under the terms of the CeCILL-C license as circulated by
- * CEA, CNRS and INRIA at the following URL: http://www.cecill.info
- *
- * As a counterpart to the access to the source code and rights to copy, modify
- * and redistribute granted by the license, users are provided only with a
- * limited warranty and the software's author, the holder of the economic
- * rights, and the successive licensors have only limited liability.
- *
- * In this respect, the user's attention is drawn to the risks associated with
- * loading, using, modifying and/or developing and reproducing the software by
- * the user in light of its specific status of free software, that may mean
- * that it is complicated to manipulate, and that also therefore means that it
- * is reserved for developers and experienced professionals having in-depth
- * computer knowledge. Users are therefore encouraged to load and test the
- * software's suitability as regards their requirements in conditions enabling
- * the security of their systems and/or data to be ensured and, more generally,
- * to use and operate it in the same conditions as regards security.
- *
- * The fact that you are presently reading this means you have had knowledge of
- * the CeCILL-C license and that you accept its terms.
- * ************************************************************************* */
-#include <fixed.h>
-__BEGIN_DECLS
-#ifdef _DSPC
-
-/* ************************************************************************* */
-/* Useful things */
-/* ************************************************************************* */
-/* Macros */
-# define BIQUAD_SIZE 6 /* no. coefficients in an IIR biquad */
-# define EDSP_OK 0
-# define EDSP_BAD_ARG 1
-# define EDSP_NO_HEAP 2
-# define EFFTALLSCALE (-1L)
-# define EFFTMIDSCALE 0x55555555L
-# define EFFTNOSCALE 0x00000000L
-
-/* Globals
- * These variables are for the internal use of the FFT functions only.
- * They should not be accessed by user programs. */
-
-extern long max_fft_size;
-extern short *twtble;
-/* ************************************************************************* */
-/* Fourier transforms */
-/* ************************************************************************* */
-/* Complex */
-extern int FftComplex _OF((__X __fixed __op_x[], __Y __fixed __op_y[],
- const __X __fixed __ip_x[], const __Y __fixed __ip_y[],
- long __size, long __scale)) __THROW;
-extern int FftInComplex _OF((__X __fixed __data_x[], __Y __fixed __data_y[],
- long __size, long __scale)) __THROW;
-
-/* Real */
-extern int FftReal _OF((__X __fixed __op_x[], __Y __fixed __op_y[],
- const __fixed __ip[],
- long __size, long __scale)) __THROW;
-extern int FftInReal _OF((__X __fixed __data_x[], __Y __fixed __data_y[],
- long __size, long __scale, int __ip_all_x)) __THROW;
-
-/* Complex bis? */
-extern int IfftComplex _OF((__X __fixed __op_x[], __Y __fixed __op_y[],
- const __X __fixed __ip_x[], const __Y __fixed __ip_y[],
- long __size, long __scale)) __THROW;
-extern int IfftInComplex _OF((__X __fixed __data_x[], __Y __fixed __data_y[],
- long __size, long __scale)) __THROW;
-
-/* Real bis? */
-extern int IfftReal _OF((__X __fixed __op_x[], __Y __fixed __op_y[],
- __X __fixed __ip_x[], __Y __fixed __ip_y[],
- long __size, long __scale, int __op_all_x)) __THROW;
-extern int IfftInReal _OF((__X __fixed __data_x[], __Y __fixed __data_y[],
- long __size, long __scale, int __op_all_x)) __THROW;
-
-/* Initialize/deinitialize Fourier transformation? */
-extern int InitFft _OF((long __max_size)) __THROW;
-extern void FreeFft _OF((void)) __THROW;
-
-/* ?? */
-extern int LogMagnitude _OF((__fixed __output[],
- __X __fixed __ip_x[], __Y __fixed __ip_y[],
- long __no_elements, float __fscale)) __THROW;
-/* ************************************************************************* */
-/* Window functions */
-/* ************************************************************************* */
-extern int GenBlackman _OF((__fixed __output[], long __win_size)) __THROW;
-extern int GenHamming _OF((__fixed __output[], long __win_size)) __THROW;
-extern int GenHanning _OF((__fixed __output[], long __win_size)) __THROW;
-extern int GenTriangle _OF((__fixed __output[], long __win_size)) __THROW;
-
-/* ************************************************************************* */
-/* Filters */
-/* ************************************************************************* */
-/* The coefficients must be supplied in X and the workspace in Y.
- * If it is straightforward we can support the opposite, i.e. Xworkspace
- * and Ycoeff. */
-
-extern int InitFir _OF((__Y __fixed **__workspace, long __no_coeffs)) __THROW;
-extern int FreeFir _OF((__Y __fixed **__workspace, long __no_coeffs)) __THROW;
-
-extern int InitIir _OF((__Y __fixed **__workspace, long __no_sections))
- __THROW;
-extern int FreeIir _OF((__Y __fixed **__workspace, long __no_sections))
- __THROW;
-
-extern int InitDIir _OF((__Y long __fixed **__workspace, long __no_sections))
- __THROW;
-extern int FreeDIir _OF((__Y long __fixed **__workspace, long __no_sections))
- __THROW;
-
-extern int InitLms _OF((__Y __fixed **__workspace, long __no_coeffs)) __THROW;
-extern int FreeLms _OF((__Y __fixed **__workspace, long __no_coeffs)) __THROW;
-
-extern int Fir _OF((__fixed __output[], const __fixed __input[],
- long __no_samples,
- const __X __fixed __coeff[], long __no_coeffs, int __res_shift,
- __Y __fixed *__workspace)) __THROW;
-extern int Fir1 _OF((short *__output, short __input,
- const short __coeff[], /* X memory */
- long __no_coeffs, int __res_shift,
- short *__workspace /* Y memory */
- )) __THROW;
-
-extern int Iir _OF((__fixed __output[], const __fixed __input[],
- long __no_samples, const __X __fixed __coeff[], long __no_sections,
- __Y __fixed *__workspace)) __THROW;
-extern int Iir1 _OF((short *__output, short __input,
- const short __coeff[], /* X memory */
- long __no_sections, short *__workspace /* Y memory */
- )) __THROW;
-
-extern int DIir _OF((__fixed __output[], const __fixed __input[],
- long __no_samples,
- const __X long __fixed __coeff[], long __no_sections,
- __Y long __fixed *__workspace)) __THROW;
-extern int DIir1 _OF((short *__output, const short __input,
- const long __coeff[], /* X memory */
- long __no_sections,
- long *__workspace /* Y memory */
- )) __THROW;
-
-extern int Lms _OF((__fixed __output[], const __fixed __input[],
- const __fixed __ref_output[], long __no_samples,
- __X __fixed __coeff[], long __no_coeffs, int __res_shift,
- short __conv_fact, __Y __fixed *__workspace)) __THROW;
-extern int Lms1 _OF((short *__output, short __input, short __ref_output,
- short __coeff[], /* X memory */
- long __no_coeffs, int __res_shift,
- short __conv_fact,
- short *__workspace /* Y memory */
- )) __THROW;
-/* ************************************************************************* */
-/* Convolution and Correlation */
-/* ************************************************************************* */
-extern int ConvComplete _OF((__fixed __output[],
- __X __fixed __ip_x[], __Y __fixed __ip_y[],
- long __x_size, long __y_size, int __res_shift)) __THROW;
-extern int ConvCyclic _OF((__fixed __output[],
- __X __fixed __ip_x[], __Y __fixed __ip_y[],
- long __size, int __res_shift)) __THROW;
-extern int ConvPartial _OF((__fixed __output[],
- const __X __fixed __ip_x[], const __Y __fixed __ip_y[],
- long __x_size, long __y_size, int __res_shift)) __THROW;
-extern int Correlate _OF((__fixed __output[],
- const __X __fixed __ip_x[], const __Y __fixed __ip_y[],
- long __x_size, long __y_size, long __no_corr,
- int __x_is_larger, int __res_shift)) __THROW;
-extern int CorrCyclic _OF((__fixed __output[],
- const __X __fixed __ip_x[], const __Y __fixed __ip_y[],
- long __size, int __reverse, int __res_shift)) __THROW;
-/* ************************************************************************* */
-/* Miscallaneous */
-/* ************************************************************************* */
-/* Noise? */
-extern int GenGWnoise _OF((__fixed __output[], long __no_samples,
- float __variance)) __THROW;
-
-/* Statistical things */
-extern int MinI _OF((__fixed **__min_ptr, __fixed __input[],
- long __no_elements, int __src_is_x)) __THROW;
-extern int MaxI _OF((__fixed **__max_ptr, __fixed __input[],
- long __no_elements, int __src_is_x)) __THROW;
-extern int PeakI _OF((__fixed **__peak_ptr, __fixed __input[],
- long __no_elements, int __src_is_x)) __THROW;
-extern int Mean _OF((__fixed *__mean, const __fixed __input[],
- long __no_elements, int __src_is_x)) __THROW;
-extern int Variance OF((long __fixed *__variance, __fixed *__mean,
- const __fixed __input[], long __no_elements, int __src_is_x)) __THROW;
-
-/* Vector/matrix operations */
-extern int VectorMult _OF((__fixed __output[],
- const __X __fixed __ip_x[], const __Y __fixed __ip_y[],
- long __no_elements, int __res_shift)) __THROW;
-extern int MatrixMult _OF((void *__op_matrix,
- const __X void *__ip_x, const __Y void *__ip_y,
- long __m, long __n, long __p, int __x_first, int __res_shift)) __THROW;
-
-/* Power? */
-extern int MsPower _OF((long __fixed *__output, const __fixed __input[],
- long __no_elements, int __src_is_x)) __THROW;
-
-/* Limit */
-extern int Limit _OF((__fixed __data_xy[], long __no_elements,
- int __data_is_x)) __THROW;
-
-/* Copies */
-extern int CopyXtoY _OF((__Y __fixed __op_y[], const __X __fixed __ip_x[],
- long __n)) __THROW;
-extern int CopyYtoX _OF((__X __fixed __op_x[], const __Y __fixed __ip_y[],
- long __n));
-
-extern int CopyToX _OF((__X __fixed __op_x[], const __fixed __input[],
- long __n)) __THROW;
-extern int CopyToY _OF((__Y __fixed __op_y[], const __fixed __input[],
- long __n)) __THROW;
-
-extern int CopyFromX _OF((__fixed __output[], const __X __fixed __ip_x[],
- long __n)) __THROW;
-extern int CopyFromY _OF((__fixed __output[], const __Y __fixed __ip_y[],
- long __n)) __THROW;
-
-#endif
-__END_DECLS
diff --git a/arch/all/ensigdsp-sh/info.yml b/arch/all/ensigdsp-sh/info.yml
deleted file mode 100644
index 22a87aa..0000000
--- a/arch/all/ensigdsp-sh/info.yml
+++ /dev/null
@@ -1,6 +0,0 @@
-%YAML 1.2
----
-magic: potatosdk-1.0
-description: Ensigma DSP library.
-requires:
- arch: ['sh2dsp', 'sh3dsp', 'sh4aldsp']
diff --git a/arch/all/ensigdsp-sh/roles.yml b/arch/all/ensigdsp-sh/roles.yml
deleted file mode 100644
index 043ef73..0000000
--- a/arch/all/ensigdsp-sh/roles.yml
+++ /dev/null
@@ -1,4 +0,0 @@
-%YAML 1.2
----
-include:
- ensigdsp.h: Ensigma DSP library.
diff --git a/arch/all/iconv/docs b/arch/all/iconv/docs
new file mode 120000
index 0000000..751f18d
--- /dev/null
+++ b/arch/all/iconv/docs
@@ -0,0 +1 @@
+../../../docs/all/iconv \ No newline at end of file
diff --git a/arch/all/math/README.md b/arch/all/math/README.md
deleted file mode 100644
index 2baf079..0000000
--- a/arch/all/math/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# `all/core-math` -- Mathematics.
-## Introduction
-This is the platform-independent mathematic functions and headers.
diff --git a/arch/all/math/docs b/arch/all/math/docs
new file mode 120000
index 0000000..c519b51
--- /dev/null
+++ b/arch/all/math/docs
@@ -0,0 +1 @@
+../../../docs/all/math \ No newline at end of file
diff --git a/arch/all/stdcocorico/docs b/arch/all/stdcocorico/docs
new file mode 120000
index 0000000..f4b8be9
--- /dev/null
+++ b/arch/all/stdcocorico/docs
@@ -0,0 +1 @@
+../../../docs/all/stdcocorico \ No newline at end of file
diff --git a/arch/casiowin/core-crt/README.md b/arch/casiowin/core-crt/README.md
deleted file mode 100644
index f03108b..0000000
--- a/arch/casiowin/core-crt/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# `casiowin/core-crt` -- C runtime objects.
-These are the C runtime objects, such as `crt0.o`, that will be linked to the
-user programs for CASIOWIN.
diff --git a/arch/casiowin/core-crt/docs b/arch/casiowin/core-crt/docs
new file mode 120000
index 0000000..a49d3ae
--- /dev/null
+++ b/arch/casiowin/core-crt/docs
@@ -0,0 +1 @@
+../../../docs/casiowin/core-crt \ No newline at end of file
diff --git a/arch/casiowin/core/README.md b/arch/casiowin/core/README.md
deleted file mode 100644
index 3a42328..0000000
--- a/arch/casiowin/core/README.md
+++ /dev/null
@@ -1,4 +0,0 @@
-# `casiowin/core` -- the adaptation of the core for the fx-9860G.
-These are the bits and tricks that will be in libc, not fxlib.
-
-See the `casiowin/fxlib` module for more details about what fxlib is.
diff --git a/arch/casiowin/core/docs b/arch/casiowin/core/docs
new file mode 120000
index 0000000..a416bb2
--- /dev/null
+++ b/arch/casiowin/core/docs
@@ -0,0 +1 @@
+../../../docs/casiowin/core \ No newline at end of file
diff --git a/arch/casiowin/core/roles.yml b/arch/casiowin/core/roles.yml
index d8f5224..7cad08a 100644
--- a/arch/casiowin/core/roles.yml
+++ b/arch/casiowin/core/roles.yml
@@ -11,3 +11,7 @@ src:
core:
_syscalls.sx: Syscalls for the C runtime initialization.
syscall.h: Syscall macro.
+ dirent:
+ dirent.h: dirent internals.
+ error.c: Standard error number from file-specific error.
+ open.c: Open a directory stream.
diff --git a/arch/casiowin/fxlib/src/dirent/dirent.h b/arch/casiowin/core/src/dirent/dirent.h
index fb70891..fb70891 100644
--- a/arch/casiowin/fxlib/src/dirent/dirent.h
+++ b/arch/casiowin/core/src/dirent/dirent.h
diff --git a/arch/casiowin/fxlib/src/dirent/error.c b/arch/casiowin/core/src/dirent/error.c
index ebe83a4..4eff00b 100644
--- a/arch/casiowin/fxlib/src/dirent/error.c
+++ b/arch/casiowin/core/src/dirent/error.c
@@ -2,7 +2,7 @@
* dirent/error.c -- Standard error number from file-specific error.
* Copyright (C) 2017 Thomas "Cakeisalie5" Touhey <thomas@touhey.fr>
*
- * This file is part of the 'casiowin/fxlib' module in libcarrot, an
+ * This file is part of the 'casiowin/core' module in libcarrot, an
* experimental modular libc project.
*
* This file is governed by the CeCILL-C license under French law and abiding
diff --git a/arch/casiowin/fxlib/src/dirent/open.c b/arch/casiowin/core/src/dirent/open.c
index 5e20fe0..c3152f5 100644
--- a/arch/casiowin/fxlib/src/dirent/open.c
+++ b/arch/casiowin/core/src/dirent/open.c
@@ -2,7 +2,7 @@
* dirent/open.c -- Open a directory stream.
* Copyright (C) 2017 Thomas "Cakeisalie5" Touhey <thomas@touhey.fr>
*
- * This file is part of the 'casiowin/fxlib' module in libcarrot, an
+ * This file is part of the 'casiowin/core' module in libcarrot, an
* experimental modular libc project.
*
* This file is governed by the CeCILL-C license under French law and abiding
diff --git a/arch/casiowin/easy-grayscales/README.md b/arch/casiowin/easy-grayscales/README.md
deleted file mode 100644
index 643bfe4..0000000
--- a/arch/casiowin/easy-grayscales/README.md
+++ /dev/null
@@ -1,6 +0,0 @@
-# `casiowin/easy-grayscales` -- Compatibility layer with the easy gray library.
-PierrotLL built an easy interface on top of Kucalc's gray engine (see
-`casiowin/revolutionfx`), here it is.
-
-You can find the original library here:
-http://www.planet-casio.com/Fr/logiciels/voir_un_logiciel_casio.php?showid=90
diff --git a/arch/casiowin/easy-grayscales/copyright.yml b/arch/casiowin/easy-grayscales/copyright.yml
deleted file mode 100644
index f4d127d..0000000
--- a/arch/casiowin/easy-grayscales/copyright.yml
+++ /dev/null
@@ -1,6 +0,0 @@
-%YAML 1.2
----
-files: '*'
-copyright:
-- [2017, Thomas "Cakeisalie5" Touhey, thomas@touhey.fr]
-license: free
diff --git a/arch/casiowin/easy-grayscales/include/draw.h b/arch/casiowin/easy-grayscales/include/draw.h
deleted file mode 100644
index 103339f..0000000
--- a/arch/casiowin/easy-grayscales/include/draw.h
+++ /dev/null
@@ -1,69 +0,0 @@
-/* ****************************************************************************
- * draw.h -- Easy grayscale's draw utilities.
- * Copyright (C) 2017 Thomas "Cakeisalie5" Touhey <thomas@touhey.fr>
- *
- * This file is part of the 'casiowin/easy-grayscales' module in libcarrot, an
- * experimental modular libc project.
- *
- * This file is governed by the CeCILL-C license under French law and abiding
- * by the rules of distribution of free software. You can use, modify and or
- * redistribute it under the terms of the CeCILL-C license as circulated by
- * CEA, CNRS and INRIA at the following URL: http://www.cecill.info
- *
- * As a counterpart to the access to the source code and rights to copy, modify
- * and redistribute granted by the license, users are provided only with a
- * limited warranty and the software's author, the holder of the economic
- * rights, and the successive licensors have only limited liability.
- *
- * In this respect, the user's attention is drawn to the risks associated with
- * loading, using, modifying and/or developing and reproducing the software by
- * the user in light of its specific status of free software, that may mean
- * that it is complicated to manipulate, and that also therefore means that it
- * is reserved for developers and experienced professionals having in-depth
- * computer knowledge. Users are therefore encouraged to load and test the
- * software's suitability as regards their requirements in conditions enabling
- * the security of their systems and/or data to be ensured and, more generally,
- * to use and operate it in the same conditions as regards security.
- *
- * The fact that you are presently reading this means you have had knowledge of
- * the CeCILL-C license and that you accept its terms.
- * ************************************************************************* */
-#include <cdefs.h>
-
-/* Buffer mode, draw mode. */
-
-typedef enum {
- LIGHT_BUFFER,
- DARK_BUFFER
-} Buffer;
-
-typedef enum {
- OR,
- AND,
- AND_NOT
-} DrawMode;
-
-/* Camera. */
-
-typedef struct {
- int x;
- int y;
-} Camera;
-
-/* Draw things normally. */
-
-extern void draw_bmp _OF((unsigned char *__bmp, int __x, int __y,
- int __width, int __height, Buffer __buffer, DrawMode __drawmode)) __THROW;
-extern int draw_read_pix _OF((int __x, int __y,
- char *__light_buffer, char *__dark_buffer)) __THROW;
-extern void draw_write_pix _OF((int __x, int __y, int __color,
- char *__light_buffer, char *__dark_buffer)) __THROW;
-
-/* Draw things with clipping. */
-
-extern void draw_bmp_or_cl _OF((unsigned char *__bmp, int __x, int __y,
- int __width, int __height, char *__buffer)) __THROW;
-extern void draw_bmp_and_cl _OF((unsigned char *__bmp, int __x, int __y,
- int __width, int __height, char *__buffer)) __THROW;
-extern void draw_bmp_andnot_cl _OF((unsigned char *__bmp, int __x, int __y,
- int __width, int __height, char *__buffer)) __THROW;
diff --git a/arch/casiowin/easy-grayscales/include/gray.h b/arch/casiowin/easy-grayscales/include/gray.h
deleted file mode 100644
index 3d08339..0000000
--- a/arch/casiowin/easy-grayscales/include/gray.h
+++ /dev/null
@@ -1,54 +0,0 @@
-/* ****************************************************************************
- * gray.h -- Easy grayscale's gray drawing utilities.
- * Copyright (C) 2017 Thomas "Cakeisalie5" Touhey <thomas@touhey.fr>
- *
- * This file is part of the 'casiowin/easy-grayscales' module in libcarrot, an
- * experimental modular libc project.
- *
- * This file is governed by the CeCILL-C license under French law and abiding
- * by the rules of distribution of free software. You can use, modify and or
- * redistribute it under the terms of the CeCILL-C license as circulated by
- * CEA, CNRS and INRIA at the following URL: http://www.cecill.info
- *
- * As a counterpart to the access to the source code and rights to copy, modify
- * and redistribute granted by the license, users are provided only with a
- * limited warranty and the software's author, the holder of the economic
- * rights, and the successive licensors have only limited liability.
- *
- * In this respect, the user's attention is drawn to the risks associated with
- * loading, using, modifying and/or developing and reproducing the software by
- * the user in light of its specific status of free software, that may mean
- * that it is complicated to manipulate, and that also therefore means that it
- * is reserved for developers and experienced professionals having in-depth
- * computer knowledge. Users are therefore encouraged to load and test the
- * software's suitability as regards their requirements in conditions enabling
- * the security of their systems and/or data to be ensured and, more generally,
- * to use and operate it in the same conditions as regards security.
- *
- * The fact that you are presently reading this means you have had knowledge of
- * the CeCILL-C license and that you accept its terms.
- * ************************************************************************* */
-#include <cdefs.h>
-
-/* TODO: describe the screen structure */
-
-typedef struct {
- char *DD1;
- char *DD2;
- char *VRAM1;
- char *VRAM2;
- char which;
- int time1;
- int time2;
-} Screen;
-
-extern void draw_all _OF((char *__buffer)) __THROW;
-extern void reset_calc _OF((void)) __THROW;
-
-extern void gray_interrupt _OF((void)) __THROW;
-
-extern int gray_init _OF((void)) __THROW;
-extern void gray_quit _OF((void)) __THROW;
-extern void gray_swapBuffers _OF((void)) __THROW;
-extern void gray_clearVRAM _OF((void)) __THROW;
-extern Screen *gray_getScreen _OF((void)) __THROW;
diff --git a/arch/casiowin/easy-grayscales/info.yml b/arch/casiowin/easy-grayscales/info.yml
deleted file mode 100644
index 2f6bc31..0000000
--- a/arch/casiowin/easy-grayscales/info.yml
+++ /dev/null
@@ -1,6 +0,0 @@
-%YAML 1.2
----
-magic: potatosdk-1.0
-description: Compatibility layer with the easy gray library.
-requires:
- deps: ['casiowin/fxlib']
diff --git a/arch/casiowin/easy-grayscales/roles.yml b/arch/casiowin/easy-grayscales/roles.yml
deleted file mode 100644
index 80bfcd7..0000000
--- a/arch/casiowin/easy-grayscales/roles.yml
+++ /dev/null
@@ -1,5 +0,0 @@
-%YAML 1.2
----
-include:
- draw.h: Easy grayscale's draw utilities.
- gray.h: Easy grayscale's gray drawing utilities.
diff --git a/arch/casiowin/easy-input/docs b/arch/casiowin/easy-input/docs
new file mode 120000
index 0000000..53ce7e1
--- /dev/null
+++ b/arch/casiowin/easy-input/docs
@@ -0,0 +1 @@
+../../../docs/casiowin/easy-input \ No newline at end of file
diff --git a/arch/casiowin/fxlib/roles.yml b/arch/casiowin/fxlib/roles.yml
index a007fd8..8997c32 100644
--- a/arch/casiowin/fxlib/roles.yml
+++ b/arch/casiowin/fxlib/roles.yml
@@ -24,10 +24,6 @@ src:
comm:
comm.sx: General communication-related syscalls.
serial.sx: Serial communication-related syscalls.
- dirent:
- dirent.h: dirent internals.
- error.c: Standard error number from file-specific error.
- open.c: Open a directory stream.
display:
syscalls.sx: Display-related syscalls.
file:
diff --git a/arch/casiowin/libfxsys/docs b/arch/casiowin/libfxsys/docs
new file mode 120000
index 0000000..5621de3
--- /dev/null
+++ b/arch/casiowin/libfxsys/docs
@@ -0,0 +1 @@
+../../../docs/casiowin/libfxsys \ No newline at end of file
diff --git a/arch/casiowin/revolutionfx/README.md b/arch/casiowin/revolutionfx/README.md
deleted file mode 100644
index 1c17909..0000000
--- a/arch/casiowin/revolutionfx/README.md
+++ /dev/null
@@ -1,8 +0,0 @@
-# `casiowin/revolutionfx` -- compatibility layer with Kucalc's engine
-RevolutionFX was the first gray engine made on CASIO calculators. It was not
-great, as it only implemented an interrupt handler, and no exception handler,
-which sometimes led to exceptions occuring in the corrupted 'exception handler',
-but still, it was part of the CASIO calculator development history.
-
-You can find the original library here:
-http://revolution-fx.sourceforge.net/
diff --git a/arch/casiowin/revolutionfx/copyright.yml b/arch/casiowin/revolutionfx/copyright.yml
deleted file mode 100644
index f4d127d..0000000
--- a/arch/casiowin/revolutionfx/copyright.yml
+++ /dev/null
@@ -1,6 +0,0 @@
-%YAML 1.2
----
-files: '*'
-copyright:
-- [2017, Thomas "Cakeisalie5" Touhey, thomas@touhey.fr]
-license: free
diff --git a/arch/casiowin/revolutionfx/include/revolution.h b/arch/casiowin/revolutionfx/include/revolution.h
deleted file mode 100644
index 8630ce1..0000000
--- a/arch/casiowin/revolutionfx/include/revolution.h
+++ /dev/null
@@ -1,189 +0,0 @@
-/* ****************************************************************************
- * revolution.h -- RevolutionFX's main header.
- * Copyright (C) 2017 Thomas "Cakeisalie5" Touhey <thomas@touhey.fr>
- *
- * This file is part of the 'casiowin/revolutionfx' module in libcarrot, an
- * experimental modular libc project.
- *
- * This file is governed by the CeCILL-C license under French law and abiding
- * by the rules of distribution of free software. You can use, modify and or
- * redistribute it under the terms of the CeCILL-C license as circulated by
- * CEA, CNRS and INRIA at the following URL: http://www.cecill.info
- *
- * As a counterpart to the access to the source code and rights to copy, modify
- * and redistribute granted by the license, users are provided only with a
- * limited warranty and the software's author, the holder of the economic
- * rights, and the successive licensors have only limited liability.
- *
- * In this respect, the user's attention is drawn to the risks associated with
- * loading, using, modifying and/or developing and reproducing the software by
- * the user in light of its specific status of free software, that may mean
- * that it is complicated to manipulate, and that also therefore means that it
- * is reserved for developers and experienced professionals having in-depth
- * computer knowledge. Users are therefore encouraged to load and test the
- * software's suitability as regards their requirements in conditions enabling
- * the security of their systems and/or data to be ensured and, more generally,
- * to use and operate it in the same conditions as regards security.
- *
- * The fact that you are presently reading this means you have had knowledge of
- * the CeCILL-C license and that you accept its terms.
- * ************************************************************************* */
-#include <cdefs.h>
-#include <fx/display.h>
-#include <fx/keyboard.h>
-#define AllClr_DD Bdisp_AllClr_DD
-#define PutDisp_DD Bdisp_PutDisp_DD
-#define SetPoint_DD Bdisp_SetPoint_DD
-#define SetPoint_VRAM Bdisp_SetPoint_VRAM
-__BEGIN_DECLS
-
-/* VRAM */
-#ifndef VRAM
-# define VRAM ((unsigned char*)0x8800498D) /* FIXME */
-#endif
-/* ************************************************************************* */
-/* Access the RTC */
-/* ************************************************************************* */
-/* The SuperH sees these values as BCD (binary coded decimals).
- * For coding 2007 in decimal:
- * thousands = 2, hundreds = 0, tens = 0, ones = 7 */
-
-extern void RTCReset _OF((void)) __THROW;
-extern void RTCStart _OF((void)) __THROW;
-extern void RTCStop _OF((void)) __THROW;
-
-extern void RTCSetYear _OF((unsigned char __thousands,
- unsigned char __hundreds, unsigned char __tens, unsigned char __ones))
- __THROW;
-extern void RTCSetMonth _OF((unsigned char __tens, unsigned char __ones))
- __THROW;
-extern void RTCSetDayOfMonth _OF((unsigned char __tens, unsigned char __ones))
- __THROW;
-extern void RTCSetDayOfWeek _OF((unsigned char __ones)) __THROW;
-extern void RTCSetHour _OF((unsigned char __tens, unsigned char __ones))
- __THROW;
-extern void RTCSetMinute _OF((unsigned char __tens, unsigned char __ones))
- __THROW;
-extern void RTCSetSecond _OF((unsigned char __tens, unsigned char __ones))
- __THROW;
-
-extern int RTCReadYear _OF((void)) __THROW;
-extern int RTCReadMonth _OF((void)) __THROW;
-extern int RTCReadDayOfMonth _OF((void)) __THROW;
-extern int RTCReadDayOfWeek _OF((void)) __THROW;
-extern int RTCReadHour _OF((void)) __THROW;
-extern int RTCReadMinute _OF((void)) __THROW;
-extern int RTCReadSecond _OF((void)) __THROW;
-/* ************************************************************************* */
-/* Access the ports */
-/* ************************************************************************* */
-/* Ports A~N (excluding I) and the SCP (Serial Communications Port). */
-
-extern unsigned char ReadPort_A _OF((void)) __THROW;
-extern unsigned char ReadPort_B _OF((void)) __THROW;
-extern unsigned char ReadPort_C _OF((void)) __THROW;
-extern unsigned char ReadPort_D _OF((void)) __THROW;
-extern unsigned char ReadPort_E _OF((void)) __THROW;
-extern unsigned char ReadPort_F _OF((void)) __THROW;
-extern unsigned char ReadPort_G _OF((void)) __THROW;
-extern unsigned char ReadPort_H _OF((void)) __THROW;
-extern unsigned char ReadPort_J _OF((void)) __THROW;
-extern unsigned char ReadPort_K _OF((void)) __THROW;
-extern unsigned char ReadPort_L _OF((void)) __THROW;
-extern unsigned char ReadPort_M _OF((void)) __THROW;
-extern unsigned char ReadPort_N _OF((void)) __THROW;
-extern unsigned char ReadPort_SCP _OF((void)) __THROW;
-/* ************************************************************************* */
-/* Change the CPU speed */
-/* ************************************************************************* */
-/* This is called overclocking.
- * Before doing this, please check that your program really cannot be
- * optimized enough to run correctly. */
-extern void CPUSpeedNormal _OF((void)) __THROW;
-extern void CPUSpeedDouble _OF((void)) __THROW;
-extern void CPUSpeedTriple _OF((void)) __THROW;
-extern void CPUSpeedQuadruple _OF((void)) __THROW;
-/* ************************************************************************* */
-/* Access and control the serial port */
-/* ************************************************************************* */
-/* Initialize, start, stop. */
-extern void Init_SerialPort _OF((void)) __THROW;
-extern void Start_SerialPort _OF((void)) __THROW;
-extern void Stop_SerialPort _OF((void)) __THROW;
-
-/* Transmit and receive data. */
-extern void SerialTransmit _OF((unsigned char __value)) __THROW;
-extern unsigned char SerialReceive _OF((void)) __THROW;
-/* ************************************************************************* */
-/* Miscallaneous hardware functions */
-/* ************************************************************************* */
-/* Reboot the calculator. */
-extern void Reset_Calc _OF((void)) __THROW;
-/* ************************************************************************* */
-/* Graphic functions */
-/* ************************************************************************* */
-/* Constants. */
-
-enum __REVOLUTION_COLOR {
- __REVOLUTION_WHITE = 0,
- __REVOLUTION_BLACK = 1,
- __REVOLUTION_INVERT = 2
-};
-
-#ifdef WHITE
-# undef WHITE
-#endif
-#define WHITE __REVOLUTION_WHITE
-#ifdef BLACK
-# undef BLACK
-#endif
-#define BLACK __REVOLUTION_BLACK
-#ifdef INVERT
-# undef INVERT
-#endif
-#define INVERT __REVOLUTION_INVERT
-
-/* Gray engine related functions */
-# if 0 /* gray engine is yet to be implemented */
-extern void DrawAll _OF((unsigned long *__buffer)) __THROW;
-extern void GrayInit _OF((int __countdown, int __countdown2)) __THROW;
-extern void GrayLinkBuffers _OF((unsigned long *__buf0,
- unsigned long *__buf1)) __THROW;
-extern void GrayEnd _OF((void)) __THROW;
-extern void CopyVRAM _OF((unsigned int *__buffer)) __THROW;
-extern void Change_Contrast _OF((char __contrast)) __THROW;
-# endif
-
-/* And the functions. */
-
-extern char GetPixel _OF((char __x, char __y, unsigned char *__buf)) __THROW;
-extern void PlotPixel _OF((char __x, char __y, unsigned char *__buf,
- char __drawtype)) __THROW;
-extern void DrawLine _OF((char __x1, char __y1, char __x2, char __y2,
- unsigned char *__buf, char __color)) __THROW;
-
-extern void DrawSprite8 _OF((char __x, char __y, unsigned char *__buffer,
- char *__bitmap, int __trans)) __THROW;
-extern void DrawSprite8x16 _OF((char __x, char __y, unsigned char *__buffer,
- char *__bitmap, int __trans)) __THROW;
-extern void DrawSprite16 _OF((char __x, char __y, unsigned char *__buffer,
- char *__bitmap, int __trans)) __THROW;
-extern void DrawSprite32 _OF((char __x, char __y, unsigned char *__buffer,
- char *__bitmap, int __trans)) __THROW;
-
-# if 0 /* gray engine is yet to be implemented */
-extern void DDrawSprite8 _OF((char __x, char __y,
- unsigned char *__buf0, unsigned char *__buf1,
- char *__bitmap0, char *__bitmap1, int __trans)) __THROW;
-extern void DDrawSprite8x16 _OF((char __x, char __y,
- unsigned char *__buf0, unsigned char *__buf1,
- char *__bitmap0, char *__bitmap1, int __trans)) __THROW;
-extern void DDrawSprite16 _OF((char __x, char __y,
- unsigned char *__buf0, unsigned char *__buf1,
- char *__bitmap0, char *__bitmap1, int __trans)) __THROW;
-# endif
-
-/* Other functions */
-extern int string_input _OF((int __x, int __y, char __string[])) __THROW;
-
-__END_DECLS
diff --git a/arch/casiowin/revolutionfx/info.yml b/arch/casiowin/revolutionfx/info.yml
deleted file mode 100644
index 2a11ada..0000000
--- a/arch/casiowin/revolutionfx/info.yml
+++ /dev/null
@@ -1,6 +0,0 @@
-%YAML 1.2
----
-magic: potatosdk-1.0
-description: RevolutionFX port.
-out: librevolutionfx
-deps: ['casiowin/fxlib']
diff --git a/arch/casiowin/revolutionfx/roles.yml b/arch/casiowin/revolutionfx/roles.yml
deleted file mode 100644
index 77e0ff9..0000000
--- a/arch/casiowin/revolutionfx/roles.yml
+++ /dev/null
@@ -1,4 +0,0 @@
-%YAML 1.2
----
-include:
- revolution.h: RevolutionFX's main header.
diff --git a/docs/all/compiler-gcc/index.en.md b/docs/all/compiler-gcc/index.en.md
new file mode 100644
index 0000000..58bae30
--- /dev/null
+++ b/docs/all/compiler-gcc/index.en.md
@@ -0,0 +1,8 @@
+---
+title: The GNU C Compiler
+---
+GCC is the main compiler of the GNU project. It has been created in 1986
+by Richard Stallman and Len Tower to manage ANSI C, and has been maintained
+ever since while being ported to other languages and architectures.
+
+This module provides the bits headers for this compiler.
diff --git a/arch/all/compiler-renesas/README.md b/docs/all/compiler-renesas/index.en.md
index a6965b6..cbac093 100644
--- a/arch/all/compiler-renesas/README.md
+++ b/docs/all/compiler-renesas/index.en.md
@@ -1,7 +1,9 @@
-# Renesas C/C++ Compiler
+---
+title: Renesas C/C++ Compiler header bits
+---
In 1998, Hitachi provided a C/C++ compiler, an assembler, and an optimizing
linkage editor for the SuperH RISC engine microcomputers. In 2003, Renesas
bought Hitachi, that's why we know deal with the Renesas C/C++ compiler.
-This module provides the bits headers for this compiler.
-See `BITS.md` from the `all/core` module.
+This module provides the header bits for this compiler, required by
+[the core module]([all/core]) and [the SuperH core module]([all/core-sh]).
diff --git a/arch/all/iconv/README.md b/docs/all/iconv/index.en.md
index 36eb0fe..c6d91ed 100644
--- a/arch/all/iconv/README.md
+++ b/docs/all/iconv/index.en.md
@@ -1,5 +1,6 @@
-# `all/iconv` -- Character encoding conversions.
-## Introduction
+---
+title: Character encoding conversions.
+---
`iconv` is the generic character conversion interface defined by the
Single Unix Specification (SUS) [here][sus_iconv].
More documentation about an other example of iconv implementation
diff --git a/docs/all/math/index.en.md b/docs/all/math/index.en.md
new file mode 100644
index 0000000..ecaafb5
--- /dev/null
+++ b/docs/all/math/index.en.md
@@ -0,0 +1,5 @@
+---
+title: Mathematical functions.
+---
+This is the platform-independent module containing mathematic headers and
+utilities.
diff --git a/arch/all/stdcocorico/README.md b/docs/all/stdcocorico/index.en.md
index 881eb65..67464b9 100644
--- a/arch/all/stdcocorico/README.md
+++ b/docs/all/stdcocorico/index.en.md
@@ -1,5 +1,6 @@
-# `all/stdcocorico` -- Implementation of `stdcocorico.h`
-## Introduction
+---
+title: Cocorico — code in french!
+---
The Cocorico Standard is a humoristic standard to code in french, using macros
from the `stdcocorico.h` header. It was invented by Simon "Gee" Giraudot,
see [his post about it][art].
diff --git a/docs/casiowin/core-crt/index.en.md b/docs/casiowin/core-crt/index.en.md
new file mode 100644
index 0000000..39969e5
--- /dev/null
+++ b/docs/casiowin/core-crt/index.en.md
@@ -0,0 +1,6 @@
+---
+title: C runtime objects for the fx-9860G.
+---
+This module provides the C runtime objects (such as `crt0.o`), that shall
+always be merged into the final binary, as they initialize the environment,
+prepare the libraries, etc, for CASIOWIN.
diff --git a/docs/casiowin/core/index.en.md b/docs/casiowin/core/index.en.md
new file mode 100644
index 0000000..3fca1cf
--- /dev/null
+++ b/docs/casiowin/core/index.en.md
@@ -0,0 +1,6 @@
+---
+title: Adaptation of the core for the fx-9860G.
+---
+These are the bits and tricks that are part of the libc, not fxlib.
+They should be able to work without the `fxlib` module, by re-implementing
+the syscalls manually.
diff --git a/arch/casiowin/easy-input/README.md b/docs/casiowin/easy-input/index.en.md
index f1ff759..6b5edbf 100644
--- a/arch/casiowin/easy-input/README.md
+++ b/docs/casiowin/easy-input/index.en.md
@@ -1,4 +1,6 @@
-# `casiowin/easy-input` -- Easy input.
+---
+title: Easy input utilities for the fx-9860G.
+---
This library was made by Louis "Dark Storm" Gatin for easy dialogs.
The original version was `3.2`.
diff --git a/docs/casiowin/fxlib/display.md b/docs/casiowin/fxlib/display.md
deleted file mode 100644
index d0f1650..0000000
--- a/docs/casiowin/fxlib/display.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# Managing the display with `fxlib`
-
-
- void Bdisp_AllClr_DD(void);
- void Bdisp_AllClr_VRAM(void);
- void Bdisp_AllClr_DDVRAM(void);
-
- void Bdisp_AreaClr_DD(const DISPBOX *pArea);
- void Bdisp_AreaClr_VRAM(const DISPBOX *pArea);
- void Bdisp_AreaClr_DDVRAM(const DISPBOX *pArea);
diff --git a/docs/casiowin/fxlib/vram.en.md b/docs/casiowin/fxlib/vram.en.md
deleted file mode 100644
index 76dc973..0000000
--- a/docs/casiowin/fxlib/vram.en.md
+++ /dev/null
@@ -1,4 +0,0 @@
----
-title: VRAM management in the CASIO fx-9860G
----
-
diff --git a/arch/casiowin/libfxsys/README.md b/docs/casiowin/libfxsys/index.en.md
index 4f3b9ac..e819ee7 100644
--- a/arch/casiowin/libfxsys/README.md
+++ b/docs/casiowin/libfxsys/index.en.md
@@ -1,4 +1,6 @@
-# `casiowin/libfxsys` -- compatibility layer with Andreas Bertheussen's fxlib
+---
+title: Compatibility layer with Andreas Bertheussen's fxlib
+---
While making his own utilities on Linux, Andreas Bertheussen also made a
little libc with some headers more or less equivalents to the fxlib's ones.
This module brings compatibility with the very few add-ins using this library.