mirror of
https://github.com/Dushistov/sdcv.git
synced 2025-12-16 18:01:54 +00:00
Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eeee360fb0 | ||
|
|
f69973e1fa | ||
|
|
931fc98478 | ||
|
|
6f30be7815 | ||
|
|
1a926d1b69 | ||
|
|
e89cfa18b1 | ||
|
|
12d9ea5b97 | ||
|
|
920c2bafb9 | ||
|
|
5d2332b0cb | ||
|
|
452a4e07fb | ||
|
|
59ef936288 |
@@ -15,7 +15,7 @@ BreakBeforeBinaryOperators: true
|
|||||||
BreakBeforeTernaryOperators: true
|
BreakBeforeTernaryOperators: true
|
||||||
BreakConstructorInitializersBeforeComma: true
|
BreakConstructorInitializersBeforeComma: true
|
||||||
BinPackParameters: true
|
BinPackParameters: true
|
||||||
ColumnLimit: 0
|
ColumnLimit: 120
|
||||||
ConstructorInitializerAllOnOneLineOrOnePerLine: false
|
ConstructorInitializerAllOnOneLineOrOnePerLine: false
|
||||||
DerivePointerAlignment: false
|
DerivePointerAlignment: false
|
||||||
ExperimentalAutoDetectBinPacking: false
|
ExperimentalAutoDetectBinPacking: false
|
||||||
|
|||||||
@@ -3,6 +3,10 @@ project(sdcv)
|
|||||||
cmake_minimum_required(VERSION 3.5 FATAL_ERROR)
|
cmake_minimum_required(VERSION 3.5 FATAL_ERROR)
|
||||||
cmake_policy(VERSION 3.5)
|
cmake_policy(VERSION 3.5)
|
||||||
|
|
||||||
|
set(CMAKE_CXX_STANDARD 11)
|
||||||
|
set(CMAKE_CXX_STANDARD_REQUIRED True)
|
||||||
|
set(CMAKE_CXX_EXTENSIONS False)
|
||||||
|
|
||||||
include("${CMAKE_CURRENT_SOURCE_DIR}/cmake/compiler.cmake")
|
include("${CMAKE_CURRENT_SOURCE_DIR}/cmake/compiler.cmake")
|
||||||
|
|
||||||
set(ZLIB_FIND_REQUIRED True)
|
set(ZLIB_FIND_REQUIRED True)
|
||||||
@@ -91,7 +95,7 @@ set(CPACK_PACKAGE_VENDOR "Evgeniy Dushistov <dushistov@mail.ru>")
|
|||||||
set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README.org")
|
set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README.org")
|
||||||
set(CPACK_PACKAGE_VERSION_MAJOR "0")
|
set(CPACK_PACKAGE_VERSION_MAJOR "0")
|
||||||
set(CPACK_PACKAGE_VERSION_MINOR "5")
|
set(CPACK_PACKAGE_VERSION_MINOR "5")
|
||||||
set(CPACK_PACKAGE_VERSION_PATCH "3")
|
set(CPACK_PACKAGE_VERSION_PATCH "4")
|
||||||
|
|
||||||
set(sdcv_VERSION
|
set(sdcv_VERSION
|
||||||
"${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
|
"${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
|
||||||
@@ -144,5 +148,6 @@ if (BUILD_TESTS)
|
|||||||
add_sdcv_shell_test(t_datadir)
|
add_sdcv_shell_test(t_datadir)
|
||||||
add_sdcv_shell_test(t_return_code)
|
add_sdcv_shell_test(t_return_code)
|
||||||
add_sdcv_shell_test(t_multiple_results)
|
add_sdcv_shell_test(t_multiple_results)
|
||||||
|
add_sdcv_shell_test(t_newlines_in_ifo)
|
||||||
|
|
||||||
endif (BUILD_TESTS)
|
endif (BUILD_TESTS)
|
||||||
|
|||||||
@@ -16,19 +16,6 @@ if (NOT DEFINED SDCV_COMPILER_IS_GCC_COMPATIBLE)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (MSVC AND (MSVC_VERSION LESS 1900))
|
|
||||||
message(FATAL_ERROR "MSVC version ${MSVC_VERSION} have no full c++11 support")
|
|
||||||
elseif (MSVC)
|
|
||||||
add_definitions(-DNOMINMAX)
|
|
||||||
elseif (NOT MSVC)
|
|
||||||
check_cxx_compiler_flag("-std=c++11" CXX_SUPPORTS_CXX11)
|
|
||||||
if (CXX_SUPPORTS_CXX11)
|
|
||||||
append("-std=c++11" CMAKE_CXX_FLAGS)
|
|
||||||
else ()
|
|
||||||
message(FATAL_ERROR "sdcv requires C++11 support but the '-std=c++11' flag isn't supported.")
|
|
||||||
endif()
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
if (SDCV_COMPILER_IS_GCC_COMPATIBLE)
|
if (SDCV_COMPILER_IS_GCC_COMPATIBLE)
|
||||||
append("-Wall" "-Wextra" "-Wformat-security" "-Wcast-align" "-Werror=format" "-Wcast-qual" CMAKE_C_FLAGS)
|
append("-Wall" "-Wextra" "-Wformat-security" "-Wcast-align" "-Werror=format" "-Wcast-qual" CMAKE_C_FLAGS)
|
||||||
append("-Wall" "-pedantic" "-Wextra" "-Wformat-security" "-Wcast-align" "-Werror=format" "-Wcast-qual" CMAKE_CXX_FLAGS)
|
append("-Wall" "-pedantic" "-Wextra" "-Wformat-security" "-Wcast-align" "-Werror=format" "-Wcast-qual" CMAKE_CXX_FLAGS)
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
#ifdef HAVE_MMAP
|
#ifdef HAVE_MMAP
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
@@ -43,6 +44,13 @@ inline bool MapFile::open(const char *file_name, unsigned long file_size)
|
|||||||
// g_print("Open file %s failed!\n",fullfilename);
|
// g_print("Open file %s failed!\n",fullfilename);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
struct stat st;
|
||||||
|
if (fstat(mmap_fd, &st) == -1 || st.st_size < 0 || (st.st_size == 0 && S_ISREG(st.st_mode))
|
||||||
|
|| sizeof(st.st_size) > sizeof(file_size) || static_cast<unsigned long>(st.st_size) != file_size) {
|
||||||
|
close(mmap_fd);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
data = (gchar *)mmap(nullptr, file_size, PROT_READ, MAP_SHARED, mmap_fd, 0);
|
data = (gchar *)mmap(nullptr, file_size, PROT_READ, MAP_SHARED, mmap_fd, 0);
|
||||||
if ((void *)data == (void *)(-1)) {
|
if ((void *)data == (void *)(-1)) {
|
||||||
// g_print("mmap file %s failed!\n",idxfilename);
|
// g_print("mmap file %s failed!\n",idxfilename);
|
||||||
@@ -50,10 +58,8 @@ inline bool MapFile::open(const char *file_name, unsigned long file_size)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
#elif defined(_WIN32)
|
#elif defined(_WIN32)
|
||||||
hFile = CreateFile(file_name, GENERIC_READ, 0, nullptr, OPEN_ALWAYS,
|
hFile = CreateFile(file_name, GENERIC_READ, 0, nullptr, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, 0);
|
||||||
FILE_ATTRIBUTE_NORMAL, 0);
|
hFileMap = CreateFileMapping(hFile, nullptr, PAGE_READONLY, 0, file_size, nullptr);
|
||||||
hFileMap = CreateFileMapping(hFile, nullptr, PAGE_READONLY, 0,
|
|
||||||
file_size, nullptr);
|
|
||||||
data = (gchar *)MapViewOfFile(hFileMap, FILE_MAP_READ, 0, 0, file_size);
|
data = (gchar *)MapViewOfFile(hFileMap, FILE_MAP_READ, 0, 0, file_size);
|
||||||
#else
|
#else
|
||||||
gsize read_len;
|
gsize read_len;
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <cctype>
|
#include <cctype>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
#include <map>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
|
||||||
#include <glib/gstdio.h>
|
#include <glib/gstdio.h>
|
||||||
@@ -78,108 +79,93 @@ bool DictInfo::load_from_ifo_file(const std::string &ifofilename,
|
|||||||
{
|
{
|
||||||
ifo_file_name = ifofilename;
|
ifo_file_name = ifofilename;
|
||||||
glib::CharStr buffer;
|
glib::CharStr buffer;
|
||||||
if (!g_file_get_contents(ifofilename.c_str(), get_addr(buffer), nullptr, nullptr))
|
gsize length = 0;
|
||||||
|
if (!g_file_get_contents(ifofilename.c_str(), get_addr(buffer), &length, nullptr)) {
|
||||||
|
fprintf(stderr, "Can not read from %s\n", ifofilename.c_str());
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
static const char TREEDICT_MAGIC_DATA[] = "StarDict's treedict ifo file";
|
static const char TREEDICT_MAGIC_DATA[] = "StarDict's treedict ifo file";
|
||||||
static const char DICT_MAGIC_DATA[] = "StarDict's dict ifo file";
|
static const char DICT_MAGIC_DATA[] = "StarDict's dict ifo file";
|
||||||
|
|
||||||
const gchar *magic_data = istreedict ? TREEDICT_MAGIC_DATA : DICT_MAGIC_DATA;
|
const gchar *magic_data = istreedict ? TREEDICT_MAGIC_DATA : DICT_MAGIC_DATA;
|
||||||
static const unsigned char utf8_bom[] = { 0xEF, 0xBB, 0xBF, '\0' };
|
static const gchar utf8_bom[] = { (gchar)0xEF, (gchar)0xBB, (gchar)0xBF, '\0' };
|
||||||
if (!g_str_has_prefix(
|
|
||||||
g_str_has_prefix(get_impl(buffer), (const gchar *)(utf8_bom)) ? get_impl(buffer) + 3 : get_impl(buffer),
|
const gchar *p = get_impl(buffer);
|
||||||
magic_data)) {
|
const gchar *end = p + length;
|
||||||
|
|
||||||
|
if (g_str_has_prefix(p, utf8_bom)) {
|
||||||
|
p += strlen(utf8_bom);
|
||||||
|
}
|
||||||
|
if (!g_str_has_prefix(p, magic_data)) {
|
||||||
|
fprintf(stderr, "No magic header(%s) in ifo file\n", magic_data);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
p += strlen(magic_data);
|
||||||
|
|
||||||
gchar *p1 = get_impl(buffer) + strlen(magic_data) - 1;
|
std::map<std::string, std::string> key_value_map;
|
||||||
|
while (p != end) {
|
||||||
gchar *p2 = strstr(p1, "\nwordcount=");
|
auto key_it = std::find_if(p, end, [](gchar ch) { return !g_ascii_isspace(ch); });
|
||||||
if (p2 == nullptr)
|
if (key_it == end) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
auto eq_it = std::find(key_it, end, gchar('='));
|
||||||
|
if (eq_it == end) {
|
||||||
|
fprintf(stderr, "Invalid part of ifo (no '=') here: %s\n", key_it);
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
auto val_it = std::find_if(eq_it + 1, end, [](gchar ch) { return !g_ascii_isspace(ch); });
|
||||||
|
if (val_it == end) {
|
||||||
|
key_value_map.insert(std::make_pair(std::string(key_it, eq_it), std::string()));
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
gchar *p3 = strchr(p2 + sizeof("\nwordcount=") - 1, '\n');
|
auto line_end_it = std::find_if(val_it, end, [](gchar ch) { return ch == '\r' || ch == '\n'; });
|
||||||
|
key_value_map.insert(std::make_pair(std::string(key_it, eq_it), std::string(val_it, line_end_it)));
|
||||||
|
if (line_end_it == end)
|
||||||
|
break;
|
||||||
|
p = line_end_it + 1;
|
||||||
|
}
|
||||||
|
|
||||||
wordcount = atol(std::string(p2 + sizeof("\nwordcount=") - 1, p3 - (p2 + sizeof("\nwordcount=") - 1)).c_str());
|
std::map<std::string, std::string>::const_iterator it;
|
||||||
|
#define FIND_KEY(_key_) \
|
||||||
|
it = key_value_map.find(_key_); \
|
||||||
|
if (it == key_value_map.end()) { \
|
||||||
|
fprintf(stderr, "Can not find '%s' in ifo file\n", _key_); \
|
||||||
|
return false; \
|
||||||
|
}
|
||||||
|
|
||||||
|
FIND_KEY("wordcount")
|
||||||
|
wordcount = atol(it->second.c_str());
|
||||||
|
|
||||||
if (istreedict) {
|
if (istreedict) {
|
||||||
p2 = strstr(p1, "\ntdxfilesize=");
|
FIND_KEY("tdxfilesize")
|
||||||
if (p2 == nullptr)
|
index_file_size = atol(it->second.c_str());
|
||||||
return false;
|
|
||||||
|
|
||||||
p3 = strchr(p2 + sizeof("\ntdxfilesize=") - 1, '\n');
|
|
||||||
|
|
||||||
index_file_size = atol(std::string(p2 + sizeof("\ntdxfilesize=") - 1, p3 - (p2 + sizeof("\ntdxfilesize=") - 1)).c_str());
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
FIND_KEY("idxfilesize")
|
||||||
|
index_file_size = atol(it->second.c_str());
|
||||||
|
}
|
||||||
|
FIND_KEY("bookname")
|
||||||
|
bookname = it->second;
|
||||||
|
|
||||||
p2 = strstr(p1, "\nidxfilesize=");
|
#define SET_IF_EXISTS(_key_) \
|
||||||
if (p2 == nullptr)
|
it = key_value_map.find(#_key_); \
|
||||||
return false;
|
if (it != key_value_map.end()) { \
|
||||||
|
_key_ = it->second; \
|
||||||
p3 = strchr(p2 + sizeof("\nidxfilesize=") - 1, '\n');
|
|
||||||
index_file_size = atol(std::string(p2 + sizeof("\nidxfilesize=") - 1, p3 - (p2 + sizeof("\nidxfilesize=") - 1)).c_str());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
p2 = strstr(p1, "\nbookname=");
|
SET_IF_EXISTS(author)
|
||||||
|
SET_IF_EXISTS(email)
|
||||||
if (p2 == nullptr)
|
SET_IF_EXISTS(website)
|
||||||
return false;
|
SET_IF_EXISTS(date)
|
||||||
|
SET_IF_EXISTS(description)
|
||||||
p2 = p2 + sizeof("\nbookname=") - 1;
|
SET_IF_EXISTS(sametypesequence)
|
||||||
p3 = strchr(p2, '\n');
|
|
||||||
bookname.assign(p2, p3 - p2);
|
|
||||||
|
|
||||||
p2 = strstr(p1, "\nauthor=");
|
|
||||||
if (p2) {
|
|
||||||
p2 = p2 + sizeof("\nauthor=") - 1;
|
|
||||||
p3 = strchr(p2, '\n');
|
|
||||||
author.assign(p2, p3 - p2);
|
|
||||||
}
|
|
||||||
|
|
||||||
p2 = strstr(p1, "\nemail=");
|
|
||||||
if (p2) {
|
|
||||||
p2 = p2 + sizeof("\nemail=") - 1;
|
|
||||||
p3 = strchr(p2, '\n');
|
|
||||||
email.assign(p2, p3 - p2);
|
|
||||||
}
|
|
||||||
|
|
||||||
p2 = strstr(p1, "\nwebsite=");
|
|
||||||
if (p2) {
|
|
||||||
p2 = p2 + sizeof("\nwebsite=") - 1;
|
|
||||||
p3 = strchr(p2, '\n');
|
|
||||||
website.assign(p2, p3 - p2);
|
|
||||||
}
|
|
||||||
|
|
||||||
p2 = strstr(p1, "\ndate=");
|
|
||||||
if (p2) {
|
|
||||||
p2 = p2 + sizeof("\ndate=") - 1;
|
|
||||||
p3 = strchr(p2, '\n');
|
|
||||||
date.assign(p2, p3 - p2);
|
|
||||||
}
|
|
||||||
|
|
||||||
p2 = strstr(p1, "\ndescription=");
|
|
||||||
if (p2) {
|
|
||||||
p2 = p2 + sizeof("\ndescription=") - 1;
|
|
||||||
p3 = strchr(p2, '\n');
|
|
||||||
description.assign(p2, p3 - p2);
|
|
||||||
}
|
|
||||||
|
|
||||||
p2 = strstr(p1, "\nsametypesequence=");
|
|
||||||
if (p2) {
|
|
||||||
p2 += sizeof("\nsametypesequence=") - 1;
|
|
||||||
p3 = strchr(p2, '\n');
|
|
||||||
sametypesequence.assign(p2, p3 - p2);
|
|
||||||
}
|
|
||||||
|
|
||||||
p2 = strstr(p1, "\nsynwordcount=");
|
|
||||||
syn_wordcount = 0;
|
syn_wordcount = 0;
|
||||||
if (p2) {
|
it = key_value_map.find("synwordcount");
|
||||||
p2 += sizeof("\nsynwordcount=") - 1;
|
if (it != key_value_map.end())
|
||||||
p3 = strchr(p2, '\n');
|
syn_wordcount = atol(it->second.c_str());
|
||||||
syn_wordcount = atol(std::string(p2, p3 - p2).c_str());
|
#undef FIND_KEY
|
||||||
}
|
#undef SET_IF_EXISTS
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,8 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <cstdio>
|
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <list>
|
#include <list>
|
||||||
#include <map>
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <set>
|
#include <set>
|
||||||
#include <string>
|
#include <string>
|
||||||
@@ -98,7 +96,8 @@ public:
|
|||||||
virtual void get_data(glong idx) = 0;
|
virtual void get_data(glong idx) = 0;
|
||||||
virtual const gchar *get_key_and_data(glong idx) = 0;
|
virtual const gchar *get_key_and_data(glong idx) = 0;
|
||||||
virtual bool lookup(const char *str, std::set<glong> &idxs, glong &next_idx) = 0;
|
virtual bool lookup(const char *str, std::set<glong> &idxs, glong &next_idx) = 0;
|
||||||
virtual bool lookup(const char *str, std::set<glong> &idxs) {
|
virtual bool lookup(const char *str, std::set<glong> &idxs)
|
||||||
|
{
|
||||||
glong unused_next_idx;
|
glong unused_next_idx;
|
||||||
return lookup(str, idxs, unused_next_idx);
|
return lookup(str, idxs, unused_next_idx);
|
||||||
};
|
};
|
||||||
@@ -144,7 +143,8 @@ public:
|
|||||||
*size = idx_file->wordentry_size;
|
*size = idx_file->wordentry_size;
|
||||||
}
|
}
|
||||||
bool Lookup(const char *str, std::set<glong> &idxs, glong &next_idx);
|
bool Lookup(const char *str, std::set<glong> &idxs, glong &next_idx);
|
||||||
bool Lookup(const char *str, std::set<glong> &idxs) {
|
bool Lookup(const char *str, std::set<glong> &idxs)
|
||||||
|
{
|
||||||
glong unused_next_idx;
|
glong unused_next_idx;
|
||||||
return Lookup(str, idxs, unused_next_idx);
|
return Lookup(str, idxs, unused_next_idx);
|
||||||
}
|
}
|
||||||
|
|||||||
0
tests/not-unix-newlines-ifo/russian/russian.dict
Normal file
0
tests/not-unix-newlines-ifo/russian/russian.dict
Normal file
0
tests/not-unix-newlines-ifo/russian/russian.idx
Normal file
0
tests/not-unix-newlines-ifo/russian/russian.idx
Normal file
9
tests/not-unix-newlines-ifo/russian/russian.ifo
Normal file
9
tests/not-unix-newlines-ifo/russian/russian.ifo
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
StarDict's dict ifo file
|
||||||
|
version=3.0.0
|
||||||
|
bookname=Russian-English Dictionary (ru-en)
|
||||||
|
wordcount=415144
|
||||||
|
idxfilesize=12344255
|
||||||
|
sametypesequence=h
|
||||||
|
synwordcount=1277580
|
||||||
|
author=Vuizur
|
||||||
|
description=
|
||||||
0
tests/not-unix-newlines-ifo/russian/russian.syn
Normal file
0
tests/not-unix-newlines-ifo/russian/russian.syn
Normal file
@@ -18,7 +18,8 @@ test_json() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
test_json '[{"name": "Test synonyms", "wordcount": "2"},
|
test_json '[{"name": "Russian-English Dictionary (ru-en)", "wordcount": "415144"},
|
||||||
|
{"name": "Test synonyms", "wordcount": "2"},
|
||||||
{"name": "Test multiple results", "wordcount": "246"},
|
{"name": "Test multiple results", "wordcount": "246"},
|
||||||
{"name": "Sample 1 test dictionary", "wordcount": "1"},
|
{"name": "Sample 1 test dictionary", "wordcount": "1"},
|
||||||
{"name": "test_dict", "wordcount": "1"}]' -x -j -l -n --data-dir "$TEST_DIR"
|
{"name": "test_dict", "wordcount": "1"}]' -x -j -l -n --data-dir "$TEST_DIR"
|
||||||
|
|||||||
18
tests/t_newlines_in_ifo
Executable file
18
tests/t_newlines_in_ifo
Executable file
@@ -0,0 +1,18 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
PATH_TO_SDCV="$1"
|
||||||
|
TEST_DIR="$2"
|
||||||
|
|
||||||
|
unset SDCV_PAGER
|
||||||
|
unset STARDICT_DATA_DIR
|
||||||
|
|
||||||
|
RES=$("$PATH_TO_SDCV" -n -x --data-dir="$TEST_DIR/not-unix-newlines-ifo" -l | tail -n 1)
|
||||||
|
|
||||||
|
if [ "$RES" = "Russian-English Dictionary (ru-en) 415144" ]; then
|
||||||
|
exit 0
|
||||||
|
else
|
||||||
|
echo "test failed, unexpected result: $RES" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user