Skip to content

Commit

Permalink
use the libebml namespace directly
Browse files Browse the repository at this point in the history
  • Loading branch information
robUx4 committed Sep 18, 2022
1 parent 7085fc8 commit 88334db
Show file tree
Hide file tree
Showing 19 changed files with 20 additions and 22 deletions.
2 changes: 1 addition & 1 deletion libebml2/legacy/ebml/EbmlBinary.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

#include "ebml/EbmlElement.h"

namespace LIBEBML_NAMESPACE {
namespace libebml {

class EbmlBinary : public EbmlElement {
public:
Expand Down
4 changes: 1 addition & 3 deletions libebml2/legacy/ebml/EbmlConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@

#include "corec/corec.h"

#define LIBEBML_NAMESPACE libebml

typedef uint8_t uint8;
typedef uint16_t uint16;
typedef uint32_t uint32;
Expand All @@ -50,7 +48,7 @@ typedef uint8_t binary;
#define EBML_PRETTYLONGINT(c) (c)
#endif // __GNUC__

namespace LIBEBML_NAMESPACE {
namespace libebml {

enum endianess {
big_endian, ///< PowerPC, Alpha, 68000
Expand Down
2 changes: 1 addition & 1 deletion libebml2/legacy/ebml/EbmlContexts.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

#include "ebml/EbmlElement.h"

namespace LIBEBML_NAMESPACE {
namespace libebml {

const EbmlSemanticContext & GetEbmlGlobal_Context();

Expand Down
2 changes: 1 addition & 1 deletion libebml2/legacy/ebml/EbmlCrc32.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

#include "ebml/EbmlBinary.h"

namespace LIBEBML_NAMESPACE {
namespace libebml {

DECLARE_EBML_BINARY(EbmlCrc32)
};
Expand Down
2 changes: 1 addition & 1 deletion libebml2/legacy/ebml/EbmlDate.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

#include "ebml/EbmlElement.h"

namespace LIBEBML_NAMESPACE {
namespace libebml {

class EbmlDate : public EbmlElement {
public:
Expand Down
2 changes: 1 addition & 1 deletion libebml2/legacy/ebml/EbmlElement.h
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@
#define EBML_CTX_IDX_INFO(c,i) *(c).GetSemantic(i).eClass // EbmlSemanticContext -> EbmlCallbacks / ebml_context
#define EBML_CTX_IDX_ID(c,i) (c).GetSemantic(i).eClass->Id // EbmlSemanticContext -> EbmlId

namespace LIBEBML_NAMESPACE {
namespace libebml {

typedef int ScopeMode;

Expand Down
2 changes: 1 addition & 1 deletion libebml2/legacy/ebml/EbmlFloat.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

#include "ebml/EbmlElement.h"

namespace LIBEBML_NAMESPACE {
namespace libebml {

class EbmlFloat : public EbmlElement {
public:
Expand Down
2 changes: 1 addition & 1 deletion libebml2/legacy/ebml/EbmlHead.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

#include "ebml/EbmlMaster.h"

namespace LIBEBML_NAMESPACE {
namespace libebml {

DECLARE_EBML_MASTER(EbmlHead)
};
Expand Down
2 changes: 1 addition & 1 deletion libebml2/legacy/ebml/EbmlId.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#define EBML_ID_LENGTH(x) (x).GetLength()
#define EBML_ID_VALUE(x) (fourcc_t)(x)

namespace LIBEBML_NAMESPACE {
namespace libebml {

class EbmlId {
public:
Expand Down
2 changes: 1 addition & 1 deletion libebml2/legacy/ebml/EbmlMaster.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#define EBML_MASTER_RITERATOR EbmlMaster_rev_itr
#define EBML_MASTER_CONST_RITERATOR EbmlMaster_rev_itr

namespace LIBEBML_NAMESPACE {
namespace libebml {

class EbmlMaster;

Expand Down
2 changes: 1 addition & 1 deletion libebml2/legacy/ebml/EbmlSInteger.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

#include "ebml/EbmlElement.h"

namespace LIBEBML_NAMESPACE {
namespace libebml {

class EbmlSInteger : public EbmlElement {
public:
Expand Down
2 changes: 1 addition & 1 deletion libebml2/legacy/ebml/EbmlStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

#include "ebml/IOCallback.h"

namespace LIBEBML_NAMESPACE {
namespace libebml {
class EbmlStream {
public:
EbmlStream(IOCallback &);
Expand Down
2 changes: 1 addition & 1 deletion libebml2/legacy/ebml/EbmlString.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

#include "ebml/EbmlElement.h"

namespace LIBEBML_NAMESPACE {
namespace libebml {

class EbmlString : public EbmlElement {
public:
Expand Down
2 changes: 1 addition & 1 deletion libebml2/legacy/ebml/EbmlSubHead.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#include "ebml/EbmlUInteger.h"
#include "ebml/EbmlString.h"

namespace LIBEBML_NAMESPACE {
namespace libebml {

DECLARE_EBML_UINTEGER(EVersion)
};
Expand Down
2 changes: 1 addition & 1 deletion libebml2/legacy/ebml/EbmlUInteger.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

#include "ebml/EbmlElement.h"

namespace LIBEBML_NAMESPACE {
namespace libebml {

class EbmlUInteger : public EbmlElement {
public:
Expand Down
2 changes: 1 addition & 1 deletion libebml2/legacy/ebml/EbmlUnicodeString.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

#include "ebml/EbmlElement.h"

namespace LIBEBML_NAMESPACE {
namespace libebml {

/*!
\class UTFstring
Expand Down
2 changes: 1 addition & 1 deletion libebml2/legacy/ebml/EbmlVoid.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

#include "ebml/EbmlBinary.h"

namespace LIBEBML_NAMESPACE {
namespace libebml {

DECLARE_EBML_VOID(EbmlVoid)
public:
Expand Down
2 changes: 1 addition & 1 deletion libebml2/legacy/ebml/IOCallback.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
typedef struct stream stream;
typedef struct stream_io stream_io;

namespace LIBEBML_NAMESPACE {
namespace libebml {

enum seek_mode
{
Expand Down
4 changes: 2 additions & 2 deletions libebml2/legacy/legacy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@

static parsercontext ccContext;

using namespace LIBEBML_NAMESPACE;
using namespace libebml;

struct stream_io
{
Expand Down Expand Up @@ -263,7 +263,7 @@ void ebml_done()
}


namespace LIBEBML_NAMESPACE
namespace libebml
{

EbmlElement & DummyCreate()
Expand Down

0 comments on commit 88334db

Please sign in to comment.