summaryrefslogtreecommitdiff
path: root/Database/database-types.h
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2009-09-20 23:10:31 +0200
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2009-09-20 23:10:31 +0200
commit1f7ca9fd3964481318bbaddfb39acc5de8c7d65d (patch)
treef13ae2ddd03c23d81157b86bf9305de36a5ace60 /Database/database-types.h
parenteb3bf203a14e81735d6f74467541a6500a3bdf86 (diff)
Basic makefile structure; making the project at least compilable.
Diffstat (limited to 'Database/database-types.h')
-rw-r--r--Database/database-types.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Database/database-types.h b/Database/database-types.h
index 7d92f87..49db9b8 100644
--- a/Database/database-types.h
+++ b/Database/database-types.h
@@ -1,6 +1,8 @@
#ifndef __DATABASE_TYPES_H__
#define __DATABASE_TYPES_H__
+#include <generic.h>
+
/** The basic tags that describe the bytes of the database. The tag "CODE_FIRST_BYTE" is
* mainly for multi-bytes instructions, in order to help the UI displaying
* properly the instructions.
@@ -36,6 +38,9 @@ typedef union {
};
} absolute_ptr;
+static inline Uint32 SEGID(absolute_ptr ptr) { return ptr.segment_id; }
+static inline Uint32 SEGOFFSET(absolute_ptr ptr) { return ptr.ptr; }
+
/** A function description.
*/