Drop leading/trailing underscores in the header guards

master
Vladimir Stackov 2015-01-25 19:44:15 +03:00
parent 5217c64709
commit 9022e1fac4
41 changed files with 86 additions and 86 deletions

View File

@ -1,8 +1,8 @@
// Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS // Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS
// Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE // Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE
#ifndef ADLER32_HH_INCLUDED__ #ifndef ADLER32_HH_INCLUDED
#define ADLER32_HH_INCLUDED__ #define ADLER32_HH_INCLUDED
#include <zlib.h> #include <zlib.h>
#include <stdint.h> #include <stdint.h>

View File

@ -1,8 +1,8 @@
// Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS // Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS
// Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE // Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE
#ifndef APPENDALLOCATOR_HH_INCLUDED__ #ifndef APPENDALLOCATOR_HH_INCLUDED
#define APPENDALLOCATOR_HH_INCLUDED__ #define APPENDALLOCATOR_HH_INCLUDED
#include <stdlib.h> #include <stdlib.h>
#include <limits> #include <limits>

View File

@ -1,8 +1,8 @@
// Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS // Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS
// Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE // Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE
#ifndef BACKUP_COLLECTOR_HH_INCLUDED__ #ifndef BACKUP_COLLECTOR_HH_INCLUDED
#define BACKUP_COLLECTOR_HH_INCLUDED__ #define BACKUP_COLLECTOR_HH_INCLUDED
#include "zbackup_base.hh" #include "zbackup_base.hh"
#include "chunk_storage.hh" #include "chunk_storage.hh"

View File

@ -1,8 +1,8 @@
// Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS // Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS
// Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE // Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE
#ifndef BACKUP_CREATOR_HH_INCLUDED__ #ifndef BACKUP_CREATOR_HH_INCLUDED
#define BACKUP_CREATOR_HH_INCLUDED__ #define BACKUP_CREATOR_HH_INCLUDED
#include <google/protobuf/io/zero_copy_stream_impl_lite.h> #include <google/protobuf/io/zero_copy_stream_impl_lite.h>
#include <stddef.h> #include <stddef.h>

View File

@ -1,8 +1,8 @@
// Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS // Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS
// Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE // Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE
#ifndef BACKUP_EXCHANGER_HH_INCLUDED__ #ifndef BACKUP_EXCHANGER_HH_INCLUDED
#define BACKUP_EXCHANGER_HH_INCLUDED__ #define BACKUP_EXCHANGER_HH_INCLUDED
#include <string> #include <string>
#include <vector> #include <vector>

View File

@ -1,8 +1,8 @@
// Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS // Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS
// Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE // Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE
#ifndef BACKUP_FILE_HH_INCLUDED__ #ifndef BACKUP_FILE_HH_INCLUDED
#define BACKUP_FILE_HH_INCLUDED__ #define BACKUP_FILE_HH_INCLUDED
#include <exception> #include <exception>
#include <string> #include <string>

View File

@ -1,8 +1,8 @@
// Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS // Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS
// Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE // Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE
#ifndef BACKUP_RESTORER_HH_INCLUDED__ #ifndef BACKUP_RESTORER_HH_INCLUDED
#define BACKUP_RESTORER_HH_INCLUDED__ #define BACKUP_RESTORER_HH_INCLUDED
#include <stddef.h> #include <stddef.h>
#include <exception> #include <exception>

View File

@ -1,8 +1,8 @@
// Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS // Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS
// Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE // Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE
#ifndef BUNDLE_HH_INCLUDED__ #ifndef BUNDLE_HH_INCLUDED
#define BUNDLE_HH_INCLUDED__ #define BUNDLE_HH_INCLUDED
#include <stddef.h> #include <stddef.h>
#include <string.h> #include <string.h>

View File

@ -1,8 +1,8 @@
// Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS // Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS
// Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE // Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE
#ifndef CHECK_HH_INCLUDED__ #ifndef CHECK_HH_INCLUDED
#define CHECK_HH_INCLUDED__ #define CHECK_HH_INCLUDED
#include <inttypes.h> #include <inttypes.h>
#include <stdio.h> #include <stdio.h>

View File

@ -1,8 +1,8 @@
// Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS // Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS
// Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE // Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE
#ifndef CHUNK_ID_HH_INCLUDED__ #ifndef CHUNK_ID_HH_INCLUDED
#define CHUNK_ID_HH_INCLUDED__ #define CHUNK_ID_HH_INCLUDED
#include <string> #include <string>
#include "rolling_hash.hh" #include "rolling_hash.hh"

View File

@ -1,8 +1,8 @@
// Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS // Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS
// Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE // Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE
#ifndef CHUNK_INDEX_HH_INCLUDED__ #ifndef CHUNK_INDEX_HH_INCLUDED
#define CHUNK_INDEX_HH_INCLUDED__ #define CHUNK_INDEX_HH_INCLUDED
// <ext/hash_map> is obsolete, but <unordered_map> requires C++11. Make up your // <ext/hash_map> is obsolete, but <unordered_map> requires C++11. Make up your
// mind, GNU people! // mind, GNU people!

View File

@ -1,8 +1,8 @@
// Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS // Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS
// Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE // Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE
#ifndef CHUNK_STORAGE_HH_INCLUDED__ #ifndef CHUNK_STORAGE_HH_INCLUDED
#define CHUNK_STORAGE_HH_INCLUDED__ #define CHUNK_STORAGE_HH_INCLUDED
#include <stddef.h> #include <stddef.h>
#include <exception> #include <exception>

View File

@ -1,8 +1,8 @@
// Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS // Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS
// Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE // Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE
#ifndef COMPRESSION_HH_INCLUDED__ #ifndef COMPRESSION_HH_INCLUDED
#define COMPRESSION_HH_INCLUDED__ #define COMPRESSION_HH_INCLUDED
#include "sptr.hh" #include "sptr.hh"
#include "ex.hh" #include "ex.hh"

View File

@ -1,8 +1,8 @@
// Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS // Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS
// Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE // Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE
#ifndef CONFIG_HH_INCLUDED__ #ifndef CONFIG_HH_INCLUDED
#define CONFIG_HH_INCLUDED__ #define CONFIG_HH_INCLUDED
#include <string> #include <string>
#include <bitset> #include <bitset>

View File

@ -1,8 +1,8 @@
// Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS // Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS
// Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE // Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE
#ifndef DEBUG_HH_INCLUDED__ #ifndef DEBUG_HH_INCLUDED
#define DEBUG_HH_INCLUDED__ #define DEBUG_HH_INCLUDED
#include <stdio.h> #include <stdio.h>
#include <typeinfo> #include <typeinfo>

4
dir.hh
View File

@ -1,8 +1,8 @@
// Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS // Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS
// Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE // Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE
#ifndef DIR_HH_INCLUDED__ #ifndef DIR_HH_INCLUDED
#define DIR_HH_INCLUDED__ #define DIR_HH_INCLUDED
#include <dirent.h> #include <dirent.h>
#include <sys/types.h> #include <sys/types.h>

View File

@ -1,8 +1,8 @@
// Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS // Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS
// Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE // Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE
#ifndef ENCRYPTED_FILE_HH_INCLUDED__ #ifndef ENCRYPTED_FILE_HH_INCLUDED
#define ENCRYPTED_FILE_HH_INCLUDED__ #define ENCRYPTED_FILE_HH_INCLUDED
#include <google/protobuf/io/zero_copy_stream.h> #include <google/protobuf/io/zero_copy_stream.h>
#include <stddef.h> #include <stddef.h>

View File

@ -1,8 +1,8 @@
// Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS // Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS
// Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE // Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE
#ifndef ENCRYPTION_HH_INCLUDED__ #ifndef ENCRYPTION_HH_INCLUDED
#define ENCRYPTION_HH_INCLUDED__ #define ENCRYPTION_HH_INCLUDED
#include <stddef.h> #include <stddef.h>
#include <exception> #include <exception>

View File

@ -1,8 +1,8 @@
// Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS // Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS
// Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE // Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE
#ifndef ENCRYPTION_KEY_HH_INCLUDED__ #ifndef ENCRYPTION_KEY_HH_INCLUDED
#define ENCRYPTION_KEY_HH_INCLUDED__ #define ENCRYPTION_KEY_HH_INCLUDED
#include <exception> #include <exception>
#include <string> #include <string>

View File

@ -1,8 +1,8 @@
// Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS // Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS
// Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE // Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE
#ifndef ENDIAN_HH_INCLUDED__ #ifndef ENDIAN_HH_INCLUDED
#define ENDIAN_HH_INCLUDED__ #define ENDIAN_HH_INCLUDED
#include <stdint.h> #include <stdint.h>
#include <arpa/inet.h> #include <arpa/inet.h>

4
ex.hh
View File

@ -1,8 +1,8 @@
// Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS // Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS
// Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE // Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE
#ifndef EX_HH_INCLUDED__ #ifndef EX_HH_INCLUDED
#define EX_HH_INCLUDED__ #define EX_HH_INCLUDED
#include <exception> #include <exception>
#include <stdio.h> #include <stdio.h>

View File

