Browse Source

some improvements

master
Erik Zscheile 2 years ago
parent
commit
bc2f477bcf
4 changed files with 6 additions and 6 deletions
  1. +1
    -1
      CMakeLists.txt
  2. +2
    -2
      args.cxx
  3. +2
    -2
      args.hpp
  4. +1
    -1
      main.cxx

+ 1
- 1
CMakeLists.txt View File

@@ -8,7 +8,7 @@ find_package(Threads REQUIRED)
find_package(RocksDB REQUIRED)

include_directories(${RocksDB_INCLUDE_DIRS})
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-rtti -fno-plt")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-rtti -fno-plt -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables")

add_executable(zstreedb2 args.cxx error.cxx main.cxx)
target_link_libraries(zstreedb2 Threads::Threads RocksDB::rocksdb-shared)


+ 2
- 2
args.cxx View File

@@ -97,11 +97,11 @@ bool args_t::flag_use_ro() const noexcept {
}
}

void usage() {
void usage() noexcept {
puts("USAGE: zstreedb2 [-j|-J|-z|-Z] CMD NODE ARGS...");
}

void help() {
void help() noexcept {
usage();

puts("\ncompression options:\n"


+ 2
- 2
args.hpp View File

@@ -24,7 +24,7 @@ struct args_t final {
bool flag_use_ro() const noexcept;
};

void usage();
void help();
void usage() noexcept;
void help() noexcept;

}

+ 1
- 1
main.cxx View File

@@ -94,7 +94,7 @@ int main(const int argc, char *argv[]) {
AC(PRINT)
{
if(args.cmd_args.size() < 3)
errmsg(1, "invalid invocation to 'zstreedb2 p BFK BFV AFV'");
errmsg(1, "invalid invocation to 'zstreedb2 p PREFIX BFK BFV AFV'");

const bool sall = (args.sel_node == "*");
const string xpar = args.sel_node + '.';


Loading…
Cancel
Save