refactor: Rename common.h to macros.h, now that it only contains macros (#1113)

Issue #1047 (CMake porting)
This commit is contained in:
Joey Parrish 2022-10-24 19:08:18 -07:00 committed by GitHub
parent 2a31f412d3
commit f45019d478
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 10 additions and 15 deletions

View File

@ -7,7 +7,7 @@
#include "packager/file/callback_file.h"
#include "glog/logging.h"
#include "packager/common.h"
#include "packager/macros.h"
namespace shaka {

View File

@ -11,8 +11,8 @@
#include <string>
#include "packager/common.h"
#include "packager/file/public/buffer_callback_params.h"
#include "packager/macros.h"
#include "packager/status/status.h"
namespace shaka {

View File

@ -14,8 +14,8 @@
#include "absl/strings/str_format.h"
#include "glog/logging.h"
#include "packager/common.h"
#include "packager/file/thread_pool.h"
#include "packager/macros.h"
#include "packager/version/version.h"
ABSL_FLAG(std::string,

View File

@ -12,7 +12,7 @@
#include <vector>
#include "absl/synchronization/mutex.h"
#include "packager/common.h"
#include "packager/macros.h"
namespace shaka {

View File

@ -7,13 +7,12 @@
#ifndef PACKAGER_FILE_THREAD_POOL_H_
#define PACKAGER_FILE_THREAD_POOL_H_
#include "packager/common.h"
#include <functional>
#include <queue>
#include "absl/base/thread_annotations.h"
#include "absl/synchronization/mutex.h"
#include "packager/macros.h"
namespace shaka {

View File

@ -10,8 +10,8 @@
#include "absl/strings/numbers.h"
#include "absl/strings/str_split.h"
#include "glog/logging.h"
#include "packager/common.h"
#include "packager/kv_pairs/kv_pairs.h"
#include "packager/macros.h"
ABSL_FLAG(std::string,
udp_interface_address,

View File

@ -4,15 +4,13 @@
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
#ifndef PACKAGER_COMMON_H_
#define PACKAGER_COMMON_H_
#ifndef PACKAGER_MACROS_H_
#define PACKAGER_MACROS_H_
#include <type_traits>
#include "absl/base/macros.h"
namespace shaka {
/// A macro to disable copying and assignment. Usage:
/// class Foo {
/// private:
@ -34,6 +32,4 @@ namespace shaka {
/// You can use the insertion operator to add specific logs to this.
#define NOTIMPLEMENTED() LOG(ERROR) << "NOTIMPLEMENTED: "
} // namespace shaka
#endif // PACKAGER_COMMON_H_
#endif // PACKAGER_MACROS_H_

View File

@ -8,7 +8,7 @@
#include "absl/strings/str_format.h"
#include "glog/logging.h"
#include "packager/common.h"
#include "packager/macros.h"
namespace shaka {