Skip to content
Snippets Groups Projects
Commit e1aea0b7 authored by Christoph Hellwig's avatar Christoph Hellwig
Browse files

remove duplicate typedefs for u* types

parent 0d0a82b1
No related branches found
No related tags found
No related merge requests found
...@@ -3,10 +3,9 @@ ...@@ -3,10 +3,9 @@
#include <stdint.h> #include <stdint.h>
#include <functional> #include <functional>
#include <types.hh>
struct exception_frame { struct exception_frame {
typedef unsigned long ulong;
typedef unsigned short u16;
ulong r15; ulong r15;
ulong r14; ulong r14;
ulong r13; ulong r13;
...@@ -38,10 +37,6 @@ public: ...@@ -38,10 +37,6 @@ public:
void unregister_handler(unsigned vector); void unregister_handler(unsigned vector);
void invoke_interrupt(unsigned vector); void invoke_interrupt(unsigned vector);
private: private:
typedef uint8_t u8;
typedef uint16_t u16;
typedef uint32_t u32;
typedef uint64_t u64;
enum { enum {
type_intr_gate = 14, type_intr_gate = 14,
}; };
......
...@@ -5,15 +5,9 @@ ...@@ -5,15 +5,9 @@
#include <vector> #include <vector>
#include <map> #include <map>
#include <memory> #include <memory>
#include <types.hh>
namespace elf { namespace elf {
typedef unsigned long u64;
typedef unsigned int u32;
typedef unsigned short u16;
typedef unsigned char u8;
typedef unsigned long ulong;
typedef u64 Elf64_Addr; typedef u64 Elf64_Addr;
typedef u64 Elf64_Off; typedef u64 Elf64_Off;
typedef u16 Elf64_Half; typedef u16 Elf64_Half;
......
...@@ -4,10 +4,9 @@ ...@@ -4,10 +4,9 @@
#include "fs/fs.hh" #include "fs/fs.hh"
#include <stdint.h> #include <stdint.h>
#include <boost/intrusive/set.hpp> #include <boost/intrusive/set.hpp>
#include <types.hh>
namespace mmu { namespace mmu {
typedef unsigned long ulong;
typedef uint64_t f_offset; typedef uint64_t f_offset;
enum { enum {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment