chore: enclose everything in namespace matar

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2023-09-21 10:52:40 +05:30
parent 1eb4a9545b
commit 1e8966553f
20 changed files with 61 additions and 17 deletions

View File

@@ -3,6 +3,7 @@
#include "memory.hh"
#include <memory>
namespace matar {
class Bus {
public:
Bus(const Memory& memory);
@@ -19,3 +20,4 @@ class Bus {
private:
std::shared_ptr<Memory> memory;
};
}

View File

@@ -1,5 +1,6 @@
#include "bus.hh"
namespace matar {
class CpuImpl;
class Cpu {
@@ -17,3 +18,4 @@ class Cpu {
private:
std::unique_ptr<CpuImpl> impl;
};
}

View File

@@ -3,6 +3,7 @@
#include <cstdint>
#include <string>
namespace matar {
struct Header {
static constexpr uint8_t HEADER_SIZE = 192;
@@ -44,3 +45,4 @@ struct Header {
uint32_t multiboot_entrypoint;
uint8_t slave_id;
};
}

View File

@@ -7,6 +7,7 @@
#include <unordered_map>
#include <vector>
namespace matar {
class Memory {
public:
static constexpr size_t BIOS_SIZE = 1024 * 16;
@@ -63,3 +64,4 @@ class Memory {
Header header;
void parse_header();
};
}