Skip to content

Commit

Permalink
Lipsticks
Browse files Browse the repository at this point in the history
Signed-off-by: yamacir-kit <[email protected]>
  • Loading branch information
yamacir-kit committed Jun 11, 2022
1 parent 01efeb0 commit 62ab16c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 18 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ sudo rm -rf /usr/local/share/meevax

| Target Name | Description
|:-------------------|:--
| `all` (default) | Build shared-library `libmeevax.0.4.57.so` and executable `meevax`.
| `all` (default) | Build shared-library `libmeevax.0.4.58.so` and executable `meevax`.
| `test` | Test executable `meevax`.
| `package` | Generate debian package `meevax_0.4.57_amd64.deb`.
| `package` | Generate debian package `meevax_0.4.58_amd64.deb`.
| `install` | Copy files into `/usr/local` __(1)__.
| `install.deb` | `all` + `package` + `sudo apt install <meevax>.deb`
| `safe-install.deb` | `all` + `test` + `package` + `sudo apt install <meevax>.deb`
Expand All @@ -120,7 +120,7 @@ __(1)__ Meevax installed by `make install` cannot be uninstalled by the system's
## Usage

```
Meevax Lisp System, version 0.4.57
Meevax Lisp System, version 0.4.58
Usage: meevax [OPTION...] [FILE...]
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.4.57
0.4.58
17 changes: 8 additions & 9 deletions include/meevax/kernel/configurator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ inline namespace kernel
public:
static inline auto batch = false;
static inline auto debug = false;
static inline auto interactive = false;
static inline auto interactive = true;
static inline auto trace = false;
static inline auto verbose = false;

Expand Down Expand Up @@ -198,11 +198,7 @@ inline namespace kernel
{
static std::regex const pattern { R"(--(\w[-\w]+)(=(.*))?|-([\w]+))" };

if (std::empty(args))
{
interactive = true;
}
else for (auto current_option = std::begin(args); current_option != std::end(args); ++current_option) [&]()
for (auto current_option = std::begin(args); current_option != std::end(args); ++current_option) [&]()
{
std::smatch analysis {};

Expand All @@ -214,7 +210,7 @@ inline namespace kernel
// std::cout << header("") << "analysis[3] = " << analysis[3] << std::endl;
// std::cout << header("") << "analysis[4] = " << analysis[4] << std::endl;

if (auto const current_short_options = analysis.str(4); not current_short_options.empty())
if (auto const& current_short_options = analysis.str(4); not current_short_options.empty())
{
for (auto current_short_option = std::cbegin(current_short_options); current_short_option != std::cend(current_short_options); ++current_short_option)
{
Expand All @@ -239,7 +235,8 @@ inline namespace kernel
}
else
{
throw error(make<string>(cat, "unknown short-option -", *current_short_option));
throw error(make<string>("unknown short-option"),
make<symbol>(*current_short_option));
}
}
}
Expand All @@ -266,11 +263,13 @@ inline namespace kernel
}
else
{
throw error(make<string>(cat, "unknown long-option: ", *current_option));
throw error(make<string>("unknown long-option"),
make<symbol>(*current_option));
}
}
else
{
interactive = false;
return load(*current_option);
}

Expand Down
5 changes: 0 additions & 5 deletions src/kernel/environment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,6 @@ inline namespace kernel
define(binding.as<absolute>().symbol(),
binding.as<absolute>().load());
}

if (interactive)
{
print(faint("; ", length(bindings), " identifiers imported."));
}
}

auto environment::define(const_reference name, const_reference value) -> void
Expand Down

0 comments on commit 62ab16c

Please sign in to comment.