Skip to content

Commit ff7eaca

Browse files
authored
Merge pull request #359 from yamacir-kit/cleanup
Cleanup
2 parents ead6ece + cd4d9e3 commit ff7eaca

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+1268
-1639
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ sudo rm -rf /usr/local/share/meevax
100100

101101
| Target Name | Description
102102
|:-------------------|:--
103-
| `all` (default) | Build shared-library `libmeevax.0.3.682.so` and executable `meevax`.
103+
| `all` (default) | Build shared-library `libmeevax.0.3.727.so` and executable `meevax`.
104104
| `test` | Test executable `meevax`.
105-
| `package` | Generate debian package `meevax_0.3.682_amd64.deb`.
105+
| `package` | Generate debian package `meevax_0.3.727_amd64.deb`.
106106
| `install` | Copy files into `/usr/local` __(1)__.
107107
| `install.deb` | `all` + `package` + `sudo apt install <meevax>.deb`
108108
| `safe-install.deb` | `all` + `test` + `package` + `sudo apt install <meevax>.deb`
@@ -117,7 +117,7 @@ __(1)__ Meevax installed by `make install` cannot be uninstalled by the system's
117117
## Usage
118118

119119
```
120-
Meevax Lisp System, version 0.3.682
120+
Meevax Lisp System, version 0.3.727
121121
122122
Usage: meevax [OPTION...] [FILE...]
123123

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.3.682
1+
0.3.727

basis/r7rs.ss

-6
Original file line numberDiff line numberDiff line change
@@ -264,12 +264,6 @@ parameterize ; is defined in srfi-39.ss
264264

265265
; ---- 6.2. Numbers ------------------------------------------------------------
266266

267-
(define (finite? z) (not (infinite? z)))
268-
269-
(define (infinite? z)
270-
(or (= +inf.0 z)
271-
(= -inf.0 z)))
272-
273267
; TODO exact-integer-sqrt
274268

275269
; ---- 6.3. Booleans -----------------------------------------------------------

basis/srfi-78.ss

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
((report) 100)
6565
(else (error "unrecognized mode" mode)))))
6666

67-
(check-set-mode! 'report-failed)
67+
(check-set-mode! 'report)
6868

6969
; -- state --
7070

example/example.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ extern "C"
3232
}
3333
}
3434

35-
return unspecified;
35+
return unspecified_object;
3636
}
3737
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
/*
2+
Copyright 2018-2021 Tatsuya Yamasaki.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
#ifndef INCLUDED_MEEVAX_FUNCTIONAL_ARITHMETIC_OPERATION_HPP
18+
#define INCLUDED_MEEVAX_FUNCTIONAL_ARITHMETIC_OPERATION_HPP
19+
20+
#include <functional>
21+
#include <numeric>
22+
#include <ostream>
23+
24+
namespace meevax
25+
{
26+
inline namespace functional
27+
{
28+
#define DEFINE(TYPENAME, BASE, ...) \
29+
struct TYPENAME : public std::BASE<void> {} constexpr __VA_ARGS__; \
30+
auto operator <<(std::ostream &, TYPENAME const&) -> std::ostream &
31+
32+
DEFINE(addition, plus , add);
33+
DEFINE(division, divides , div);
34+
DEFINE(modulo, modulus , mod);
35+
DEFINE(multiplication, multiplies, mul);
36+
DEFINE(subtraction, minus , sub);
37+
38+
#undef DEFINE
39+
40+
#define DEFINE(TYPENAME, FUNCTION, ...) \
41+
struct TYPENAME \
42+
{ \
43+
template <typename... Ts> \
44+
constexpr auto operator ()(Ts&&... xs) const \
45+
-> decltype(std::FUNCTION(std::forward<decltype(xs)>(xs)...)) \
46+
{ \
47+
return FUNCTION(std::forward<decltype(xs)>(xs)...); \
48+
} \
49+
} constexpr __VA_ARGS__
50+
51+
DEFINE(greatest_common_divisor, gcd, gcd);
52+
DEFINE(least_common_multiple , lcm, lcm);
53+
54+
#undef DEFINE
55+
} // namespace functional
56+
} // namespace meevax
57+
58+
#endif // INCLUDED_MEEVAX_FUNCTIONAL_ARITHMETIC_OPERATION_HPP

include/meevax/functional/division.hpp

-36
This file was deleted.

include/meevax/functional/greatest_common_divisor.hpp

-46
This file was deleted.

include/meevax/functional/modulo.hpp

-36
This file was deleted.

include/meevax/functional/multiplication.hpp

-36
This file was deleted.

include/meevax/functional/numerical.hpp

-77
This file was deleted.

include/meevax/functional/subtraction.hpp

-36
This file was deleted.

0 commit comments

Comments
 (0)