From e7095e9ada5e62c233e56f5b8c1ccc0c0182a07f Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Mon, 9 Sep 2019 13:40:24 +0300 Subject: [PATCH] mdbx: remove UTF8-BOM (preparation for 'make dist'). Change-Id: I2d0ccc9f7bbed6d57b2fe6ef156f33531a4eeb69 --- CMakeLists.txt | 2 +- cmake/compiler.cmake | 2 +- cmake/profile.cmake | 2 +- cmake/utils.cmake | 2 +- mdbx.h | 2 +- src/CMakeLists.txt | 2 +- src/elements/config.h.in | 5 ++++- src/elements/core.c | 2 +- src/elements/internals.h | 2 +- src/elements/lck-posix.c | 2 +- src/elements/lck-windows.c | 2 +- src/elements/osal.c | 2 +- src/elements/osal.h | 2 +- src/elements/version.c.in | 15 ++------------- src/tools/CMakeLists.txt | 2 +- src/tools/mdbx_load.c | 2 +- test/CMakeLists.txt | 2 +- test/append.cc | 2 +- test/cases.cc | 2 +- test/config.cc | 2 +- test/config.h | 2 +- test/copy.cc | 2 +- test/dead.cc | 2 +- test/hill.cc | 2 +- test/jitter.cc | 2 +- test/keygen.cc | 2 +- test/keygen.h | 2 +- test/main.cc | 2 +- test/osal-unix.cc | 2 +- test/osal-windows.cc | 2 +- test/osal.h | 2 +- test/test.cc | 2 +- test/test.h | 2 +- test/try.cc | 2 +- test/ttl.cc | 2 +- test/utils.cc | 2 +- test/utils.h | 2 +- 37 files changed, 41 insertions(+), 49 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fd1f01a0..117bcd44 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -## +## ## Copyright 2019 Leonid Yuriev ## and other libmdbx authors: please see AUTHORS file. ## All rights reserved. diff --git a/cmake/compiler.cmake b/cmake/compiler.cmake index 709e1d25..b6e11a59 100644 --- a/cmake/compiler.cmake +++ b/cmake/compiler.cmake @@ -1,4 +1,4 @@ -## Copyright (c) 2012-2019 Leonid Yuriev . +## Copyright (c) 2012-2019 Leonid Yuriev . ## ## Licensed under the Apache License, Version 2.0 (the "License"); ## you may not use this file except in compliance with the License. diff --git a/cmake/profile.cmake b/cmake/profile.cmake index aa292630..22185c9e 100644 --- a/cmake/profile.cmake +++ b/cmake/profile.cmake @@ -1,4 +1,4 @@ -## Copyright (c) 2012-2019 Leonid Yuriev . +## Copyright (c) 2012-2019 Leonid Yuriev . ## ## Licensed under the Apache License, Version 2.0 (the "License"); ## you may not use this file except in compliance with the License. diff --git a/cmake/utils.cmake b/cmake/utils.cmake index 44aacc3f..c31f53cd 100644 --- a/cmake/utils.cmake +++ b/cmake/utils.cmake @@ -1,4 +1,4 @@ -## Copyright (c) 2012-2019 Leonid Yuriev . +## Copyright (c) 2012-2019 Leonid Yuriev . ## ## Licensed under the Apache License, Version 2.0 (the "License"); ## you may not use this file except in compliance with the License. diff --git a/mdbx.h b/mdbx.h index 94168ec8..34cdbed0 100644 --- a/mdbx.h +++ b/mdbx.h @@ -1,4 +1,4 @@ -/* LICENSE AND COPYRUSTING ***************************************************** +/* LICENSE AND COPYRUSTING ***************************************************** * * Copyright 2015-2019 Leonid Yuriev * and other libmdbx authors: please see AUTHORS file. diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 800ad78e..8621f39c 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,4 +1,4 @@ -## +## ## Copyright 2019 Leonid Yuriev ## and other libmdbx authors: please see AUTHORS file. ## All rights reserved. diff --git a/src/elements/config.h.in b/src/elements/config.h.in index 59f036fa..d2f6deb2 100644 --- a/src/elements/config.h.in +++ b/src/elements/config.h.in @@ -1,4 +1,7 @@ -/* *INDENT-OFF* */ +/* This is CMake-template for libmdbx's config.h + ******************************************************************************/ + +/* *INDENT-OFF* */ /* clang-format off */ #cmakedefine HAVE_VALGRIND_MEMCHECK_H diff --git a/src/elements/core.c b/src/elements/core.c index 3a811ec5..c30b23e0 100644 --- a/src/elements/core.c +++ b/src/elements/core.c @@ -1,4 +1,4 @@ -/* +/* * Copyright 2015-2019 Leonid Yuriev * and other libmdbx authors: please see AUTHORS file. * All rights reserved. diff --git a/src/elements/internals.h b/src/elements/internals.h index 33eaa252..a96bb0a6 100644 --- a/src/elements/internals.h +++ b/src/elements/internals.h @@ -1,4 +1,4 @@ -/* +/* * Copyright 2015-2019 Leonid Yuriev * and other libmdbx authors: please see AUTHORS file. * All rights reserved. diff --git a/src/elements/lck-posix.c b/src/elements/lck-posix.c index b375ae46..95c7759a 100644 --- a/src/elements/lck-posix.c +++ b/src/elements/lck-posix.c @@ -1,4 +1,4 @@ -/* +/* * Copyright 2015-2019 Leonid Yuriev * and other libmdbx authors: please see AUTHORS file. * All rights reserved. diff --git a/src/elements/lck-windows.c b/src/elements/lck-windows.c index 3c0f6aaa..feef62fc 100644 --- a/src/elements/lck-windows.c +++ b/src/elements/lck-windows.c @@ -1,4 +1,4 @@ -/* +/* * Copyright 2015-2019 Leonid Yuriev * and other libmdbx authors: please see AUTHORS file. * All rights reserved. diff --git a/src/elements/osal.c b/src/elements/osal.c index 04d33cc9..1bbf69d2 100644 --- a/src/elements/osal.c +++ b/src/elements/osal.c @@ -1,4 +1,4 @@ -/* https://en.wikipedia.org/wiki/Operating_system_abstraction_layer */ +/* https://en.wikipedia.org/wiki/Operating_system_abstraction_layer */ /* * Copyright 2015-2019 Leonid Yuriev diff --git a/src/elements/osal.h b/src/elements/osal.h index ecf3ee86..a58d6aa2 100644 --- a/src/elements/osal.h +++ b/src/elements/osal.h @@ -1,4 +1,4 @@ -/* https://en.wikipedia.org/wiki/Operating_system_abstraction_layer */ +/* https://en.wikipedia.org/wiki/Operating_system_abstraction_layer */ /* * Copyright 2015-2019 Leonid Yuriev diff --git a/src/elements/version.c.in b/src/elements/version.c.in index 629cd6ad..65cbaf8c 100644 --- a/src/elements/version.c.in +++ b/src/elements/version.c.in @@ -1,16 +1,5 @@ -/* - * Copyright 2015-2019 Leonid Yuriev - * and other libmdbx authors: please see AUTHORS file. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted only as authorized by the OpenLDAP - * Public License. - * - * A copy of this license is available in the file LICENSE in the - * top-level directory of the distribution or, alternatively, at - * . - */ +/* This is CMake-template for libmdbx's version.c + ******************************************************************************/ #include "internals.h" diff --git a/src/tools/CMakeLists.txt b/src/tools/CMakeLists.txt index 57ac426e..be341cc1 100644 --- a/src/tools/CMakeLists.txt +++ b/src/tools/CMakeLists.txt @@ -1,4 +1,4 @@ -set(MDBX_TOOLS +set(MDBX_TOOLS mdbx_chk mdbx_copy mdbx_dump diff --git a/src/tools/mdbx_load.c b/src/tools/mdbx_load.c index e15c0c9d..00bfa87e 100644 --- a/src/tools/mdbx_load.c +++ b/src/tools/mdbx_load.c @@ -1,4 +1,4 @@ -/* mdbx_load.c - memory-mapped database load tool */ +/* mdbx_load.c - memory-mapped database load tool */ /* * Copyright 2015-2019 Leonid Yuriev diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index acabd404..a81e3ed7 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -1,4 +1,4 @@ -list(FIND CMAKE_CXX_COMPILE_FEATURES cxx_std_17 HAS_CXX17) +list(FIND CMAKE_CXX_COMPILE_FEATURES cxx_std_17 HAS_CXX17) list(FIND CMAKE_CXX_COMPILE_FEATURES cxx_std_14 HAS_CXX14) list(FIND CMAKE_CXX_COMPILE_FEATURES cxx_relaxed_constexpr HAS_RELAXED_CONSTEXPR) if(NOT DEFINED MDBX_CXX_STANDARD) diff --git a/test/append.cc b/test/append.cc index 273f68b8..a7856f5a 100644 --- a/test/append.cc +++ b/test/append.cc @@ -1,4 +1,4 @@ -/* +/* * Copyright 2017-2019 Leonid Yuriev * and other libmdbx authors: please see AUTHORS file. * All rights reserved. diff --git a/test/cases.cc b/test/cases.cc index a98834a4..02177140 100644 --- a/test/cases.cc +++ b/test/cases.cc @@ -1,4 +1,4 @@ -/* +/* * Copyright 2017-2019 Leonid Yuriev * and other libmdbx authors: please see AUTHORS file. * All rights reserved. diff --git a/test/config.cc b/test/config.cc index dd150e9a..2bf5ee2e 100644 --- a/test/config.cc +++ b/test/config.cc @@ -1,4 +1,4 @@ -/* +/* * Copyright 2017-2019 Leonid Yuriev * and other libmdbx authors: please see AUTHORS file. * All rights reserved. diff --git a/test/config.h b/test/config.h index 89889d8e..6582f1d8 100644 --- a/test/config.h +++ b/test/config.h @@ -1,4 +1,4 @@ -/* +/* * Copyright 2017-2019 Leonid Yuriev * and other libmdbx authors: please see AUTHORS file. * All rights reserved. diff --git a/test/copy.cc b/test/copy.cc index e239d41e..ff53153e 100644 --- a/test/copy.cc +++ b/test/copy.cc @@ -1,4 +1,4 @@ -#include "test.h" +#include "test.h" void testcase_copy::copy_db(const bool with_compaction) { int err = osal_removefile(copy_pathname); diff --git a/test/dead.cc b/test/dead.cc index a1a8b5f9..8f83bbeb 100644 --- a/test/dead.cc +++ b/test/dead.cc @@ -1,4 +1,4 @@ -/* +/* * Copyright 2017-2019 Leonid Yuriev * and other libmdbx authors: please see AUTHORS file. * All rights reserved. diff --git a/test/hill.cc b/test/hill.cc index 1b03ddf0..41002a14 100644 --- a/test/hill.cc +++ b/test/hill.cc @@ -1,4 +1,4 @@ -/* +/* * Copyright 2017-2019 Leonid Yuriev * and other libmdbx authors: please see AUTHORS file. * All rights reserved. diff --git a/test/jitter.cc b/test/jitter.cc index 82d1d764..38caf33b 100644 --- a/test/jitter.cc +++ b/test/jitter.cc @@ -1,4 +1,4 @@ -/* +/* * Copyright 2017-2019 Leonid Yuriev * and other libmdbx authors: please see AUTHORS file. * All rights reserved. diff --git a/test/keygen.cc b/test/keygen.cc index 0110b049..9b283a12 100644 --- a/test/keygen.cc +++ b/test/keygen.cc @@ -1,4 +1,4 @@ -/* +/* * Copyright 2017-2019 Leonid Yuriev * and other libmdbx authors: please see AUTHORS file. * All rights reserved. diff --git a/test/keygen.h b/test/keygen.h index 9852c310..0403ab8a 100644 --- a/test/keygen.h +++ b/test/keygen.h @@ -1,4 +1,4 @@ -/* +/* * Copyright 2017-2019 Leonid Yuriev * and other libmdbx authors: please see AUTHORS file. * All rights reserved. diff --git a/test/main.cc b/test/main.cc index 959359a5..ea72e85e 100644 --- a/test/main.cc +++ b/test/main.cc @@ -1,4 +1,4 @@ -/* +/* * Copyright 2017-2019 Leonid Yuriev * and other libmdbx authors: please see AUTHORS file. * All rights reserved. diff --git a/test/osal-unix.cc b/test/osal-unix.cc index 0157bace..de4584ec 100644 --- a/test/osal-unix.cc +++ b/test/osal-unix.cc @@ -1,4 +1,4 @@ -/* +/* * Copyright 2017-2019 Leonid Yuriev * and other libmdbx authors: please see AUTHORS file. * All rights reserved. diff --git a/test/osal-windows.cc b/test/osal-windows.cc index 975d8268..9ae563c4 100644 --- a/test/osal-windows.cc +++ b/test/osal-windows.cc @@ -1,4 +1,4 @@ -/* +/* * Copyright 2017-2019 Leonid Yuriev * and other libmdbx authors: please see AUTHORS file. * All rights reserved. diff --git a/test/osal.h b/test/osal.h index 5acf7ad0..eb88008b 100644 --- a/test/osal.h +++ b/test/osal.h @@ -1,4 +1,4 @@ -/* +/* * Copyright 2017-2019 Leonid Yuriev * and other libmdbx authors: please see AUTHORS file. * All rights reserved. diff --git a/test/test.cc b/test/test.cc index e9e925e9..02c76ef5 100644 --- a/test/test.cc +++ b/test/test.cc @@ -1,4 +1,4 @@ -/* +/* * Copyright 2017-2019 Leonid Yuriev * and other libmdbx authors: please see AUTHORS file. * All rights reserved. diff --git a/test/test.h b/test/test.h index 53a2e36a..f627ce25 100644 --- a/test/test.h +++ b/test/test.h @@ -1,4 +1,4 @@ -/* +/* * Copyright 2017-2019 Leonid Yuriev * and other libmdbx authors: please see AUTHORS file. * All rights reserved. diff --git a/test/try.cc b/test/try.cc index 150abd36..adb01130 100644 --- a/test/try.cc +++ b/test/try.cc @@ -1,4 +1,4 @@ -#include "test.h" +#include "test.h" bool testcase_try::run() { db_open(); diff --git a/test/ttl.cc b/test/ttl.cc index b2650f0c..0a948993 100644 --- a/test/ttl.cc +++ b/test/ttl.cc @@ -1,4 +1,4 @@ -/* +/* * Copyright 2017-2019 Leonid Yuriev * and other libmdbx authors: please see AUTHORS file. * All rights reserved. diff --git a/test/utils.cc b/test/utils.cc index d9b3538b..4372fcf0 100644 --- a/test/utils.cc +++ b/test/utils.cc @@ -1,4 +1,4 @@ -/* +/* * Copyright 2017-2019 Leonid Yuriev * and other libmdbx authors: please see AUTHORS file. * All rights reserved. diff --git a/test/utils.h b/test/utils.h index d1b859ac..b2194495 100644 --- a/test/utils.h +++ b/test/utils.h @@ -1,4 +1,4 @@ -/* +/* * Copyright 2017-2019 Leonid Yuriev * and other libmdbx authors: please see AUTHORS file. * All rights reserved.