@ -1,8 +1,8 @@
// Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS // Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS
// Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE // Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE
#ifndef FILE_HH_INCLUDED__ #ifndef FILE_HH_INCLUDED
#define FILE_HH_INCLUDED__ #define FILE_HH_INCLUDED
#include <stddef.h> #include <stddef.h>
#include <cstdio> #include <cstdio>

4
hex.hh
View File

@ -1,8 +1,8 @@
// Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS // Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS
// Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE // Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE
#ifndef HEX_HH_INCLUDED__ #ifndef HEX_HH_INCLUDED
#define HEX_HH_INCLUDED__ #define HEX_HH_INCLUDED
#include <string> #include <string>

View File

@ -1,8 +1,8 @@
// Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS // Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS
// Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE // Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE
#ifndef INDEX_FILE_HH_INCLUDED__ #ifndef INDEX_FILE_HH_INCLUDED
#define INDEX_FILE_HH_INCLUDED__ #define INDEX_FILE_HH_INCLUDED
#include <exception> #include <exception>
#include <string> #include <string>

View File

@ -1,8 +1,8 @@
// Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS // Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS
// Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE // Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE
#ifndef MESSAGE_HH_INCLUDED__ #ifndef MESSAGE_HH_INCLUDED
#define MESSAGE_HH_INCLUDED__ #define MESSAGE_HH_INCLUDED
#include <google/protobuf/io/coded_stream.h> #include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/io/zero_copy_stream.h> #include <google/protobuf/io/zero_copy_stream.h>

4
mt.hh
View File

@ -1,8 +1,8 @@
// Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS // Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS
// Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE // Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE
#ifndef MT_HH_INCLUDED__ #ifndef MT_HH_INCLUDED
#define MT_HH_INCLUDED__ #define MT_HH_INCLUDED
#include <pthread.h> #include <pthread.h>
#include <stddef.h> #include <stddef.h>

View File

@ -1,8 +1,8 @@
// Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS // Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS
// Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE // Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE
#ifndef NOCOPY_HH_INCLUDED__ #ifndef NOCOPY_HH_INCLUDED
#define NOCOPY_HH_INCLUDED__ #define NOCOPY_HH_INCLUDED
/// A simple class to disallow copying of the class objects. Inherit from it to /// A simple class to disallow copying of the class objects. Inherit from it to
/// use it /// use it

View File

@ -1,8 +1,8 @@
// Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS // Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS
// Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE // Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE
#ifndef OBJECTCACHE_HH_INCLUDED__ #ifndef OBJECTCACHE_HH_INCLUDED
#define OBJECTCACHE_HH_INCLUDED__ #define OBJECTCACHE_HH_INCLUDED
#include <string> #include <string>
#include <list> #include <list>

View File

@ -1,8 +1,8 @@
// Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS // Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS
// Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE // Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE
#ifndef PAGE_SIZE_HH_INCLUDED__ #ifndef PAGE_SIZE_HH_INCLUDED
#define PAGE_SIZE_HH_INCLUDED__ #define PAGE_SIZE_HH_INCLUDED
/// Returns the page size used by this system /// Returns the page size used by this system
unsigned getPageSize(); unsigned getPageSize();

View File

@ -1,8 +1,8 @@
// Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS // Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS
// Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE // Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE
#ifndef RANDOM_HH_INCLUDED__ #ifndef RANDOM_HH_INCLUDED
#define RANDOM_HH_INCLUDED__ #define RANDOM_HH_INCLUDED
#include <exception> #include <exception>

View File

@ -1,8 +1,8 @@
// Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS // Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS
// Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE // Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE
#ifndef ROLLING_HASH_HH_INCLUDED__ #ifndef ROLLING_HASH_HH_INCLUDED
#define ROLLING_HASH_HH_INCLUDED__ #define ROLLING_HASH_HH_INCLUDED
#include <stdint.h> #include <stdint.h>
#include <stddef.h> #include <stddef.h>

View File

@ -1,8 +1,8 @@
// Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS // Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS
// Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE // Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE
#ifndef SHA256_HH_INCLUDED__ #ifndef SHA256_HH_INCLUDED
#define SHA256_HH_INCLUDED__ #define SHA256_HH_INCLUDED
#include <string> #include <string>
#include <openssl/sha.h> #include <openssl/sha.h>

View File

@ -1,8 +1,8 @@
// Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS // Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS
// Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE // Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE
#ifndef SPTR_HH_INCLUDED__ #ifndef SPTR_HH_INCLUDED
#define SPTR_HH_INCLUDED__ #define SPTR_HH_INCLUDED
/// A generic non-intrusive smart-pointer template. We could use boost::, tr1:: /// A generic non-intrusive smart-pointer template. We could use boost::, tr1::
/// or whatever, but since there's no standard solution yet, it isn't worth /// or whatever, but since there's no standard solution yet, it isn't worth

View File

@ -1,8 +1,8 @@
// Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS // Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS
// Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE // Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE
#ifndef STATIC_ASSERT_HH_INCLUDED__ #ifndef STATIC_ASSERT_HH_INCLUDED
#define STATIC_ASSERT_HH_INCLUDED__ #define STATIC_ASSERT_HH_INCLUDED
// Based on the one from the Boost library. It wouldn't make sense to depend on // Based on the one from the Boost library. It wouldn't make sense to depend on
// boost just for that // boost just for that

View File

@ -1,8 +1,8 @@
// Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS // Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS
// Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE // Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE
#ifndef STORAGE_INFO_FILE_HH_INCLUDED__ #ifndef STORAGE_INFO_FILE_HH_INCLUDED
#define STORAGE_INFO_FILE_HH_INCLUDED__ #define STORAGE_INFO_FILE_HH_INCLUDED
#include <exception> #include <exception>
#include <string> #include <string>

View File

@ -1,8 +1,8 @@
// Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS // Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS
// Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE // Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE
#ifndef TMP_MGR_HH_INCLUDED__ #ifndef TMP_MGR_HH_INCLUDED
#define TMP_MGR_HH_INCLUDED__ #define TMP_MGR_HH_INCLUDED
#include <exception> #include <exception>
#include <string> #include <string>

View File

@ -1,8 +1,8 @@
// Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS // Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS
// Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE // Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE
#ifndef UNBUFFERED_FILE_HH_INCLUDED__ #ifndef UNBUFFERED_FILE_HH_INCLUDED
#define UNBUFFERED_FILE_HH_INCLUDED__ #define UNBUFFERED_FILE_HH_INCLUDED
#include <stddef.h> #include <stddef.h>
#include <stdint.h> #include <stdint.h>

View File

@ -1,8 +1,8 @@
// Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS // Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS
// Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE // Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE
#ifndef UTILS_HH_INCLUDED__ #ifndef UTILS_HH_INCLUDED
#define UTILS_HH_INCLUDED__ #define UTILS_HH_INCLUDED
#include <sstream> #include <sstream>

View File

@ -1,8 +1,8 @@
// Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS // Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS
// Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE // Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE
#ifndef ZBACKUP_HH_INCLUDED__ #ifndef ZBACKUP_HH_INCLUDED
#define ZBACKUP_HH_INCLUDED__ #define ZBACKUP_HH_INCLUDED
#include "chunk_storage.hh" #include "chunk_storage.hh"
#include "zbackup_base.hh" #include "zbackup_base.hh"

View File

@ -11,14 +11,14 @@
#include "debug.hh" #include "debug.hh"
// TODO: make configurable by cmake // TODO: make configurable by cmake
#if defined(_PATH_VI) #if defined(PATH_VI)
# define EDITOR _PATH_VI # define EDITOR PATH_VI
#else #else
# define EDITOR "/bin/vi" # define EDITOR "/bin/vi"
#endif #endif
#ifndef _PATH_BSHELL #ifndef PATH_BSHELL
# define _PATH_BSHELL "/bin/sh" # define PATH_BSHELL "/bin/sh"
#endif #endif
using std::string; using std::string;
@ -318,9 +318,9 @@ fatal:
goto fatal; goto fatal;
case 0: case 0:
/* child */ /* child */
dPrintf( "Spawning editor: %s %s %s %s\n", _PATH_BSHELL, _PATH_BSHELL, dPrintf( "Spawning editor: %s %s %s %s\n", PATH_BSHELL, PATH_BSHELL,
"-c", shellArgs.c_str() ); "-c", shellArgs.c_str() );
execlp( _PATH_BSHELL, _PATH_BSHELL, "-c", shellArgs.c_str(), (char *) 0 ); execlp( PATH_BSHELL, PATH_BSHELL, "-c", shellArgs.c_str(), (char *) 0 );
perror( editor.c_str() ); perror( editor.c_str() );
exit( EXIT_FAILURE ); exit( EXIT_FAILURE );
/*NOTREACHED*/ /*NOTREACHED*/

View File

@ -1,8 +1,8 @@
// Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS // Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS
// Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE // Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE
#ifndef ZBACKUP_BASE_HH_INCLUDED__ #ifndef ZBACKUP_BASE_HH_INCLUDED
#define ZBACKUP_BASE_HH_INCLUDED__ #define ZBACKUP_BASE_HH_INCLUDED
#include <exception> #include <exception>
#include <string> #include <string>